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)

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.

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()
set(key, value)

Previous topic

Backend: MongoDB - celery.backends.mongodb

Next topic

Backend: Cassandra - celery.backends.cassandra

This Page