Skip to content

Commit

Permalink
[1.0.X] Fixed #9740 -- Updated and correct usage of max_entries in ca…
Browse files Browse the repository at this point in the history
…che documentation.

Backport of r9556 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9559 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Dec 3, 2008
1 parent a261602 commit 500021a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/topics/cache.txt
Expand Up @@ -213,8 +213,9 @@ All caches may take arguments. They're given in query-string style on the
minutes (300 seconds). minutes (300 seconds).


max_entries max_entries
For the simple and database backends, the maximum number of entries For the ``locmem``, ``filesystem`` and ``database`` backends, the
allowed in the cache before it is cleaned. Defaults to 300. maximum number of entries allowed in the cache before it is cleaned.
Defaults to 300.


cull_percentage cull_percentage
The percentage of entries that are culled when max_entries is reached. The percentage of entries that are culled when max_entries is reached.
Expand All @@ -231,7 +232,7 @@ In this example, ``timeout`` is set to ``60``::


In this example, ``timeout`` is ``30`` and ``max_entries`` is ``400``:: In this example, ``timeout`` is ``30`` and ``max_entries`` is ``400``::


CACHE_BACKEND = "memcached://127.0.0.1:11211/?timeout=30&max_entries=400" CACHE_BACKEND = "locmem:///?timeout=30&max_entries=400"


Invalid arguments are silently ignored, as are invalid values of known Invalid arguments are silently ignored, as are invalid values of known
arguments. arguments.
Expand Down

0 comments on commit 500021a

Please sign in to comment.