Documentation
¶
Overview ¶
Package redis is the cache adapter for Redis and protocol-compatible servers (Valkey, KeyDB, Dragonfly).
Index ¶
- func New(env core.Env, c *spec.Component) (any, error)
- type Cache
- func (r *Cache) Actions() []core.Action
- func (r *Cache) Activity(ctx context.Context) (core.Activity, error)
- func (r *Cache) Browse(ctx context.Context, path []string) (core.Table, bool, error)
- func (r *Cache) Close() error
- func (r *Cache) Delete(ctx context.Context, path []string, t core.Table, rows []int) error
- func (r *Cache) Do(ctx context.Context, args ...string) (string, error)
- func (r *Cache) Info(ctx context.Context) (map[string]string, error)
- func (r *Cache) Ping(ctx context.Context) error
- func (r *Cache) QueryAt(ctx context.Context, path []string, q string) (core.Table, error)
- func (r *Cache) QueryLanguage() string
- func (r *Cache) RunQuery(ctx context.Context, q string) (core.Table, error)
- func (r *Cache) Set(ctx context.Context, path []string, t core.Table, row, col int, value string) error
- func (r *Cache) SuggestQuery(ctx context.Context, path []string) string
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) Browse ¶
Browse walks the server: databases with keys, a database's keys (the first 2000 a SCAN finds), then one key's value.
func (*Cache) Delete ¶
Delete removes keys (a database's list) or entries of one key's value: hash fields, list items, set and sorted-set members, lines of a string.
func (*Cache) QueryAt ¶
QueryAt runs a command against the database the path starts at (db0 when none).
func (*Cache) QueryLanguage ¶
Click to show internal directories.
Click to hide internal directories.