想写一个服务多进程写入Redis数据中的某个Key的值,Redis的WATCH命令是否可以防止资源冲突? 在C#中如何使用watch命令? 另外,在C#中如何切换Redis的DB,就像在Redis中select 1切换到1DB一样?
C#的Redis的DLL文件没有一行注释,哪位大神有帮助文档吗? 实在是加大了开发难度,谁有给我发一个呗
不胜感激~
迷茫2017-04-22 09:01:54
The description of
WATCH is
Monitor one (or more) keys. If this (or these) keys are modified by other commands before the transaction is executed, the transaction will be interrupted.
As for how you're going to use it, think about it. . Are you talking about N processes writing the value of a key at the same time? Why?
I recommend you to go to http://redisdoc.com/ for the redis command API, it is very comprehensive