Documentation ¶
Index ¶
- type StateStore
- func (r *StateStore) Close() error
- func (r *StateStore) Delete(req *state.DeleteRequest) error
- func (r *StateStore) Features() []state.Feature
- func (r *StateStore) Get(req *state.GetRequest) (*state.GetResponse, error)
- func (r *StateStore) Init(metadata state.Metadata) error
- func (r *StateStore) Multi(request *state.TransactionalStateRequest) error
- func (r *StateStore) Ping() error
- func (r *StateStore) Set(req *state.SetRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateStore ¶
type StateStore struct { state.DefaultBulkStore // 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) Close ¶
func (r *StateStore) Close() error
func (*StateStore) Delete ¶
func (r *StateStore) Delete(req *state.DeleteRequest) error
Delete performs a delete operation
func (*StateStore) Features ¶
func (r *StateStore) Features() []state.Feature
Features returns the features available in this state store
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) Ping ¶
func (r *StateStore) Ping() error
func (*StateStore) Set ¶
func (r *StateStore) Set(req *state.SetRequest) error
Set saves state into redis
Click to show internal directories.
Click to hide internal directories.