10 lines
214 B
Python
10 lines
214 B
Python
import os
|
|
import redis.asyncio as connection
|
|
|
|
|
|
REDIS_HOST = os.getenv('REDIS_HOST', 'localhost')
|
|
REDIS_PASSWORD = os.getenv('REDIS_PASSWORD')
|
|
|
|
|
|
database = connection.Redis(host=REDIS_HOST, password=REDIS_PASSWORD)
|