mirror of
https://github.com/flibusta-apps/book_library_server.git
synced 2025-12-06 07:05:36 +01:00
Fix caching
This commit is contained in:
@@ -76,7 +76,7 @@ class BaseService(Generic[MODEL, QUERY], abc.ABC):
|
|||||||
|
|
||||||
await p.delete(key)
|
await p.delete(key)
|
||||||
await p.set(active_key, 1, ex=cls.CACHE_TTL)
|
await p.set(active_key, 1, ex=cls.CACHE_TTL)
|
||||||
await p.rpush(key, *object_ids)
|
await p.sadd(key, *object_ids)
|
||||||
|
|
||||||
await p.execute()
|
await p.execute()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user