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: Modified: django/trunk/docs/topics/cache.txt >>> from django.core.cache import cache -The basic interface is ``set(key, value, timeout_seconds)`` and ``get(key)``:: >>> cache.set('my_key', 'hello, world!', 30) -The ``timeout_seconds`` argument is optional and defaults to the ``timeout`` 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.
| ||||||||||||||