1fe2f2f
1
2
3
4
5
6
7
8
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)