Documentation ¶
Overview ¶
redis provides the Redis implementation of the StoreClient interface.
Index ¶
- func Disconnect() error
- func NewClient(config db.Configuration) (interfaces.StoreClient, error)
- func RemoveFromStore(id string) error
- func RetrieveFromStore(appServiceKey string) (objects []contracts.StoredObject, err error)
- func Store(o contracts.StoredObject) (id string, err error)
- func Update(o contracts.StoredObject) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(config db.Configuration) (interfaces.StoreClient, error)
NewClient provides a factory for building a StoreClient
func RemoveFromStore ¶
RemoveFromStore removes an object from the data store.
func RetrieveFromStore ¶
func RetrieveFromStore(appServiceKey string) (objects []contracts.StoredObject, err error)
RetrieveFromStore gets an object from the data store.
func Store ¶
func Store(o contracts.StoredObject) (id string, err error)
Store persists a stored object to the data store.
func Update ¶
func Update(o contracts.StoredObject) error
Update replaces the data currently in the store with the provided data.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.