missed docstring
This commit is contained in:
parent
be0ef08f3d
commit
645d1c49c0
@ -52,10 +52,14 @@ class RedisCache:
|
|||||||
await self.notifier.send(f"ERROR @ {__file__}", f"Failed to create idx: {str(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):
|
||||||
"""Search Redis Cache
|
"""
|
||||||
@artist: artist to search
|
Search Redis Cache
|
||||||
@song: song to search
|
Args:
|
||||||
@lyrics: lyrics to search (optional, used in place of artist/song if provided)
|
artist (Optional[str]): artist to search
|
||||||
|
song (Optional[str]): song to search
|
||||||
|
lyrics (Optional[str]): lyrics to search (optional, used in place of artist/song if provided)
|
||||||
|
Returns:
|
||||||
|
list[tuple]: List of redis results, tuple's first value is the redis key, second is the returned data
|
||||||
"""
|
"""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user