mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
10 lines
259 B
Python
10 lines
259 B
Python
|
|
from django.conf import settings
|
|
|
|
import redis
|
|
|
|
def get_redis_client():
|
|
# type: () -> redis.StrictRedis
|
|
return redis.StrictRedis(host=settings.REDIS_HOST, port=settings.REDIS_PORT,
|
|
password=settings.REDIS_PASSWORD, db=0)
|