Documentation ¶
Index ¶
- func NewMemCache() cache.Cache
- func NewMemcacheClient(config map[string]interface{}) (*memcache.Client, error)
- type Cache
- func (t *Cache) Decr(key string) error
- func (t *Cache) Delete(key string) error
- func (t *Cache) FlushAll() error
- func (t *Cache) Get(key string, dest interface{}) error
- func (t *Cache) GetMulti(keys []string) []interface{}
- func (t *Cache) Incr(key string) error
- func (t *Cache) IsExist(key string) bool
- func (t *Cache) NewCacheItem(key string, val interface{}, timeout time.Duration) (*memcache.Item, error)
- func (t *Cache) Set(key string, val interface{}, timeout time.Duration) error
- func (t *Cache) StartAndGC(config map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache Memcache adapter.
func (*Cache) NewCacheItem ¶
func (*Cache) StartAndGC ¶
StartAndGC start memcache adapter. config string is like {"conn":"connection info"}. if connecting error, return.
Click to show internal directories.
Click to hide internal directories.