1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00
2010-09-14 17:12:15 -07:00
2010-09-14 17:11:57 -07:00
2010-09-14 17:12:15 -07:00
2010-09-14 01:29:19 -07:00
2010-09-14 17:12:05 -07:00

redis - a node redis client

This is a Redis client for node. It is designed for node 0.2.1+ and redis 2.0.1+.

Example usage:

var redis = require("redis"),
    client = redis.createClient();

client.on("connect", function () {
    client.set(["string key", "string val"], function (err, results) {
        console.log("SET: " + results);
    });
    client.hset(["hash key", "hashtest 1", "should be a hash"], function (err, results) {
        console.log("HSET: " + results);
    });
    client.hset(["hash key", "hashtest 2", "should be a hash"], function (err, results) {
        console.log("HSET: " + results);
    });
    client.hkeys(["hash key"], function (err, results) {
        console.log("HKEYS: " + results);
    });
});

This will display:

SET: OK
HSET: 1
HSET: 1
HKEYS: hashtest 1,hashtest 2

More instructions will be available as soon as the tests all pass.

Description
Go Node.js клиент
Readme MIT 146 MiB
Languages
TypeScript 92.8%
JavaScript 7.2%