dubai / modules /redis.py
fountai's picture
mimic
1fe2f2f
raw
history blame contribute delete
244 Bytes
import os
import redis
redis_host = os.getenv('REDIS_HOST', 'localhost')
redis_pass = os.getenv('REDIS_PASS', 'localhost')
redis_port = os.getenv('REDIS_PORT', 6379)
cache = redis.Redis(host=redis_host, port=redis_port, password=redis_pass)