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) 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 Entries
- type Entry
- type Hash
- type MemHash
- type Option
- type Options
- type Value
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 ¶
type Value []byte
Value [1]pos [1]size, [8]deadline, [...]value
func (Value) SetDeadline ¶
Click to show internal directories.
Click to hide internal directories.