public
Created

  • Download Gist
gistfile1.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
var redis = require('./lib/redis');
var fs = require('fs');
var txt = fs.readFileSync(__dirname + '/keys.txt', 'utf8');
var lines = txt.split(/\s/);
 
var multi = redis.multi();
var deld = 0;
 
lines.forEach(function (line) {
if (line.indexOf('entryCache') > 0) {
multi.del(line);
deld++;
}
});
 
console.log('Del ' + deld);
 
multi.exec(function (err) { console.log(err); console.log('done'); });

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.