Documentation ¶
Overview ¶
Package redis implements a Gondola cache driver using redis.
The URL format for this driver is:
- redis://host[:port][#password={pw}&db={number}&max_idle={number}&max_active={number}&idle_timeout={seconds}]
If no db is provided, it defaults to -1. For the defaults and the explanation for the rest of the parameters, see DefaultMaxIdle, DefaultMaxActive and DefaultIdleTimeout.
Index ¶
Constants ¶
View Source
const ( // DefaultMaxIdle is the maximum number of idle connections // kept in the connection pool. DefaultMaxIdle = 8 // DefaultMaxActive is the maximum number of connections that // will be open at any given time. Setting it to zero, the // default value, won't limit the number of connections. DefaultMaxActive = 0 // DefaultIdleTimeout is the amount of seconds after an idle // connection will be dropped from the pool. DefaultIdleTimeout = 300 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.