Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #9740 -- Updated and correct usage of max_entries in cache docu…

…mentation.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9556 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 1302fe9a35f94b37a39c2fd4c09c45f942f94de8 1 parent 9ec9936
Malcolm Tredinnick authored December 03, 2008

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. 7  docs/topics/cache.txt
7  docs/topics/cache.txt
@@ -213,8 +213,9 @@ All caches may take arguments. They're given in query-string style on the
213 213
         minutes (300 seconds).
214 214
 
215 215
     max_entries
216  
-        For the simple and database backends, the maximum number of entries
217  
-        allowed in the cache before it is cleaned. Defaults to 300.
  216
+        For the ``locmem``, ``filesystem`` and ``database`` backends, the
  217
+        maximum number of entries allowed in the cache before it is cleaned.
  218
+        Defaults to 300.
218 219
 
219 220
     cull_percentage
220 221
         The percentage of entries that are culled when max_entries is reached.
@@ -231,7 +232,7 @@ In this example, ``timeout`` is set to ``60``::
231 232
 
232 233
 In this example, ``timeout`` is ``30`` and ``max_entries`` is ``400``::
233 234
 
234  
-    CACHE_BACKEND = "memcached://127.0.0.1:11211/?timeout=30&max_entries=400"
  235
+    CACHE_BACKEND = "locmem:///?timeout=30&max_entries=400"
235 236
 
236 237
 Invalid arguments are silently ignored, as are invalid values of known
237 238
 arguments.

0 notes on commit 1302fe9

Please sign in to comment.
Something went wrong with that request. Please try again.