Documentation ¶
Index ¶
- type RedisCache
- func (c *RedisCache) Delete(key string) (err error)
- func (c *RedisCache) Exists(key string) (bool, error)
- func (c *RedisCache) Get(key string) (s string, err error)
- func (c *RedisCache) IncrBy(key string, value int64) (result int64, err error)
- func (c *RedisCache) Redis() *redis.Client
- func (c *RedisCache) Set(key string, value string, expiresIn int) (err error)
- type RedisOptions
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(opts RedisOptions) (*RedisCache, error)
func (*RedisCache) Delete ¶
func (c *RedisCache) Delete(key string) (err error)
func (*RedisCache) IncrBy ¶
func (c *RedisCache) IncrBy(key string, value int64) (result int64, err error)
func (*RedisCache) Redis ¶
func (c *RedisCache) Redis() *redis.Client
Click to show internal directories.
Click to hide internal directories.