This document describes an older version of Celery (2.1).
For the latest stable version please
go here.
Backend: Redis - celery.backends.pyredis
-
class celery.backends.pyredis.RedisBackend(redis_host=None, redis_port=None, redis_db=None, redis_timeout=None, redis_password=None, redis_connect_retry=None, redis_connect_timeout=None, expires=None)
Redis based task backend store.
-
redis_host
The hostname to the Redis server.
-
redis_port
The port to the Redis server.
Raises celery.exceptions.ImproperlyConfigured if
the REDIS_HOST or REDIS_PORT settings is not set.
-
close()
Close the connection to redis.
-
delete(key)
-
deprecated_settings = frozenset(['REDIS_TIMEOUT', 'REDIS_CONNECT_RETRY'])
-
expires = None
-
get(key)
-
open()
Get redis.Redis` instance with the current
server configuration.
The connection is then cached until you do an
explicit close().
-
process_cleanup()
-
redis_connect_retry = None
-
redis_db = 0
-
redis_host = 'localhost'
-
redis_password = None
-
redis_port = 6379
-
redis_timeout = None
-
set(key, value)