redis key过期事件监听

  、     1、更改配置文件,将 notify-keyspace-events "" 改为 notify-keyspace-events Ex     2、通过命令redis-server.exe redis.window.conf 启动redis     3、c#中代码如下        4、注意:可能服务长时间运行,订阅会失效,需要更改rendis:tcp-keepalive , tcp-
相关文章
相关标签/搜索