aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-07 10:43:13 +0100
committerGitHub <noreply@github.com>2016-07-07 10:43:13 +0100
commit34f647d43726ba736cf4b1aa21bd4e57eb55c10b (patch)
treea47ae0342e808dad66286ebdf55afd09616bdd6f /src/plugins
parent4556f6818f9a6626a35319cc6a6a7207dba1f093 (diff)
parent9d818babae28cf5bf44a4127c67e5875236fbf21 (diff)
downloadrspamd-34f647d43726ba736cf4b1aa21bd4e57eb55c10b.tar.gz
rspamd-34f647d43726ba736cf4b1aa21bd4e57eb55c10b.zip
Merge pull request #704 from AlexeySa/patch-10
[Fix] Fix redis set request in replies plugin
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/replies.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/replies.lua b/src/plugins/lua/replies.lua
index b4dd00cb7..106a738cb 100644
--- a/src/plugins/lua/replies.lua
+++ b/src/plugins/lua/replies.lua
@@ -99,8 +99,8 @@ local function replies_set(task)
key, -- hash key
true, -- is write
redis_set_cb, --callback
- 'SET', -- command
- {key, 1, "ex", settings['expire']} -- arguments
+ 'SETEX', -- command
+ {key, tostring(settings['expire']), "1"} -- arguments
)
if not ret then
rspamd_logger.errx("redis request wasn't scheduled")