Module Expr Str Import alias Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body Return Call NameLoad NameLoad NameLoad NameLoad finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Return NameLoad orelse If CompareLt NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareGtE Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Call NameLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Call NameLoad NameLoad BinOpAdd Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return CompareIsNot Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr CompareEq BinOpMod NameLoad AttributeLoad NameLoad attr Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad decorator_list
N/A N/A Call result cache.

Designed to have the same interface as the `Django low-level cache API`_.
Heavily inspired (read: mostly copied-and-pasted) from the Django framework -
thanks to those guys for designing a simple and effective cache!

.. _`Django low-level cache API`:
http://www.djangoproject.com/documentation/cache/#the-low-level-cache-api
 N/A threading N/A time SimpleCache N/A object N/A N/A Simple response cache for FlickrAPI calls.

    This stores max 50 entries, timing them out after 120 seconds:
    >>> cache = SimpleCache(timeout=120, max_entries=50)
     __init__ N/A N/A self timeout max_entries N/A 300 200 N/A N/A N/A self storage N/A N/A N/A self expire_info N/A N/A N/A self lock N/A N/A threading RLock N/A N/A self default_timeout timeout N/A N/A self max_entries max_entries N/A N/A self cull_frequency 3 N/A locking N/A N/A method N/A N/A N/A Method decorator, ensures the method call is locked locked N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A self lock acquire N/A N/A N/A N/A method self args kwargs N/A N/A N/A N/A N/A self lock release N/A N/A locked N/A get N/A N/A self key default N/A None N/A N/A Fetch a given key from the cache. If the key does not exist, return
        default, which itself defaults to None.
         N/A now N/A N/A time time N/A exp N/A N/A N/A self expire_info get N/A repr key N/A N/A exp None N/A N/A default N/A N/A N/A exp now N/A N/A N/A N/A self delete N/A repr key N/A default N/A N/A N/A self storage N/A N/A repr key N/A locking set N/A N/A self key value timeout N/A None N/A N/A Set a value in the cache. If timeout is given, that timeout will be
        used for the key; otherwise the default cache timeout will be used.
         N/A N/A N/A len N/A self storage N/A self max_entries N/A N/A N/A N/A self cull N/A N/A timeout None N/A N/A timeout N/A self default_timeout N/A N/A N/A self storage N/A N/A repr key value N/A N/A N/A self expire_info N/A N/A repr key N/A N/A N/A time time timeout N/A locking delete N/A N/A self key N/A N/A N/A Deletes a key from the cache,
        failing silently if it doesn't exist. N/A N/A key N/A self storage N/A N/A N/A N/A self storage N/A key N/A N/A key N/A self expire_info N/A N/A N/A N/A self expire_info N/A key N/A locking has N/A N/A self key N/A N/A N/A Returns True if the key is in the cache and has not expired. N/A N/A N/A N/A self get N/A repr key None N/A locking __contains__ N/A N/A self key N/A N/A N/A Returns True if the key is in the cache and has not expired. N/A N/A N/A self has N/A repr key N/A locking cull N/A N/A self N/A N/A N/A Reduces the number of cached items N/A doomed N/A k N/A N/A i k N/A enumerate N/A self storage N/A N/A i N/A self cull_frequency 0 N/A k doomed N/A N/A N/A N/A self delete k N/A locking __len__ N/A N/A self N/A N/A N/A Returns the number of cached items -- they might be expired
        though.
         N/A N/A len N/A self storage N/A locking N/A