MCPcopy
hub / github.com/celery/celery / get_redis_connection

Function get_redis_connection

t/integration/tasks.py:20–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19
20def get_redis_connection():
21 from redis import StrictRedis
22
23 host = os.environ.get("REDIS_HOST", "localhost")
24 port = os.environ.get("REDIS_PORT", 6379)
25 return StrictRedis(host=host, port=port)
26
27
28logger = get_task_logger(__name__)

Calls 1

getMethod · 0.45