Ticket #11503: 11503-docs.diff

File 11503-docs.diff, 741 bytes (added by David Reynolds, 15 years ago)

Tiny documentation patch describing .flush()

  • docs/topics/cache.txt

    diff --git a/docs/topics/cache.txt b/docs/topics/cache.txt
    index 174dbae..9f0b55b 100644
    a b actually exist in the cache (and haven't expired)::  
    510510    >>> cache.get_many(['a', 'b', 'c'])
    511511    {'a': 1, 'b': 2, 'c': 3}
    512512
    513 Finally, you can delete keys explicitly with ``delete()``. This is an easy way
     513You can delete keys explicitly with ``delete()``. This is an easy way
    514514of clearing the cache for a particular object::
    515515
    516516    >>> cache.delete('a')
    517517
     518Finally, if you need to remove everything in the cache you can use
     519the``flush()`` method::
     520
     521    >>> cache.flush()
     522
    518523.. versionadded:: 1.1
    519524
    520525You can also increment or decrement a key that already exists using the
Back to Top