Documentation ¶
Index ¶
- func NewSsdbCache() cache.Cache
- type Cache
- func (rc *Cache) ClearAll() error
- func (rc *Cache) Decr(key string) error
- func (rc *Cache) DelMulti(keys []string) error
- func (rc *Cache) Delete(key string) error
- func (rc *Cache) Get(key string) interface{}
- func (rc *Cache) GetMulti(keys []string) []interface{}
- func (rc *Cache) Incr(key string) error
- func (rc *Cache) IsExist(key string) bool
- func (rc *Cache) Put(key string, value interface{}, timeout time.Duration) error
- func (rc *Cache) Scan(keyStart string, keyEnd string, limit int) ([]string, error)
- func (rc *Cache) StartAndGC(config string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache SSDB adapter
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.