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