Created
November 7, 2013 23:50
-
-
Save brycebaril/7363903 to your computer and use it in GitHub Desktop.
BALEET
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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