Documentation
¶
Index ¶
- Variables
- type Cache
- func (s *Cache) ClearList()
- func (s *Cache) ClearMap()
- func (s *Cache) ClearSet()
- func (s *Cache) ClearString()
- func (s *Cache) Delete(key string) error
- func (s *Cache) Get(key string) (string, error)
- func (s *Cache) HMDel(hmKey string) error
- func (s *Cache) HMDelMember(hmKey string, fieldKey string) error
- func (s *Cache) HMGet(hmKey string) (string, error)
- func (s *Cache) HMGetMember(hmKey string, fieldKey string) (string, error)
- func (s *Cache) HMPut(hmKey string, keys []string, fields []string, expire int64) error
- func (s *Cache) LDel(key string) error
- func (s *Cache) LDelRange(key string, beg int32, end int32) error
- func (s *Cache) LGet(key string) ([]string, error)
- func (s *Cache) LGetRange(key string, beg int32, end int32) ([]string, error)
- func (s *Cache) LPut(key string, value []string, expire int64) error
- func (s *Cache) ListCaches() ([]byte, error)
- func (s *Cache) MapCaches() ([]byte, error)
- func (s *Cache) Put(key string, v string, expire int64) error
- func (s *Cache) SDel(key string) error
- func (s *Cache) SDelMember(key string, value string) error
- func (s *Cache) SGet(key string) ([]string, error)
- func (s *Cache) SPut(key string, value []string, expire int64) error
- func (s *Cache) SetCaches() ([]byte, error)
- func (s *Cache) SetOnOP(opFunc func(kv.OpType, kv.ValueCache, kv.ValueCache))
- func (s *Cache) StringCaches() ([]byte, error)
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 (*Cache) ClearString ¶
func (s *Cache) ClearString()
func (*Cache) HMGetMember ¶
func (*Cache) ListCaches ¶
func (*Cache) SetOnOP ¶
func (s *Cache) SetOnOP(opFunc func(kv.OpType, kv.ValueCache, kv.ValueCache))
func (*Cache) StringCaches ¶
Click to show internal directories.
Click to hide internal directories.