Documentation
¶
Index ¶
- type Config
- type Redis
- func (m *Redis) Clear() error
- func (m *Redis) Delete(key string) error
- func (m *Redis) ForEach(f func(string, interface{}))
- func (m *Redis) Get(key string, value any) error
- func (m *Redis) Has(key string) bool
- func (m *Redis) Keys() []string
- func (m *Redis) Set(key string, value any, maxAge ...time.Duration) error
- func (m *Redis) Size() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v1.5.5
type Config struct { // Host is the host of the Redis server Host string // Port is the port of the Redis server Port int // Username is the username for the Redis server Username string // Password is the password for the Redis server Password string // DB is the database to use DB int // URI is the URI of the Redis server // such as redis://:password@host:port/db URI string // Prefix is the prefix to use for all keys Prefix string }
Config is the configuration for Redis
type Redis ¶
Redis is a Key-Value Store in Redis
Click to show internal directories.
Click to hide internal directories.