/redis.conf

http://redis.googlecode.com/ · Unknown · 66 lines · 52 code · 14 blank · 0 comment · 0 complexity · ce516ba8f60d1dd0aa3a9338e4543455 MD5 · raw file

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