Ticket #12195: 12195.diff

File 12195.diff, 798 bytes (added by Tim Graham, 15 years ago)
  • docs/topics/cache.txt

     
    470470
    471471    >>> from django.core.cache import cache
    472472
    473 The basic interface is ``set(key, value, timeout_seconds)`` and ``get(key)``::
     473The basic interface is ``set(key, value, timeout)`` and ``get(key)``::
    474474
    475475    >>> cache.set('my_key', 'hello, world!', 30)
    476476    >>> cache.get('my_key')
    477477    'hello, world!'
    478478
    479 The ``timeout_seconds`` argument is optional and defaults to the ``timeout``
     479The ``timeout`` argument is optional and defaults to the ``timeout``
    480480argument in the ``CACHE_BACKEND`` setting (explained above).
    481481
    482482If the object doesn't exist in the cache, ``cache.get()`` returns ``None``::
Back to Top