Sha256: a99c5f6103d678e1790a32d45884330f6bc4c957738b760d07c3254ad22f1905
Contents?: true
Size: 320 Bytes
Versions: 41
Compression:
Stored size: 320 Bytes
Contents
local key = KEYS[1] local lmt = tonumber(ARGV[1]) local ttl = tonumber(ARGV[2]) local now = tonumber(ARGV[3]) if lmt <= redis.call("LLEN", key) and now - redis.call("LINDEX", key, -1) < ttl then return 1 end redis.call("LPUSH", key, now) redis.call("LTRIM", key, 0, lmt - 1) redis.call("EXPIRE", key, ttl) return 0
Version data entries
41 entries across 41 versions & 1 rubygems