没有合适的资源?快使用搜索试试~ 我知道了~
pub-sub-handler:消息上带有 ObjectKey 的 Redis PubSub
共6个文件
js:3个
gitignore:1个
md:1个
需积分: 5 0 下载量 66 浏览量
2021-07-06
16:16:21
上传
评论
收藏 4KB ZIP 举报
温馨提示
酒馆子处理程序 这是为了与 Redis 一起用作发布/订阅处理程序而编写的。 它只是一个旨在帮助管理套接字的包装器。 设置: var psh = require( 'pub-sub-handler' )( { host: localhost, port: 6379 }, function( channel ){ // Called when the backend Redis makes a subscription }; 订阅: psh.subscribe( 'channel-name', 'key', object, function( channel, key, object, message ){ // Called when a message is published to the specified channel }; 出版: psh.publish(
资源推荐
资源详情
资源评论
收起资源包目录
pub-sub-handler-master.zip (6个子文件)
pub-sub-handler-master
test.js 667B
README.md 1KB
tests
basic.js 2KB
.gitignore 14B
index.js 3KB
package.json 644B
共 6 条
- 1
资源评论
HomeTalk
- 粉丝: 25
- 资源: 4588
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功