Documentation ¶
Index ¶
Constants ¶
View Source
const ( StoreUnspecifiedDB = 0 StoreActivationCodeDB = 1 StoreOAuth2AuthorizationDB = 2 )
View Source
const RedisStoresSize = 10
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface { Get(ctx context.Context, key string) (string, error) GetJson(ctx context.Context, key string, value interface{}) error Set(ctx context.Context, key string, value interface{}, exp time.Duration) error SetJson(ctx context.Context, key string, value interface{}, exp time.Duration) error Delete(ctx context.Context, key string) error ListKeys(ctx context.Context, pattern string) ([]string, error) }
type Stores ¶
func NewRedisStores ¶
func NewRedisStoresFromConfig ¶
func NewRedisStoresFromConfig(cfg *shared.RedisConfig) Stores
Click to show internal directories.
Click to hide internal directories.