misc
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user