From 30ef468ffe8ed72eecda6aaff1e48bc178ac45a5 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Fri, 28 Feb 2025 10:22:34 +0200 Subject: [Minor] Forgot to use `SETEX` --- src/plugins/lua/contextal.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/plugins/lua/contextal.lua b/src/plugins/lua/contextal.lua index 8cc5cf1d0..20b5416d8 100644 --- a/src/plugins/lua/contextal.lua +++ b/src/plugins/lua/contextal.lua @@ -97,8 +97,8 @@ local function process_actions(task, obj, is_cached) key, -- hash key true, -- is write redis_set_cb, --callback - 'SET', -- command - { key, ucl.to_format(cache_obj, 'json-compact') } -- arguments + 'SETEX', -- command + { key, settings.cache_ttl, ucl.to_format(cache_obj, 'json-compact') } -- arguments ) if not ret then -- cgit v1.2.3