Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValkeyConnection ¶
ValkeyConnection func for connect to Valkey server.
func ValkeyConnectionWithConfig ¶ added in v1.0.0
func ValkeyConnectionWithConfig(cfg ValkeyConfig, deps ValkeyDeps) (valkey.Client, error)
ValkeyConnectionWithConfig connects using explicit config and dependencies.
Types ¶
type ValkeyConfig ¶ added in v1.0.0
ValkeyConfig defines connection behavior for the shared client.
func ValkeyConfigFromEnv ¶ added in v1.0.0
func ValkeyConfigFromEnv() (ValkeyConfig, error)
ValkeyConfigFromEnv reads Valkey client config from environment variables.
type ValkeyDeps ¶ added in v1.0.0
type ValkeyDeps struct {
BuildConnectionURL func(name string) (string, error)
NewClient func(opt valkey.ClientOption) (valkey.Client, error)
}
ValkeyDeps defines client bootstrap dependencies to keep setup testable.
func DefaultValkeyDeps ¶ added in v1.0.0
func DefaultValkeyDeps() ValkeyDeps
DefaultValkeyDeps returns production defaults for Valkey dependencies.
Click to show internal directories.
Click to hide internal directories.