celery.backends.cache

Memcached and in-memory cache result backend.

class celery.backends.cache.CacheBackend(app, expires=None, backend=None, options=None, url=None, **kwargs)[源代码]

Cache result backend.

as_uri(*args, **kwargs)[源代码]

Return the backend as an URI.

This properly handles the case of multiple servers.

property client
delete(key)[源代码]
expire(key, value)[源代码]
get(key)[源代码]
implements_incr = True
incr(key)[源代码]
mget(keys)[源代码]
servers = None
set(key, value)[源代码]
supports_autoexpire = True

If true the backend must automatically expire results. The daily backend_cleanup periodic task won't be triggered in this case.

supports_native_join = True

If true the backend must implement get_many().