数据库 - C# 中使用Redis
天蓬老师
天蓬老师 2017-04-22 08:59:54
0
1
588

想写一个服务多进程写入Redis数据中的某个Key的值,Redis的WATCH命令是否可以防止资源冲突? 在C#中如何使用watch命令? 另外,在C#中如何切换Redis的DB,就像在Redis中select 1切换到1DB一样?
C#的Redis的DLL文件没有一行注释,哪位大神有帮助文档吗? 实在是加大了开发难度,谁有给我发一个呗
不胜感激~

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
迷茫

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!