Documentation ¶
Overview ¶
inmemory contains an implementation of the Radius data store interface that stores data in memory. This is suitable for testing and development purposes. The in-memory store has no persistence and will be **SLOW** for large data sets.
Index ¶
- type Client
- func (c *Client) Clear()
- func (c *Client) Delete(ctx context.Context, id string, options ...store.DeleteOptions) error
- func (c *Client) Get(ctx context.Context, id string, options ...store.GetOptions) (*store.Object, error)
- func (c *Client) Query(ctx context.Context, query store.Query, options ...store.QueryOptions) (*store.ObjectQueryResult, error)
- func (c *Client) Save(ctx context.Context, obj *store.Object, options ...store.SaveOptions) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an in-memory implementation of store.StorageClient.
func (*Client) Get ¶
func (c *Client) Get(ctx context.Context, id string, options ...store.GetOptions) (*store.Object, error)
Get implements store.StorageClient.
Click to show internal directories.
Click to hide internal directories.