Versions in this module Expand all Collapse all v0 v0.0.1 Nov 1, 2020 Changes in this version + type CRC32 struct + func (c *CRC32) Do(b []byte) uint32 + type Cache struct + func New(size uint32, storeType string) (*Cache, error) + func (c *Cache) Delete(key []byte) error + func (c *Cache) Get(key []byte) ([]byte, error) + func (c *Cache) Set(key, value []byte, d time.Duration) error + type Hasher interface + Do func([]byte) uint32 + type Map struct + func (m *Map) Delete(key string) error + func (m *Map) Get(key string) ([]byte, error) + func (m *Map) Set(key string, value []byte) error + type Radix struct + func (r *Radix) Delete(key string) error + func (r *Radix) Get(key string) ([]byte, error) + func (r *Radix) Set(key string, value []byte) error + type Store interface + Delete func(key string) error + Get func(key string) ([]byte, error) + Set func(key string, value []byte) error + func NewMap() Store + func NewRadix() Store