You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
Add simicolons
This is just a style change
This commit is contained in:
@@ -16,7 +16,7 @@ redis.RedisClient.prototype.parse_info = function (callback) {
|
||||
obj[parts[0]] = parts[1];
|
||||
}
|
||||
});
|
||||
callback(obj)
|
||||
callback(obj);
|
||||
});
|
||||
};
|
||||
|
||||
|
@@ -13,9 +13,9 @@ var redis = require("redis"),
|
||||
|
||||
// Read a file from fs, store it in Redis, get it back from Redis, write it back to fs.
|
||||
fs.readFile(filename, function (err, data) {
|
||||
if (err) throw err
|
||||
if (err) throw err;
|
||||
console.log("Read " + data.length + " bytes from filesystem.");
|
||||
|
||||
|
||||
client.set(filename, data, redis.print); // set entire file
|
||||
client.get(filename, function (err, reply) { // get entire file
|
||||
if (err) {
|
||||
@@ -23,7 +23,7 @@ fs.readFile(filename, function (err, data) {
|
||||
} else {
|
||||
fs.writeFile("duplicate_" + filename, reply, function (err) {
|
||||
if (err) {
|
||||
console.log("Error on write: " + err)
|
||||
console.log("Error on write: " + err);
|
||||
} else {
|
||||
console.log("File written.");
|
||||
}
|
||||
|
@@ -1,9 +1,11 @@
|
||||
'use strict';
|
||||
|
||||
var redis = require("redis"),
|
||||
client = redis.createClient("/tmp/redis.sock"),
|
||||
profiler = require("v8-profiler");
|
||||
|
||||
client.on("connect", function () {
|
||||
console.log("Got Unix socket connection.")
|
||||
console.log("Got Unix socket connection.");
|
||||
});
|
||||
|
||||
client.on("error", function (err) {
|
||||
|
Reference in New Issue
Block a user