Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
func NewRedis ¶
NewRedis instantiates a new Cache client backed by Redis. This will connect to Redis based on the presence of environment variables.
If the `REDIS_USER` or `REDIS_PASSWORD` (or `REDIS_PASS`) environment variables are set, the connection will be upgraded to secure.
By default DB 0 is used, but can be configured with the `REDIS_DB` environment variable.
func NewRedisInsecure ¶
NewRedisInsecure instantiates a new insecure client
func NewRedisSecure ¶
NewRedisSecure instantiates a new secure TLS client
Click to show internal directories.
Click to hide internal directories.