Documentation ¶
Index ¶
- type Client
- func (store *Client) Close() error
- func (store *Client) Delete(key storage.Key) error
- func (store *Client) Get(key storage.Key) (storage.Value, error)
- func (store *Client) GetAll(keys storage.Keys) (storage.Values, error)
- func (store *Client) Iterate(opts storage.IterateOptions, fn func(storage.Iterator) error) error
- func (store *Client) List(first storage.Key, limit int) (storage.Keys, error)
- func (store *Client) Put(key storage.Key, value storage.Value) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Items []storage.ListItem ForceError int CallCount struct { Get int Put int List int GetAll int ReverseList int Delete int Close int Iterate int } // contains filtered or unexported fields }
Client implements in-memory key value store
Click to show internal directories.
Click to hide internal directories.