redis

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 20 Imported by: 10 modules, 11 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMultipleSortBy error = errors.New("multiple SORTBY steps are not allowed. Sort multiple fields in a single step")

Functions

func NewRedisStateStore

func NewRedisStateStore(log logger.Logger) state.Store

NewRedisStateStore returns a new redis state store.

Types

type Query added in v1.7.0

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

func NewQuery added in v1.7.0

func NewQuery(schemaName string, aliases map[string]string) *Query

func (*Query) Finalize added in v1.7.0

func (q *Query) Finalize(filters string, qq *query.Query) error

func (*Query) VisitAND added in v1.7.0

func (q *Query) VisitAND(f *query.AND) (string, error)

func (*Query) VisitEQ added in v1.7.0

func (q *Query) VisitEQ(f *query.EQ) (string, error)

func (*Query) VisitGT added in v1.13.0

func (q *Query) VisitGT(f *query.GT) (string, error)

func (*Query) VisitGTE added in v1.13.0

func (q *Query) VisitGTE(f *query.GTE) (string, error)

func (*Query) VisitIN added in v1.7.0

func (q *Query) VisitIN(f *query.IN) (string, error)

func (*Query) VisitLT added in v1.13.0

func (q *Query) VisitLT(f *query.LT) (string, error)

func (*Query) VisitLTE added in v1.13.0

func (q *Query) VisitLTE(f *query.LTE) (string, error)

func (*Query) VisitNEQ added in v1.13.0

func (q *Query) VisitNEQ(f *query.NEQ) (string, error)

func (*Query) VisitOR added in v1.7.0

func (q *Query) VisitOR(f *query.OR) (string, error)

type StateStore

type StateStore struct {
	state.BulkStore
	// contains filtered or unexported fields
}

StateStore is a Redis state store.

func (*StateStore) Close added in v1.2.0

func (r *StateStore) Close() error

func (*StateStore) Delete

func (r *StateStore) Delete(ctx context.Context, req *state.DeleteRequest) error

Delete performs a delete operation.

func (*StateStore) Features added in v1.1.1

func (r *StateStore) Features() []state.Feature

Features returns the features available in this state store.

func (*StateStore) Get

Get retrieves state from redis with a key.

func (*StateStore) GetComponentMetadata added in v1.10.1

func (r *StateStore) GetComponentMetadata() (metadataInfo daprmetadata.MetadataMap)

func (*StateStore) Init

func (r *StateStore) Init(ctx context.Context, metadata state.Metadata) error

Init does metadata and connection parsing.

func (*StateStore) KeysLike added in v1.17.0

func (*StateStore) Multi

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

func (*StateStore) Ping added in v1.4.4

func (r *StateStore) Ping(ctx context.Context) error

func (*StateStore) Query added in v1.7.0

Query executes a query against store.

func (*StateStore) Set

func (r *StateStore) Set(ctx context.Context, 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