Documentation
¶
Overview ¶
Package valkey adapts valkey-go clients to the cache backend contract.
Index ¶
- type Backend
- func (b *Backend) Delete(ctx context.Context, key string) (bool, error)
- func (b *Backend) Get(ctx context.Context, key string) (cache.Record, bool, error)
- func (b *Backend) Set(ctx context.Context, key string, record cache.Record, ...) (bool, error)
- func (b *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 implements cache.Backend with valkey-go.
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.