Redis Watch 命令

更新时间: 2019-07-07 15:54

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

语法

redis Watch 命令基本语法如下:

WATCH key [key ...]

可用版本

>= 2.2.0

返回值

总是返回 OK 。

实例

redis> WATCH lock lock_times
OK

查看更多 Redis 事务命令

Introduction to Computer Science Using Python

Introduction to Computer Science Using Python

Dierbach, Charles / 2012-12 / $ 133.62

Introduction to Computer Science Using Python: A Computational Problem-Solving Focus introduces students to programming and computational problem-solving via a back-to-basics, step-by-step, objects-la......一起来看看 《Introduction to Computer Science Using Python》 这本书的介绍吧!

随机密码生成器

随机密码生成器

多种字符组合密码

XML、JSON 在线转换

XML、JSON 在线转换

在线XML、JSON转换工具

RGB HSV 转换

RGB HSV 转换

RGB HSV 互转工具