redis

package
v0.2.0-dev.38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

redis provides the Redis implementation of the StoreClient interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Disconnect

func Disconnect() error

Disconnect ends the connection.

func NewClient

func NewClient(config db.Configuration) (interfaces.StoreClient, error)

NewClient provides a factory for building a StoreClient

func RemoveFromStore

func RemoveFromStore(id string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL