Documentation
¶
Index ¶
Constants ¶
View Source
const ( TTL int = 300 ModeStandalone Mode = "standalone" ModeSentinel Mode = "sentinel" ModeCluster Mode = "cluster" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisConnection ¶
type RedisConnection struct {
Mode Mode
Address []string
DB int
MasterName string
Password string
Protocol int
UseTLS bool
TLSConfig *tls.Config
Logger log.Logger
Connected bool
Client redis.UniversalClient
}
RedisConnection this struct represent a Redis connection hub
func (*RedisConnection) Close ¶ added in v1.12.1
func (rc *RedisConnection) Close() error
Close closes the Redis connection
Click to show internal directories.
Click to hide internal directories.