Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoURL = errors.New("valkey.Config: no URL defined") ErrBadURL = errors.New("valkey.Config: URL is invalid") // Sentinel validation errors ErrSentinelMasterNameRequired = errors.New("valkey.Sentinel: masterName is required") ErrSentinelAddrRequired = errors.New("valkey.Sentinel: addr is required") ErrSentinelAddrEmpty = errors.New("valkey.Sentinel: addr cannot be empty") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
URL string `json:"url"`
Cluster bool `json:"cluster,omitempty"`
Sentinel *Sentinel `json:"sentinel,omitempty"`
}
Config is what Anubis unmarshals from the "parameters" JSON.
type Sentinel ¶ added in v1.24.0
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements store.Interface on top of Redis/Valkey.
func (*Store) IsPersistent ¶ added in v1.23.0
IsPersistent tells Anubis this backend is “real” storage, not in-memory.
Click to show internal directories.
Click to hide internal directories.