~cytrogen/evi-run

ref: 2126525f0d329b7dc1d677fa1c5115335e668ad8 evi-run/redis_service/connect.py -rw-r--r-- 166 bytes
2126525f — Bendy Fix undefined name error in config.py 6 months ago
                                                                                
1
2
3
4
5
6
7
8
import os

from dotenv import load_dotenv
from redis.asyncio.client import Redis

load_dotenv()

redis = Redis.from_url(os.getenv('REDIS_URL'), decode_responses=True)