Documentation
¶
Index ¶
- func New() cache.Cacher
- type Memcache
- func (c *Memcache) Decr(key string) (int64, error)
- func (c *Memcache) Delete(key string) error
- func (c *Memcache) Exist(key string) bool
- func (c *Memcache) Flush() error
- func (c *Memcache) Get(key string, out interface{}) error
- func (c *Memcache) Incr(key string) (int64, error)
- func (c *Memcache) Set(key string, v interface{}, ttl int64) error
- func (c *Memcache) Start(o cache.Options) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Memcache ¶
Memcache implement a memcache cache adapter for cacher
func (*Memcache) Decr ¶
Decr decreases cached int-type value by given key as a counter if key not exist, return errors
func (*Memcache) 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.