redis

package
v0.2.0-dev.31 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 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 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 []models.StoredObject, err error)

RetrieveFromStore gets an object from the data store.

func Store

func Store(o models.StoredObject) error

Store persists a stored object to the data store.

func Update

func Update(o models.StoredObject) error

Update replaces the data currently in the store with the provided data.

func UpdateRetryCount

func UpdateRetryCount(id string, count int) error

UpdateRetryCount modifies the RetryCount variable for a given object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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