Skip to content

Instantly share code, notes, and snippets.

@droot
Created June 19, 2011 07:26
Show Gist options
  • Save droot/1033867 to your computer and use it in GitHub Desktop.
Save droot/1033867 to your computer and use it in GitHub Desktop.
ZPOP Lua script for redis
val = redis.call('zrange', KEYS[1], 0, 0)
if val then redis.call('zremrangebyrank', KEYS[1], 0, 0) end
return val
@kesipyc
Copy link

kesipyc commented Aug 16, 2016

local val
:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment