wip: cache

This commit is contained in:
Jakub Miazek
2024-04-23 19:38:12 +02:00
parent d3a032320c
commit 09674e45de
5 changed files with 271 additions and 76 deletions

View File

@@ -9,3 +9,10 @@ async def get_redis():
encoding="utf-8",
decode_responses=True,
)
async def get_cache():
return await redis.from_url(
global_settings.redis_url.unicode_string(),
decode_responses=False,
)