Documentation
¶
Index ¶
- func NewMapStruct(initialData map[string]Data) storage.Storage
- type Data
- type MapStruct
- func (store *MapStruct) Delete(key string) (interface{}, error)
- func (store *MapStruct) Exists(key string) bool
- func (store *MapStruct) Get(key string) (value interface{}, err error)
- func (store *MapStruct) GetSize() uint
- func (store *MapStruct) Set(key string, val interface{}, t time.Duration) error
- func (store *MapStruct) SetExpired(key string, t time.Duration) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶
type Data struct { Value interface{} Expiration int64 }
Data struct define structure of saved data
type MapStruct ¶
MapStruct is storage engine that store data into list of structs
Click to show internal directories.
Click to hide internal directories.