]> git.saurik.com Git - redis.git/blob - redis.conf
redis-cli now checks the arity of vararg commnads
[redis.git] / redis.conf
1 # Redis configuration file example
2
3 # By default Redis does not run as a daemon. Use 'yes' if you need it.
4 # Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
5 daemonize no
6
7 # Accept connections on the specified port, default is 6379
8 port 6379
9
10 # If you want you can bind a single interface, if the bind option is not
11 # specified all the interfaces will listen for connections.
12 #
13 # bind 127.0.0.1
14
15 # Close the connection after a client is idle for N seconds
16 timeout 300
17
18 # Save the DB on disk:
19 #
20 # save <seconds> <changes>
21 #
22 # Will save the DB if both the given number of seconds and the given
23 # number of write operations against the DB occurred.
24 #
25 # In the example below the behaviour will be to save:
26 # after 900 sec (15 min) if at least 1 key changed
27 # after 300 sec (5 min) if at least 10 keys changed
28 # after 60 sec if at least 10000 keys changed
29 save 900 1
30 save 300 10
31 save 60 10000
32
33 # For default save/load DB in/from the working directory
34 # Note that you must specify a directory not a file name.
35 dir ./
36
37 # Set server verbosity to 'debug'
38 # it can be one of:
39 # debug (a lot of information, useful for development/testing)
40 # notice (moderately verbose, what you want in production probably)
41 # warning (only very important / critical messages are logged)
42 loglevel debug
43
44 # Specify the log file name. Also 'stdout' can be used to force
45 # the demon to log on the standard output. Note that if you use standard
46 # output for logging but daemonize, logs will be sent to /dev/null
47 logfile stdout
48
49 # Set the number of databases.
50 databases 16
51
52 ################################# REPLICATION #################################
53
54 # Master-Slave replication. Use slaveof to make a Redis instance a copy of
55 # another Redis server. Note that the configuration is local to the slave
56 # so for example it is possible to configure the slave to save the DB with a
57 # different interval, or to listen to another port, and so on.
58
59 # slaveof <masterip> <masterport>
60
61 ############################### ADVANCED CONFIG ###############################
62
63 # Glue small output buffers together in order to send small replies in a
64 # single TCP packet. Uses a bit more CPU but most of the times it is a win
65 # in terms of number of queries per second. Use 'yes' if unsure.
66 glueoutputbuf yes