关于memcached

来源:互联网 发布:c语言vector用法 编辑:程序博客网 时间:2024/06/05 22:50

1.安装

略过

2.命令

基础命令:set/get/add/replace /delete

高级命令:gets/cas/stats /flush_all 

memcached 命令参数:
参数 用法
key key 用于查找缓存值
flags 可以包括键值对的整型参数,客户机使用它存储关于键值对的额外信息
expiration time 在缓存中保存键值对的时间长度(以秒为单位,0 表示永远)
bytes 在缓存中存储的字节点
value 存储的值(始终位于第二行)

3.memcached

key-value存储系统

淘汰算法:LRU(最近未使用)

支持设定过期时间

4.分布式

memcached本身不支持分布式
1.一致性Hash

5.其他

http://blog.csdn.net/caicongyang/article/details/50603222
http://blog.csdn.net/caicongyang/article/details/46913129


我的CSDN博客地址: http://blog.csdn.net/caicongyang 



1 0