zulip/zerver/lib/redis_utils.py

8 lines
243 B
Python
Raw Normal View History

from django.conf import settings
import redis
def get_redis_client() -> redis.StrictRedis:
return redis.StrictRedis(host=settings.REDIS_HOST, port=settings.REDIS_PORT,
password=settings.REDIS_PASSWORD, db=0)