fix: coroutine is not iterable when using redis (#2655)
This commit is contained in:
parent
68e9617f54
commit
ccd6d1c666
1 changed files with 1 additions and 4 deletions
|
|
@ -76,10 +76,7 @@ async def get_and_cache_all_types_dict(
|
||||||
Raises:
|
Raises:
|
||||||
None.
|
None.
|
||||||
"""
|
"""
|
||||||
if isinstance(cache_service, AsyncBaseCacheService):
|
return await cache_service.get(key=key, lock=lock)
|
||||||
return await cache_service.get(key=key, lock=lock)
|
|
||||||
else:
|
|
||||||
return cache_service.get(key=key, lock=lock)
|
|
||||||
|
|
||||||
async def set_in_cache(key, value):
|
async def set_in_cache(key, value):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue