redis

package
v0.0.0-...-576eb72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2014 License: MPL-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL