backends.cache

Memcached and in-memory cache result backend.

Module Contents

Classes

DummyClient(self,*args,**kwargs)
CacheBackend(self,app,expires=None,backend=None,options=dict,url=None,**kwargs) Cache result backend.

Functions

import_best_memcache()
get_best_memcache(*args,**kwargs)
import_best_memcache()
get_best_memcache(*args, **kwargs)
class DummyClient(*args, **kwargs)
__init__(*args, **kwargs)
get(key, *args, **kwargs)
get_multi(keys)
set(key, value, *args, **kwargs)
delete(key, *args, **kwargs)
incr(key, delta=1)
touch(key, expire)
class CacheBackend(app, expires=None, backend=None, options=dict, url=None, **kwargs)

Cache result backend.

__init__(app, expires=None, backend=None, options=dict, url=None, **kwargs)
get(key)
mget(keys)
set(key, value)
delete(key)
_apply_chord_incr(header_result, body, **kwargs)
incr(key)
expire(key, value)
client()
__reduce__(args=tuple, kwargs=dict)
as_uri(*args, **kwargs)

Return the backend as an URI.

This properly handles the case of multiple servers.