Documentation
¶
Index ¶
- func Hash(data string) uint64
- type Bucket
- type Cache
- func (c *Cache) Cleanup()
- func (c *Cache) Get(key string) (string, error)
- func (c *Cache) GetBit(key string, offset int) uint8
- func (c *Cache) Load(fileName string) (string, error)
- func (c *Cache) Save(fileName string) (string, error)
- func (c *Cache) Set(input SetInput) error
- func (c *Cache) SetBit(key string, offset, value int) (uint8, error)
- func (c *Cache) ZAdd(input ZSetInput) (int, error)
- func (c *Cache) ZCard(key string) (int, error)
- func (c *Cache) ZCount(key, min, max string) (int, error)
- func (c *Cache) ZRange(key string, start, stop int) ([]store.ScoreMember, error)
- type SetInput
- type ZSetInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bucket ¶
type Bucket interface { //Store key value in bucket Set(kv store.KeyValue) //Returns key value from bucket. Return nil if key does not exist Get(key string) (store.KeyValue, bool) //Cleanup deletes all the expired key values Cleanup() //Save the entiries to file Save(path string) (string, error) //Load the entries from file Load(fileName string) (bool, error) }
Bucket interface provides API to acess bucket
Click to show internal directories.
Click to hide internal directories.