Documentation ¶
Index ¶
- type RedisStore
- func (self *RedisStore) ClearExpired()
- func (self *RedisStore) Delete(key string)
- func (self *RedisStore) Exists(key string) bool
- func (self *RedisStore) Get(key string) (map[string]interface{}, error)
- func (self *RedisStore) GetExpireTime(key string) time.Time
- func (self *RedisStore) Set(key string, value map[string]interface{}, expiration time.Duration) error
- func (self *RedisStore) SetExpireTime(key string, duration time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisStore ¶
type RedisStore struct {
// contains filtered or unexported fields
}
func New ¶
func New(opt *redis.Options) *RedisStore
func (*RedisStore) ClearExpired ¶
func (self *RedisStore) ClearExpired()
func (*RedisStore) Delete ¶
func (self *RedisStore) Delete(key string)
func (*RedisStore) Exists ¶
func (self *RedisStore) Exists(key string) bool
func (*RedisStore) GetExpireTime ¶
func (self *RedisStore) GetExpireTime(key string) time.Time
func (*RedisStore) SetExpireTime ¶
func (self *RedisStore) SetExpireTime(key string, duration time.Duration)
Click to show internal directories.
Click to hide internal directories.