aboutsummaryrefslogtreecommitdiffstats
path: root/api/app/core/cache.py
blob: 09d03c85326c69ed6b4759adc26c0b2980bbe8c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from app.core.config import settings
import redis

def create_redis():
    return redis.ConnectionPool(
        host=settings.REDIS_SERVER,
        port=settings.REDIS_PORT,
        db=settings.REDIS_DB,
        decode_responses=True,
    )


pool = create_redis()