zulip/zerver/lib/redis_utils.py

10 lines
262 B
Python
Raw Normal View History

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