Sha256: aafd8611f2af09cd07cf2e2336a6903cea0a0d5000f0fe5257d78e9aa748cf49
Contents?: true
Size: 459 Bytes
Versions: 74
Compression:
Stored size: 459 Bytes
Contents
local function delete_from_sorted_set(name, digest) local per = 50 local total = redis.call("zcard", name) local index = 0 local result while (index < total) do local items = redis.call("ZRANGE", name, index, index + per -1) for _, item in pairs(items) do if string.find(item, digest) then redis.call("ZREM", name, item) result = item break end end index = index + per end return result end
Version data entries
74 entries across 74 versions & 1 rubygems