Sha256: d7a4bc0e26fbdc1a634e272ceedfba8deeb6a5995aa69c47ba44bf9341b57af4

Contents?: true

Size: 699 Bytes

Versions: 32

Compression:

Stored size: 699 Bytes

Contents

var redis = require("../index").createClient(null, null, {
//    max_attempts: 4
});

redis.on("error", function (err) {
    console.log("Redis says: " + err);
});

redis.on("ready", function () {
    console.log("Redis ready.");
});

redis.on("reconnecting", function (arg) {
    console.log("Redis reconnecting: " + JSON.stringify(arg));
});
redis.on("connect", function () {
    console.log("Redis connected.");
});

setInterval(function () {
    var now = Date.now();
    redis.set("now", now, function (err, res) {
        if (err) {
            console.log(now + " Redis reply error: " + err);
        } else {
            console.log(now + " Redis reply: " + res);
        }
    });
}, 100);

Version data entries

32 entries across 32 versions & 3 rubygems

Version Path
hooch-0.4.2 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/reconnect_test.js
hooch-0.4.1 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/reconnect_test.js
hooch-0.4.0 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/reconnect_test.js
hooch-0.3.0 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/reconnect_test.js
hooch-0.2.1 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/reconnect_test.js
hooch-0.2.0 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/reconnect_test.js
hooch-0.1.0 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/reconnect_test.js
hooch-0.0.8 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/reconnect_test.js
hooch-0.0.7 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/reconnect_test.js
hooch-0.0.6 jasmine/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/reconnect_test.js
entangled-0.0.16 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/reconnect_test.js
entangled-0.0.15 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/reconnect_test.js
entangled-0.0.14 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/reconnect_test.js
entangled-0.0.13 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/reconnect_test.js
entangled-0.0.12 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/reconnect_test.js
entangled-0.0.11 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/reconnect_test.js
entangled-0.0.10 spec/dummy/public/node_modules/karma/node_modules/socket.io/node_modules/redis/benches/reconnect_test.js
express_translate-1.0.13 node_modules/redis/benches/reconnect_test.js
express_translate-1.0.12 node_modules/redis/benches/reconnect_test.js
express_translate-1.0.11 node_modules/redis/benches/reconnect_test.js