Redis DEL 命令
Redis 教程
· 2019-03-06 17:44:37
Redis DEL 命令用于删除已存在的键。不存在的 key 会被忽略。
语法
redis DEL 命令基本语法如下:
redis 127.0.0.1:6379> DEL KEY_NAME
可用版本
>= 1.0.0
返回值
被删除 key 的数量。
实例
首先,我们在 redis 中创建一个 key 并设置值。
redis 127.0.0.1:6379> SET w3ckey redis OK
现在我们删除已创建的 key。
redis 127.0.0.1:6379> DEL w3ckey (integer) 1
点击查看所有 Redis 教程 文章: https://www.codercto.com/courses/l/33.html
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》 这本书的介绍吧!