Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface {
Set(key, value string) error
Get(key string) (string, error)
Delete(key string) error
Len() int // get store size
ForEach(func(string, string) error) error // apply func on each each entry. If error occurs, inne loop breaks
}
Store is not thread-safe.
func NewInmemStore ¶
func NewInmemStore() Store
Click to show internal directories.
Click to hide internal directories.