Created
June 18, 2013 00:05
-
-
Save dodyw/5801609 to your computer and use it in GitHub Desktop.
redis conf with 20MB memory usage and as cache (memcached replacement)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| daemonize yes | |
| pidfile /var/run/redis.pid | |
| logfile /var/log/redis.log | |
| port 6379 | |
| bind 127.0.0.1 | |
| timeout 300 | |
| loglevel notice | |
| ## Default configuration options | |
| databases 16 | |
| save 900 1 | |
| save 300 10 | |
| save 60 10000 | |
| rdbcompression yes | |
| dbfilename dump.rdb | |
| dir /opt/redis/ | |
| appendonly no | |
| #glueoutputbuf yes | |
| maxmemory 20mb | |
| maxmemory-policy allkeys-lru |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment