Slide 43
Slide 43 text
ZPOP
using
Lua
Scripting
ì Remove
and
return
the
lowest-‐scored
item
from
a
sorted
set,
atomically
local key = KEYS[1]
local element = redis.call(“ZRANGE”, key, 0, 0)[1]
redis.call(“ZREM”, key, element)
return element
ì Run
using
EVAL
1