Documentation ¶
Index ¶
- func New() cache.Cacher
- type Redis
- func (c *Redis) Decr(key string) (int64, error)
- func (c *Redis) Delete(key string) error
- func (c *Redis) Exist(key string) bool
- func (c *Redis) Flush() error
- func (c *Redis) Get(key string, out interface{}) error
- func (c *Redis) Incr(key string) (int64, error)
- func (c *Redis) Set(key string, v interface{}, ttl int64) error
- func (c *Redis) Start(o cache.Options) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Redis ¶
Redis implement a redis cache adapter for cacher
func (*Redis) Decr ¶
Decr decreases cached int-type value by given key as a counter if key not exist, return errors
func (*Redis) Incr ¶
Incr increases cached int-type value by given key as a counter if key not exist, before increase set value with zero
Click to show internal directories.
Click to hide internal directories.