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()
.