1. 首页
  2. 数据库
  3. 其它
  4. io timers:带Redis的计时器 源码

io timers:带Redis的计时器 源码

上传者: 2021-05-08 19:52:20上传 ZIP文件 4.33KB 热度 5次
io-timers 如何使用 const IoTimers = require ( 'io-timers' ) ; const ioTimers = IoTimers ( { host : 'localhost' , port : 6379 } ) ; 原料药 IoTimers(uri [,选择]) uri是一个字符串,例如redis服务器所在的localhost:6379 。有关选项的列表,请参见下文。 适配器(可选) 允许以下选项: key :发布/订阅事件的键的名称作为前缀( io-timers ) host :连接到( localhost )上的redis的localhost port :连接到redis的端口( 6379 ) pubClient :可选,redis客户端,用于在以下位置发布事件 subClient :可选,redis客户端用于订阅以下事件: 如果决定提
下载地址
用户评论