Sha256: 76f2b1cb312119356803c4a4f2ac275cc269b6dffe9b60b52f88c972c2181121
Contents?: true
Size: 270 Bytes
Versions: 5
Compression:
Stored size: 270 Bytes
Contents
local key = KEYS[1] local jid = KEYS[2] local lmt = tonumber(ARGV[1]) local ttl = tonumber(ARGV[2]) if lmt <= redis.call("SCARD", key) and 0 == redis.call("SISMEMBER", key, jid) then return 1 end redis.call("SADD", key, jid) redis.call("EXPIRE", key, ttl) return 0
Version data entries
5 entries across 5 versions & 1 rubygems