Redis Watch 命令

Redis 教程 · 2019-03-08 10:12:16

Redis Watch 命令用于监视一个(或多个) key ,如果在事务执行之前这个(或这些) key 被其他命令所改动,那么事务将被打断

语法

redis Watch 命令基本语法如下:

WATCH key [key ...]

可用版本

>= 2.2.0

返回值

总是返回 OK 。

实例

redis> WATCH lock lock_times
OK

点击查看所有 Redis 教程 文章: https://codercto.com/courses/l/33.html

查看所有标签

Programming Amazon Web Services

Programming Amazon Web Services

James Murty / O'Reilly Media / 2008-3-25 / USD 49.99

Building on the success of its storefront and fulfillment services, Amazon now allows businesses to "rent" computing power, data storage and bandwidth on its vast network platform. This book demonstra......一起来看看 《Programming Amazon Web Services》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

随机密码生成器
随机密码生成器

多种字符组合密码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具