~cytrogen/evi-run

ref: 65b2381312073fe4c40221536975cb4d3707a3b2 evi-run/redis_service/connect.py -rw-r--r-- 166 bytes
65b23813 — Bendy chore(gitignore): ignore tests/, pytest artifacts and local pytest.ini 5 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)