9 lines
162 B
Python
9 lines
162 B
Python
|
|
import os
|
||
|
|
|
||
|
|
import redis
|
||
|
|
|
||
|
|
|
||
|
|
def get_redis_client():
|
||
|
|
host = os.getenv("REDIS_HOST", "redis")
|
||
|
|
return redis.Redis(host=host, port=6379, decode_responses=True)
|