zulip/zerver/lib/redis_utils.py

9 lines
199 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, db=0)