Documentation
¶
Index ¶
- func Address(address string) redisOpt
- func ApplyProperties(properties *Properties) redisOpt
- func ConnectionTimeout(timeout time.Duration) redisOpt
- func DB(db int) redisOpt
- func Password(password string) redisOpt
- func TLS(tls bool) redisOpt
- func Username(username string) redisOpt
- type Properties
- type RedisConnection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyProperties ¶
func ApplyProperties(properties *Properties) redisOpt
func ConnectionTimeout ¶
Types ¶
type Properties ¶
type RedisConnection ¶
type RedisConnection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(opts ...redisOpt) (*RedisConnection, error)
func (*RedisConnection) Close ¶
func (connection *RedisConnection) Close()
func (*RedisConnection) GetClient ¶
func (connection *RedisConnection) GetClient() *redis.Client
Click to show internal directories.
Click to hide internal directories.