Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisStore ¶
type RedisStore interface { // GetRedisPairValue checks that a value exist for key and if exist returnes value of it GetRedisPairValue(key string) (exist bool, value string, err error) // SetRedisPair sets a key-value pair with time-to-live in redis (zero ttl means the key has no expiration time) SetRedisPair(key, value string, ttl time.Duration) (err error) AddToRedisSortedSet(key string, value []interface{}) (err error) GetRedisSortedSet(key string) (exist bool, value []string, err error) RemoveFromRedisSortedSet(key string, value []interface{}) (err error) }
func New ¶
func New(redisClient *redis.Client) RedisStore
Click to show internal directories.
Click to hide internal directories.