Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bonk1t committed Dec 24, 2023
1 parent e87fc3c commit e2aa86f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nalgonda/caching/redis_cache_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class RedisCacheManager(CacheManager):
def __init__(self):
"""Initializes the Redis cache manager"""
redis_url = str(settings.redis_tls_url or settings.redis_url)
self.redis = from_url(redis_url, decode_responses=True, ssl=True, ssl_cert_reqs=CERT_NONE)
self.redis = aioredis.from_url(redis_url, decode_responses=True, ssl=True, ssl_cert_reqs=CERT_NONE)

def __del__(self):
"""Wait for the Redis connection to close"""
Expand Down

0 comments on commit e2aa86f

Please sign in to comment.