cache

package
v0.0.0-...-11bcbe2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Conf config
View Source
var DefaultApiHost = ":9981"
View Source
var DefaultCheckExpireInterval = 15
View Source
var DefaultDBPath = "db"
View Source
var DefaultRpcHost = ":9980"

Functions

This section is empty.

Types

type Cache

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

func NewCache

func NewCache() *Cache

func (*Cache) ClearList

func (s *Cache) ClearList()

func (*Cache) ClearMap

func (s *Cache) ClearMap()

func (*Cache) ClearSet

func (s *Cache) ClearSet()

func (*Cache) ClearString

func (s *Cache) ClearString()

func (*Cache) Delete

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

func (*Cache) Get

func (s *Cache) Get(key string) (string, error)

func (*Cache) HMDel

func (s *Cache) HMDel(hmKey string) error

func (*Cache) HMDelMember

func (s *Cache) HMDelMember(hmKey string, fieldKey string) error

func (*Cache) HMGet

func (s *Cache) HMGet(hmKey string) (string, error)

func (*Cache) HMGetMember

func (s *Cache) HMGetMember(hmKey string, fieldKey string) (string, error)

func (*Cache) HMPut

func (s *Cache) HMPut(hmKey string, keys []string, fields []string, expire int64) error

map

func (*Cache) LDel

func (s *Cache) LDel(key string) error

func (*Cache) LDelRange

func (s *Cache) LDelRange(key string, beg int32, end int32) error

func (*Cache) LGet

func (s *Cache) LGet(key string) ([]string, error)

func (*Cache) LGetRange

func (s *Cache) LGetRange(key string, beg int32, end int32) ([]string, error)

func (*Cache) LPut

func (s *Cache) LPut(key string, value []string, expire int64) error

list

func (*Cache) ListCaches

func (s *Cache) ListCaches() ([]byte, error)

func (*Cache) MapCaches

func (s *Cache) MapCaches() ([]byte, error)

func (*Cache) Put

func (s *Cache) Put(key string, v string, expire int64) error

StringValue

func (*Cache) SDel

func (s *Cache) SDel(key string) error

func (*Cache) SDelMember

func (s *Cache) SDelMember(key string, value string) error

func (*Cache) SGet

func (s *Cache) SGet(key string) ([]string, error)

func (*Cache) SPut

func (s *Cache) SPut(key string, value []string, expire int64) error

set

func (*Cache) SetCaches

func (s *Cache) SetCaches() ([]byte, error)

func (*Cache) SetOnOP

func (s *Cache) SetOnOP(opFunc func(kv.OpType, kv.ValueCache, kv.ValueCache))

func (*Cache) StringCaches

func (s *Cache) StringCaches() ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL