Skip to content

Instantly share code, notes, and snippets.

@brycebaril
Created November 7, 2013 23:50
Show Gist options
  • Save brycebaril/7363903 to your computer and use it in GitHub Desktop.
Save brycebaril/7363903 to your computer and use it in GitHub Desktop.
BALEET
var client = require("redis").createClient()
var pattern = process.argv[2]
if (!pattern) throw new Error("Read codez for usage")
client.keys(pattern, function (err, keys) {
for (var i = 0; i < keys.length; i++) {
client.del(keys[i])
}
client.unref()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment