From 46a79fefd8c34fd75245b9653cd362312b49362b Mon Sep 17 00:00:00 2001 From: Kiran Jonnalagadda Date: Wed, 3 Jan 2024 22:24:39 +0530 Subject: [PATCH] Replace redis.hmset with hset since production is no longer outdated --- funnel/views/video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/funnel/views/video.py b/funnel/views/video.py index 8978018e8..7dfe58ba2 100644 --- a/funnel/views/video.py +++ b/funnel/views/video.py @@ -57,7 +57,7 @@ def set_video_cache(obj: VideoMixin, data: VideoData, exists: bool = True) -> No copied_data['uploaded_at'] = cast( datetime, copied_data['uploaded_at'] ).isoformat() - redis_store.hmset(cache_key, copied_data) + redis_store.hset(cache_key, mapping=copied_data) # if video exists at source, cache for 2 days, if not, for 6 hours hours_to_cache = 2 * 24 if exists else 6