Documentation ¶ Index ¶ Constants type CacheMap func (cm *CacheMap) Del(key []byte) error func (cm *CacheMap) Free() error func (cm *CacheMap) Get(key []byte) ([]byte, error) func (cm CacheMap) New() KeyValue func (cm *CacheMap) Set(key []byte, value []byte) error type KeyValue func NewCacheMap() KeyValue Constants ¶ View Source const ( UnsetKeyErr = "key %s not set" ) Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type CacheMap ¶ type CacheMap struct { // contains filtered or unexported fields } func (*CacheMap) Del ¶ func (cm *CacheMap) Del(key []byte) error func (*CacheMap) Free ¶ func (cm *CacheMap) Free() error func (*CacheMap) Get ¶ func (cm *CacheMap) Get(key []byte) ([]byte, error) func (CacheMap) New ¶ func (cm CacheMap) New() KeyValue func (*CacheMap) Set ¶ func (cm *CacheMap) Set(key []byte, value []byte) error type KeyValue ¶ type KeyValue interface { New() KeyValue Free() error Set([]byte, []byte) error Get([]byte) ([]byte, error) Del([]byte) error } func NewCacheMap ¶ func NewCacheMap() KeyValue Source Files ¶ View all Source files cache_map.gostorage.go Click to show internal directories. Click to hide internal directories.