mirror of
https://github.com/predis/predis.git
synced 2026-08-21 14:51:06 +00:00
Update the server-side scripting example to use the current Redis unstable.
This commit is contained in:
@@ -29,8 +29,9 @@ class IncrementExistingKey extends ScriptedCommand
|
||||
{
|
||||
return
|
||||
<<<LUA
|
||||
if redis('exists', KEYS[1]) == 1 then
|
||||
return redis('incr', KEYS[1])
|
||||
local cmd = redis.call
|
||||
if cmd('exists', KEYS[1]) == 1 then
|
||||
return cmd('incr', KEYS[1])
|
||||
end
|
||||
LUA;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user