redis

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: MIT Imports: 11 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StateStore

type StateStore struct {
	// contains filtered or unexported fields
}

StateStore is a Redis state store

func NewRedisStateStore

func NewRedisStateStore(logger logger.Logger) *StateStore

NewRedisStateStore returns a new redis state store

func (*StateStore) BulkDelete

func (r *StateStore) BulkDelete(req []state.DeleteRequest) error

BulkDelete performs a bulk delete operation

func (*StateStore) BulkSet

func (r *StateStore) BulkSet(req []state.SetRequest) error

BulkSet performs a bulks save operation

func (*StateStore) Delete

func (r *StateStore) Delete(req *state.DeleteRequest) error

Delete performs a delete operation

func (*StateStore) Get

func (r *StateStore) Get(req *state.GetRequest) (*state.GetResponse, error)

Get retrieves state from redis with a key

func (*StateStore) Init

func (r *StateStore) Init(metadata state.Metadata) error

Init does metadata and connection parsing

func (*StateStore) Multi

func (r *StateStore) Multi(request *state.TransactionalStateRequest) error

Multi performs a transactional operation. succeeds only if all operations succeed, and fails if one or more operations fail

func (*StateStore) Set

func (r *StateStore) Set(req *state.SetRequest) error

Set saves state into redis

Jump to

Keyboard shortcuts

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