]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix redis set request in replies plugin
authorAlexey AL <AlexeySa@users.noreply.github.com>
Wed, 6 Jul 2016 15:55:01 +0000 (18:55 +0300)
committerGitHub <noreply@github.com>
Wed, 6 Jul 2016 15:55:01 +0000 (18:55 +0300)
src/plugins/lua/replies.lua

index b4dd00cb72c30b66e870460b9a60577f22ce20cc..4085c08c0bbc2a7706aab1adc60fbc271b8b352d 100644 (file)
@@ -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")