Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var redisClient = redis.createClient();
- function getDecompressedProject(project_hash, callback)
- {
- redisClient.hget(project_hash, 'data', function(err, value)
- {
- if (value)
- {
- var gunzip = new compress.Gunzip();
- gunzip.write(value, function(err, data)
- {
- gunzip.close(function(err, data)
- {
- callback(data);
- });
- });
- }
- });
- }
Add Comment
Please, Sign In to add comment