Documentation
¶
Overview ¶
Package valkey is the legacy valkey-go cache adapter.
Deprecated: use github.com/faustbrian/go-cache/v2/adapters/valkey. This package remains supported for the longer of 180 days after successor availability and two subsequently published stable root-module minor releases.
Index ¶
- type Backend
- func (backend *Backend) Delete(ctx context.Context, key string) (bool, error)
- func (backend *Backend) Get(ctx context.Context, key string) (cache.Record, bool, error)
- func (backend *Backend) Set(ctx context.Context, key string, record cache.Record, ...) (bool, error)
- func (backend *Backend) SetIfOwned(ctx context.Context, key string, record cache.Record, ...) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend preserves the legacy Valkey adapter type identity.
type Config ¶
type Config struct {
Client valkeyclient.CommandClient
Clock cache.Clock
MaxRecordSize int
}
Config supplies the native client, clock, and maximum wire record size.
Click to show internal directories.
Click to hide internal directories.