| 81 | ################################### LIMITS #################################### |
| 82 | |
| 83 | # Set the max number of connected clients at the same time. By default there |
| 84 | # is no limit, and it's up to the number of file descriptors the Redis process |
| 85 | # is able to open. The special value '0' means no limts. |
| 86 | # Once the limit is reached Redis will close all the new connections sending |
| 87 | # an error 'max number of clients reached'. |
| 88 | |
| 89 | # maxclients 128 |
| 90 | |
| 91 | # Don't use more memory than the specified amount of bytes. |
| 92 | # When the memory limit is reached Redis will try to remove keys with an |
| 93 | # EXPIRE set. It will try to start freeing keys that are going to expire |
| 94 | # in little time and preserve keys with a longer time to live. |
| 95 | # Redis will also try to remove objects from free lists if possible. |
| 96 | # |
| 97 | # If all this fails, Redis will start to reply with errors to commands |
| 98 | # that will use more memory, like SET, LPUSH, and so on, and will continue |
| 99 | # to reply to most read-only commands like GET. |
| 100 | # |
| 101 | # WARNING: maxmemory can be a good idea mainly if you want to use Redis as a |
| 102 | # 'state' server or cache, not as a real DB. When Redis is used as a real |
| 103 | # database the memory usage will grow over the weeks, it will be obvious if |
| 104 | # it is going to use too much memory in the long run, and you'll have the time |
| 105 | # to upgrade. With maxmemory after the limit is reached you'll start to get |
| 106 | # errors for write operations, and this may even lead to DB inconsistency. |
| 107 | |
| 108 | # maxmemory <bytes> |
| 109 | |
| 121 | # |
| 122 | # When object sharing is enabled (shareobjects yes) you can use |
| 123 | # shareobjectspoolsize to control the size of the pool used in order to try |
| 124 | # object sharing. A bigger pool size will lead to better sharing capabilities. |
| 125 | # In general you want this value to be at least the double of the number of |
| 126 | # very common strings you have in your dataset. |
| 127 | # |
| 128 | # WARNING: object sharing is experimental, don't enable this feature |
| 129 | # in production before of Redis 1.0-stable. Still please try this feature in |
| 130 | # your development environment so that we can test it better. |