Documentation
¶
Index ¶
Constants ¶
View Source
const (
SIRIUS_VALKEY = "sirius-valkey:6379"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KVStore ¶
type KVStore interface {
// SetValue sets the given key to the specified value.
SetValue(ctx context.Context, key, value string) error
// GetValue retrieves the value associated with the given key.
GetValue(ctx context.Context, key string) (ValkeyResponse, error)
// Close shuts down the underlying connection.
Close() error
}
KVStore defines the key/value operations our store supports.
func NewValkeyStore ¶
NewValkeyStore creates a new store connected to sirius-valkey:6379.
type ScanResult ¶
type ValkeyResponse ¶
type ValkeyResponse struct {
Message ValkeyValue `json:"Message"`
Type string `json:"Type"`
}
type ValkeyValue ¶
type ValkeyValue struct {
Value string `json:"Value"`
}
Click to show internal directories.
Click to hide internal directories.