Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion r12183 - django/trunk/docs/topics
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
nore...@djangoproject.com  
View profile  
 More options Jan 10 2010, 1:40 pm
From: nore...@djangoproject.com
Date: Sun, 10 Jan 2010 12:40:25 -0600 (CST)
Local: Sun, Jan 10 2010 1:40 pm
Subject: [Changeset] r12183 - django/trunk/docs/topics
Author: adrian
Date: 2010-01-10 12:40:24 -0600 (Sun, 10 Jan 2010)
New Revision: 12183

Modified:
   django/trunk/docs/topics/cache.txt
Log:
Fixed #12195 -- Clarified cache documentation to rename 'timeout_seconds' to 'timeout'. Thanks, galund and timo

Modified: django/trunk/docs/topics/cache.txt
===================================================================
--- django/trunk/docs/topics/cache.txt  2010-01-10 18:38:00 UTC (rev 12182)
+++ django/trunk/docs/topics/cache.txt  2010-01-10 18:40:24 UTC (rev 12183)
@@ -470,14 +470,15 @@

     >>> from django.core.cache import cache

-The basic interface is ``set(key, value, timeout_seconds)`` and ``get(key)``::
+The basic interface is ``set(key, value, timeout)`` and ``get(key)``::

     >>> cache.set('my_key', 'hello, world!', 30)
     >>> cache.get('my_key')
     'hello, world!'

-The ``timeout_seconds`` argument is optional and defaults to the ``timeout``
-argument in the ``CACHE_BACKEND`` setting (explained above).
+The ``timeout`` argument is optional and defaults to the ``timeout``
+argument in the ``CACHE_BACKEND`` setting (explained above). It's the number of
+seconds the value should be stored in the cache.

 If the object doesn't exist in the cache, ``cache.get()`` returns ``None``::


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.