Documentation
¶
Index ¶
- Variables
- func AutharaUserKey(userID string) string
- func RateLimitKey(kind, scope, value string) string
- type Cache
- type Counter
- type Noop
- type Redis
- func (r *Redis) Close() error
- func (r *Redis) Delete(ctx context.Context, key string) error
- func (r *Redis) Get(ctx context.Context, key string) ([]byte, error)
- func (r *Redis) Increment(ctx context.Context, key string, ttl time.Duration) (count int64, remainingTTL time.Duration, err error)
- func (r *Redis) Set(ctx context.Context, key string, value []byte, ttl time.Duration) error
- type RedisConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMiss = errors.New("cache miss")
)
Functions ¶
func AutharaUserKey ¶
func RateLimitKey ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.