You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
local value = tonumber(redis.call('GET', KEYS[1]))
|
|
if value == nil then
|
|
value = 0
|
|
end
|
|
|
|
redis.debug('asdfasdf')
|
|
|
|
local newValue = tonumber(KEYS[2])
|
|
if newValue > value then
|
|
redis.call('SET', KEYS[1], newValue)
|
|
return 1;
|
|
end
|
|
|
|
return 0;
|
|
|
|
|