Documentation
¶
Index ¶
- func Unmarshal(b interface{}, v interface{}) error
- type PackMemcacheCache
- func (rc *PackMemcacheCache) ClearAll() error
- func (rc *PackMemcacheCache) Decr(key string) error
- func (rc *PackMemcacheCache) Delete(key string) error
- func (rc *PackMemcacheCache) Get(key string) interface{}
- func (rc *PackMemcacheCache) Incr(key string) error
- func (rc *PackMemcacheCache) IsExist(key string) bool
- func (rc *PackMemcacheCache) Put(key string, val interface{}, timeout int64) error
- func (rc *PackMemcacheCache) StartAndGC(config string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PackMemcacheCache ¶
type PackMemcacheCache struct {
// contains filtered or unexported fields
}
func (*PackMemcacheCache) ClearAll ¶
func (rc *PackMemcacheCache) ClearAll() error
clear all cached in memcache.
func (*PackMemcacheCache) Decr ¶
func (rc *PackMemcacheCache) Decr(key string) error
decrease counter.
func (*PackMemcacheCache) Delete ¶
func (rc *PackMemcacheCache) Delete(key string) error
delete value in memcache.
func (*PackMemcacheCache) Get ¶
func (rc *PackMemcacheCache) Get(key string) interface{}
get value from memcache.
func (*PackMemcacheCache) Incr ¶
func (rc *PackMemcacheCache) Incr(key string) error
increase counter.
func (*PackMemcacheCache) IsExist ¶
func (rc *PackMemcacheCache) IsExist(key string) bool
check value exists in memcache.
func (*PackMemcacheCache) Put ¶
func (rc *PackMemcacheCache) Put(key string, val interface{}, timeout int64) error
put value to memcache.
func (*PackMemcacheCache) StartAndGC ¶
func (rc *PackMemcacheCache) StartAndGC(config string) error
start memcache adapter. config string is like {"conn":"connection info"}. if connecting error, return.
Click to show internal directories.
Click to hide internal directories.