X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/144d479b7cd6f503d97f9d9ef3115839a0fa53c3..44b38ef43259e8805b01db01ad9a1c67479c6194:/redis.conf diff --git a/redis.conf b/redis.conf index 8a962f4a..fac5ba60 100644 --- a/redis.conf +++ b/redis.conf @@ -107,6 +107,23 @@ databases 16 # maxmemory +############################## APPEND ONLY MODE ############################### + +# By default Redis asynchronously dumps the dataset on disk. If you can live +# with the idea that the latest records will be lost if something like a crash +# happens this is the preferred way to run Redis. If instead you care a lot +# about your data and don't want to that a single record can get lost you should +# enable the append only mode: when this mode is enabled Redis will append +# every write operation received in the file appendonly.log. This file will +# be read on startup in order to rebuild the full dataset in memory. +# +# Note that you can have both the async dumps and the append only file if you +# like (you have to comment the "save" statements above to disable the dumps). +# Still if append only mode is enabled Redis will load the data from the +# log file at startup ignoring the dump.rdb file. + +# appendonly yes + ############################### ADVANCED CONFIG ############################### # Glue small output buffers together in order to send small replies in a @@ -118,4 +135,15 @@ glueoutputbuf yes # string in your dataset, but performs lookups against the shared objects # pool so it uses more CPU and can be a bit slower. Usually it's a good # idea. +# +# When object sharing is enabled (shareobjects yes) you can use +# shareobjectspoolsize to control the size of the pool used in order to try +# object sharing. A bigger pool size will lead to better sharing capabilities. +# In general you want this value to be at least the double of the number of +# very common strings you have in your dataset. +# +# WARNING: object sharing is experimental, don't enable this feature +# in production before of Redis 1.0-stable. Still please try this feature in +# your development environment so that we can test it better. shareobjects no +shareobjectspoolsize 1024