Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Addr string // Address (IP: Port) DB int // Database Password string // Password KeyPrefix string // Store the prefix of the key }
Config - Redis configuration parameter
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store - Redis storage
func NewStoreWithClient ¶
NewStoreWithClient - Create a storage instance using the redis client
func NewStoreWithClusterClient ¶
func NewStoreWithClusterClient(cli *redis.ClusterClient, keyPrefix string) *Store
NewStoreWithClusterClient - Create a storage instance using the redis cluster client
Click to show internal directories.
Click to hide internal directories.