This commit is contained in:
2025-01-19 07:09:05 -05:00
parent 645d1c49c0
commit d27bc450f5
6 changed files with 8 additions and 8 deletions

View File

@@ -30,12 +30,12 @@ class RedisCache:
Redis Cache Methods
"""
def __init__(self):
def __init__(self) -> None:
self.redis_client = redis.Redis(password=private.REDIS_PW)
self.notifier = notifier.DiscordNotifier()
self.notify_warnings = True
async def create_index(self):
async def create_index(self) -> None:
"""Create Index"""
try:
schema = (
@@ -51,7 +51,7 @@ class RedisCache:
except Exception as e:
await self.notifier.send(f"ERROR @ {__file__}", f"Failed to create idx: {str(e)}")
async def search(self, **kwargs):
async def search(self, **kwargs) -> list[tuple]:
"""
Search Redis Cache
Args: