Constant Field Values

Contents

io.github.*

  • io.github.bucket4j.redis.consts.LuaScripts
    Modifier and Type
    Constant Field
    Value
    public static final String
    "if redis.call(\'get\', KEYS[1]) == ARGV[1] then redis.call(\'set\', KEYS[1], ARGV[2]); return 1; else return 0; end"
    public static final String
    "if redis.call(\'get\', KEYS[1]) == ARGV[1] then redis.call(\'psetex\', KEYS[1], ARGV[3], ARGV[2]); return 1; else return 0; end"
    public static final String
    "if redis.call(\'set\', KEYS[1], ARGV[1], \'nx\') then return 1; else return 0; end"
    public static final String
    "if redis.call(\'set\', KEYS[1], ARGV[1], \'nx\', \'px\', ARGV[2]) then return 1; else return 0; end"