Documentation
¶
Index ¶
- Variables
- func AutharaUserKey(userID string) string
- func RateLimitKey(kind, scope, value string) string
- func RevokedAccessTokenKey(tokenHash string) string
- func RevokedAccessTokenMembershipKey(userID, organizationID string) string
- func RevokedAccessTokenSessionKey(sessionID string) string
- func RevokedAccessTokenUserKey(userID string) string
- type Cache
- type Counter
- type Noop
- func (n *Noop) Close() error
- func (n *Noop) Delete(ctx context.Context, key string) error
- func (n *Noop) Get(ctx context.Context, key string) ([]byte, error)
- func (n *Noop) GetMany(ctx context.Context, keys ...string) ([][]byte, error)
- func (n *Noop) Set(ctx context.Context, key string, value []byte, ttl time.Duration) error
- 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) GetMany(ctx context.Context, keys ...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 ¶
func RevokedAccessTokenKey ¶ added in v0.13.0
func RevokedAccessTokenMembershipKey ¶ added in v0.13.0
func RevokedAccessTokenSessionKey ¶ added in v0.13.0
func RevokedAccessTokenUserKey ¶ added in v0.13.0
Types ¶
Click to show internal directories.
Click to hide internal directories.