blob: a47a046a745b0e902a7f203b615fb3cb005d1b0f [file] [log] [blame]
Chetan Gaonker7f4bf742016-05-04 15:56:08 -07001# -*- text -*-
2#
3# $Id: 8750f989839fdcebfe106ef6574e8c96f93cdefa $
4
5#
6# Configuration file for the "redis" module. This module does nothing
7# Other than provide connections to a redis database, and a %{redis: ...}
8# expansion.
9#
10redis {
11 # Host where the redis server is located.
12 # We recommend using ONLY 127.0.0.1 !
13 server = 127.0.0.1
14
15 # The default port.
16 port = 6379
17
18 # The password used to authenticate to the server.
19 # We recommend using a strong password.
20# password = thisisreallysecretandhardtoguess
21
22 #
23 # Information for the connection pool. The configuration items
24 # below are the same for all modules which use the new
25 # connection pool.
26 #
27 pool {
28 # start this many connections
29 start = 1
30
31 # Keep at least "min" connections open
32 min = 1
33
34 # No more than "max" connections at any one time
35 max = 10
36
37 # try to keep "spare" connections
38 spare = 0
39
40 # The pool is checked for free connections every
41 # "cleanup_interval". If there are free connections,
42 # then one of them is closed.
43 cleanup_interval = 300
44
45 # connections last no more than "lifetime" seconds.
46 lifetime = 86400
47
48 # close idle connections are "idle_timeout" seconds
49 idle_timeout = 600
50
51 # allow no more than "uses" queries through a connection.
52 # after that, close it and open a new one.
53 uses = 0
54 }
55}