package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Dec 24, 2025
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Client returns the singleton Redis client instance.
Returns nil if Redis is not enabled or not initialized.
Close closes the Redis client connection.
Init initializes the Redis client singleton with config.
type Config struct {
Addr string `toml:"addr"`
Password string `toml:"password"`
DB int `toml:"db"`
Enabled bool `toml:"enabled"`
}
Config Redis 配置
Source Files
¶
Click to show internal directories.
Click to hide internal directories.