Documentation ¶
Index ¶
- Variables
- type Cache
- func (c *Cache) Contains(k []byte) bool
- func (c *Cache) Expire(k []byte, ttl time.Duration)
- func (c *Cache) Get(k []byte) (p []byte, ok bool)
- func (c *Cache) Incr(k []byte, delta int64) (n int64, err error)
- func (c *Cache) Remove(k []byte)
- func (c *Cache) Set(k []byte, v []byte) (err error)
- func (c *Cache) SetWithTTL(k []byte, v []byte, ttl time.Duration) (err error)
- type Hash
- type KV
- type KVS
- type MemHash
- type Value
- type XXHash
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTooBigKey = fmt.Errorf("key was too big, must not be greater than 63k") ErrInvalidKey = fmt.Errorf("key is invalid") )
Functions ¶
This section is empty.
Types ¶
type Value ¶ added in v1.1.0
type Value []byte
Value [1]pos [1]size, [8]deadline, [...]value
func (Value) SetDeadline ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.