io-timers:带Redis的计时器

时间:2021-03-18 21:11:54
【文件属性】:
文件名称:io-timers:带Redis的计时器
文件大小:4KB
文件格式:ZIP
更新时间:2021-03-18 21:11:54
JavaScript 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客户端用于订阅以下事件: 如果决定提
【文件预览】:
io-timers-master
----src()
--------index.js(3KB)
----.gitignore(13B)
----readme.md(2KB)
----package-lock.json(4KB)
----package.json(604B)

网友评论