首页 > 系统服务 > 详细

shell指令操作memcached

时间:2019-01-23 11:16:27      阅读:184      评论:0      收藏:0      [点我收藏+]

shell指令操作memcached,可以用来直接测试memcached.

初始值为1000

#set test-value =1000
printf "set test-value 0 0 4\r\n1000\r\n" | nc 127.0.0.1 11211

#get test-value
printf "get test-value\r\n" | nc 127.0.0.1 11211

#test-value +1 
printf "incr test-value 1000\r\n" | nc 127.0.0.1 11211

#test-value-1
printf "decr test-value 1000\r\n" | nc 127.0.0.1 11211

#delete test-value
printf "delete test-value\r\n" | nc 127.0.0.1 11211

#view stats

printf "stats\r\n" | nc 127.0.0.1 11211

 

shell指令操作memcached

原文:https://www.cnblogs.com/ducklyl/p/10307607.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!