To delete a key from Redis you have the DEL command. Very fast and works great. Now I had to delete a bunch of keys from Redis and guess what there is no MDEL command. Now the choices are that I can do a KEYS <pattern>* (in the older versions) or the new SCAN calls. Add Lua to that mix and we can create our own MDEL command.
I have uploaded the file to a gist at
https://gist.github.com/vivekhub/1f84d888edaabafb17a5
Feel free to try it out and submit any comments / changes on the gist.
I have uploaded the file to a gist at
https://gist.github.com/vivekhub/1f84d888edaabafb17a5
Feel free to try it out and submit any comments / changes on the gist.