Version: v1.3.0 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2014 License: Apache-2.0 Imports: 4 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type MemcacheCache

type MemcacheCache struct {
	// contains filtered or unexported fields

Memcache adapter.

func NewMemCache

func NewMemCache() *MemcacheCache

create new memcache adapter.

func (*MemcacheCache) ClearAll

func (rc *MemcacheCache) ClearAll() error

clear all cached in memcache.

func (*MemcacheCache) Decr

func (rc *MemcacheCache) Decr(key string) error

[Not Support] decrease counter.

func (*MemcacheCache) Delete

func (rc *MemcacheCache) Delete(key string) error

delete value in memcache.

func (*MemcacheCache) Get

func (rc *MemcacheCache) Get(key string) interface{}

get value from memcache.

func (*MemcacheCache) Incr

func (rc *MemcacheCache) Incr(key string) error

[Not Support] increase counter.

func (*MemcacheCache) IsExist

func (rc *MemcacheCache) IsExist(key string) bool

check value exists in memcache.

func (*MemcacheCache) Put

func (rc *MemcacheCache) Put(key string, val interface{}, timeout int64) error

put value to memcache. only support string.

func (*MemcacheCache) StartAndGC

func (rc *MemcacheCache) StartAndGC(config string) error

start memcache adapter. config string is like {"conn":"connection info"}. if connecting error, return.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL