Documentation
¶
Index ¶
Constants ¶
View Source
const TTL = 300
TTL default redis ttl to cache
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisConnection ¶
type RedisConnection struct {
Mode Mode
Address string
DB int
SentinelAddress []string
MasterName string
ClusterAddress []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.