Last active
February 4, 2016 10:32
-
-
Save itayw/16dada43d83458de2bd6 to your computer and use it in GitHub Desktop.
JA-9034 - Redis size limit test
This file contains hidden or 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 | |
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