Skip to content

Instantly share code, notes, and snippets.

@dodyw
Created June 18, 2013 00:05
Show Gist options
  • Select an option

  • Save dodyw/5801609 to your computer and use it in GitHub Desktop.

Select an option

Save dodyw/5801609 to your computer and use it in GitHub Desktop.
redis conf with 20MB memory usage and as cache (memcached replacement)
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