node_redisRedis 的 Node.js 扩展包
node_redis 可让你在 Node.js 编程环境中连接并操作 Redis 上的数据。
示例代码:
var redis = require("redis"),
client = redis.createClient();
client.on("error", function (err) {
console.log("Error " + err);
});
client.set("string key", "string val", redis.print);
client.hset("hash key", "hashtest 1", "some value", redis.print);
client.hset(["hash key", "hashtest 2", "some other value"], redis.print);
client.hkeys("hash key", function (err, replies) {
console.log(replies.length + " replies:");
replies.forEach(function (reply, i) {
console.log(" " + i + ": " + reply);
});
client.quit();
});
评论
Node.js FastNode.js 扩展包
Fast是Node.js的一个很小的基于TCP消息框架的JSON远程调用包,可用来编写简单的基于JSON的RPC系统。示例代码:var fast = require('fast');var serve
Node.js FastNode.js 扩展包
0
phalcon-debugbarPhalcon 扩展包
PhalconDebugbar 这个扩展包将 PHP Debug Bar 与 Phalcon Fr
phalcon-debugbarPhalcon 扩展包
0
phalcon-debugbarPhalcon 扩展包
PhalconDebugbar 这个扩展包将PHPDebugBar与 PhalconFrameWork集成在了一起.要感谢laravel-debugbar,我从中得到了启发,使用了其中的一些代码,经过
phalcon-debugbarPhalcon 扩展包
0