Skip to content

Instantly share code, notes, and snippets.

Vivek Venugopalan vivekhub

  • Chennai, India
Block or report user

Report or block vivekhub

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vivekhub
vivekhub / mdel.lua
Created Nov 1, 2014
Implementing MDEL in Redis
View mdel.lua
--!/usr/bin/env lua
local delpattern = KEYS[1]
local count = 0
local valuelist = redis.call('keys', delpattern)
if valuelist then
for i = 1, #valuelist do
redis.call('del', valuelist[i])
count = count + 1
end
You can’t perform that action at this time.