Memcached flush_all命令
Memcached flush_all命令用于清理缓存中的所有key=>value(键=>值)对。
该命令提供了一个可选参数time,用于在制定的时间后执行清理缓存操作。文章源自小柒网-https://www.yangxingzhen.cn/6967.html
语法:文章源自小柒网-https://www.yangxingzhen.cn/6967.html
flush_all命令的基本语法格式如下:文章源自小柒网-https://www.yangxingzhen.cn/6967.html
flush_all [time] [noreply]文章源自小柒网-https://www.yangxingzhen.cn/6967.html
实例文章源自小柒网-https://www.yangxingzhen.cn/6967.html
清理缓存:文章源自小柒网-https://www.yangxingzhen.cn/6967.html
[root@localhost ~]# telnet 127.0.0.1 11211文章源自小柒网-https://www.yangxingzhen.cn/6967.html
Trying 127.0.0.1...文章源自小柒网-https://www.yangxingzhen.cn/6967.html
Connected to 127.0.0.1.文章源自小柒网-https://www.yangxingzhen.cn/6967.html
Escape character is '^]'.文章源自小柒网-https://www.yangxingzhen.cn/6967.html
set test 0 900 9
memcached
STORED
get test
VALUE test 0 9
memcached
END
flush_all
OK
get test
END
若文章图片、下载链接等信息出错,请在评论区留言反馈,博主将第一时间更新!如本文“对您有用”,欢迎随意打赏,谢谢!


评论