pluto/handler/db.py

9 lines
228 B
Python
Raw Normal View History

# Other library imports
from redis import StrictRedis
# Project imports
from settings import settings
# Define the Redis endpoint to the socket
r = StrictRedis(unix_socket_path=settings.DB.RedisSocket, db=int(settings.DB.DB))