diff options
author | Andrew Lewis <nerf@judo.za.org> | 2025-02-28 10:22:34 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2025-03-24 13:54:51 +0200 |
commit | 30ef468ffe8ed72eecda6aaff1e48bc178ac45a5 (patch) | |
tree | d04a3f3ceb6df067e438e88767048e7a5ee46b4f /src | |
parent | 2c3dbe5779e488ea7d467c9f0c28831b444a1d4c (diff) | |
download | rspamd-30ef468ffe8ed72eecda6aaff1e48bc178ac45a5.tar.gz rspamd-30ef468ffe8ed72eecda6aaff1e48bc178ac45a5.zip |
[Minor] Forgot to use `SETEX`
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/contextal.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |