This commit is contained in:
parent
ee6a636e68
commit
b72ef072e4
|
@ -23,7 +23,7 @@ async def cache_topic(topic: dict):
|
||||||
topic_slug = topic.get("slug")
|
topic_slug = topic.get("slug")
|
||||||
payload = json.dumps(topic, cls=CustomJSONEncoder)
|
payload = json.dumps(topic, cls=CustomJSONEncoder)
|
||||||
await redis.execute("SET", f"topic:id:{topic_id}", payload)
|
await redis.execute("SET", f"topic:id:{topic_id}", payload)
|
||||||
await redis.execute("SET", f"topic:slug:{topic_slug}", topic_id)
|
await redis.execute("SET", f"topic:slug:{topic_slug}", payload)
|
||||||
|
|
||||||
|
|
||||||
async def cache_author(author: dict):
|
async def cache_author(author: dict):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user