beego: github.com/astaxie/beego/cache/ssdb Index | Files

package ssdb

import "github.com/astaxie/beego/cache/ssdb"

Index

Package Files

ssdb.go

func NewSsdbCache Uses

func NewSsdbCache() cache.Cache

NewSsdbCache create new ssdb adapter.

type Cache Uses

type Cache struct {
    // contains filtered or unexported fields
}

Cache SSDB adapter

func (*Cache) ClearAll Uses

func (rc *Cache) ClearAll() error

ClearAll clear all cached in memcache.

func (*Cache) Decr Uses

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

Decr decrease counter.

func (*Cache) DelMulti Uses

func (rc *Cache) DelMulti(keys []string) error

DelMulti get value from memcache.

func (*Cache) Delete Uses

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

Delete delete value in memcache.

func (*Cache) Get Uses

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

Get get value from memcache.

func (*Cache) GetMulti Uses

func (rc *Cache) GetMulti(keys []string) []interface{}

GetMulti get value from memcache.

func (*Cache) Incr Uses

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

Incr increase counter.

func (*Cache) IsExist Uses

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

IsExist check value exists in memcache.

func (*Cache) Put Uses

func (rc *Cache) Put(key string, value interface{}, timeout time.Duration) error

Put put value to memcache. only support string.

func (*Cache) Scan Uses

func (rc *Cache) Scan(keyStart string, keyEnd string, limit int) ([]string, error)

Scan key all cached in ssdb.

func (*Cache) StartAndGC Uses

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

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

Package ssdb imports 7 packages (graph). Updated 2018-09-30. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).