我需要知道何时将数据写入 Redis 存储的特定键上。
有什么方法可以使用 Node.js 监听 Redis 关键事件,还是我必须使用 pub/sub 实用程序?
在第二种情况下,最好的方法是什么?
最佳答案
Is there any way to listen to Redis key events using Node.js or do I have to use the pub/sub utilities?
据我所知,redis 本身并不支持 key change notifications yet虽然还有其他alternatives包括基于发布/订阅的解决方案。
关于events - 使用Node.js监听Redis上的按键事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8954324/