Documentation
¶
Index ¶
- type RedisCache
- func (rc *RedisCache) ClearAll() (err error)
- func (rc *RedisCache) Decr(key string, delta int64) (err error)
- func (rc *RedisCache) Del(key string) (err error)
- func (rc *RedisCache) Get(key string) (value interface{}, err error)
- func (rc *RedisCache) Incr(key string, delta int64) (err error)
- func (rc *RedisCache) IsExist(key string) (isExist bool)
- func (rc *RedisCache) Put(key string, value interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisCache ¶
type RedisCache struct {
// contains filtered or unexported fields
}
func NewRedisCache ¶
func NewRedisCache(redisConfig configs.RedisConfig) (rc *RedisCache, err error)
func (*RedisCache) ClearAll ¶
func (rc *RedisCache) ClearAll() (err error)
func (*RedisCache) Del ¶
func (rc *RedisCache) Del(key string) (err error)
func (*RedisCache) Get ¶
func (rc *RedisCache) Get(key string) (value interface{}, err error)
func (*RedisCache) IsExist ¶
func (rc *RedisCache) IsExist(key string) (isExist bool)
func (*RedisCache) Put ¶
func (rc *RedisCache) Put(key string, value interface{}) (err error)
Click to show internal directories.
Click to hide internal directories.