Skip to content

Instantly share code, notes, and snippets.

@itayw
Last active February 4, 2016 10:32
Show Gist options
  • Save itayw/16dada43d83458de2bd6 to your computer and use it in GitHub Desktop.
Save itayw/16dada43d83458de2bd6 to your computer and use it in GitHub Desktop.
JA-9034 - Redis size limit test
var
fs = require('fs'),
path = require('path'),
redis = require('redis'),
client = redis.createClient();
var fixture = fs.readFileSync(path.join(__dirname, 'fixture.txt'));
client.rpush('test-q-for-verint', fixture, redis.print);
client.lpop('test-q-for-verint', function(err, result) {
if (err)
throw (err);
console.log('Fixture value length', result.length);
client.quit();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment