Skip to content
Create a gist now

Instantly share code, notes, and snippets.

MEXISTS Redis Lua script
$ cat /tmp/mexists.lua
local retval,j
for i=1,#KEYS do
return retval
$ ./redis-cli --eval /tmp/mexists.lua foo bar key0
1) (integer) 0
2) (integer) 0
3) (integer) 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.