Memcached delete 命令
Memcached 教程
· 2019-03-09 05:57:45
Memcached delete 命令用于删除已存在的 key(键)。
语法:
delete 命令的基本语法格式如下:
delete key [noreply]
参数说明如下:
- key:键值 key-value 结构中的 key,用于查找缓存值。
- noreply(可选): 该参数告知服务器不需要返回数据
实例
在以下实例中,我们使用 codercto 作为 key,过期时间设置为 900 秒。之后我们使用 delete 命令删除该 key。
set codercto 0 900 9 memcached STORED get codercto VALUE codercto 0 9 memcached END delete codercto DELETED get codercto END delete codercto NOT_FOUND
输出
输出信息说明:
- DELETED:删除成功。
- ERROR:语法错误或删除失败。
- NOT_FOUND:key 不存在。
点击查看所有 Memcached 教程 文章: https://codercto.com/courses/l/34.html
Coming of Age in Second Life
Tom Boellstorff / Princeton University Press / 2008-04-21 / USD 29.95
The gap between the virtual and the physical, and its effect on the ideas of personhood and relationships, is the most interesting aspect of Boellstorff's analysis... Boellstorff's portrayal of a virt......一起来看看 《Coming of Age in Second Life》 这本书的介绍吧!
html转js在线工具
html转js在线工具
UNIX 时间戳转换
UNIX 时间戳转换