Skip to main content

GET_COUNT_LUA

Constant GET_COUNT_LUA 

Source
const GET_COUNT_LUA: &str = r#"
local current = redis.call('GET', KEYS[1])
if current == false then
    return 0
end
return tonumber(current)
"#;
Expand description

Lua script to get current count without incrementing.