当前位置:网站首页>Redis与memcached有何不同
Redis与memcached有何不同
2022-07-21 05:07:00 【MountainYanYL】
1,memcached 单个key 大小是1M,新版本是2M。
2,单个redis的大小是512M
3,memcached是一个多线程缓存服务器,而redis 是一个单线程服务器
4,memcached数据不能持久化,断电后数据会丢失
5,redis使数据持久化,其使用RDB机制和AOF机制进行数据的持久化
6,memcached不支持集群,它的多服务器情况是在addServer的时候,由客户端使用hash的方式 ,分配至指定的服务器上,
7,redis 支持集群,最后有16个库,memcached 没有库的概念。
8,redis支持更多的数据类型,而memcached只有键值对key-value,
9,redis在使用的时候,还可以单作队列服务器使用。还支持消息订阅(聊天室,消息推送)。
10,redis内部实现的是数据字典。
11,redis 默认的端口号6379,memcached默认端口号: 11211
Redis 支持的数据类型
String , hash ,list ,set ,zset
Memcached支持的数据类型
String :key-value
边栏推荐
- JSP tag 02
- NPM related information
- 移动端 pc端 小程序 UI框架选择
- First Working Day~
- 2020 Changzhou programming expert real problem and solution
- Nvm、Nrm使用教程
- 18. [precautions for pointer pointing to two-dimensional array]
- Swift navigation bar color device and remove the lower edge line
- Let you understand the main points of typescript in vernacular (III)
- Nodejs读取并解析xml的DOM
猜你喜欢
随机推荐
php 提取字符串中的手机号并验证是否为 11 位
Optimization of image multi picture pages
[C language function array] take away my last thoughts!
QML implements CSDN search box with irregular rounded corners
Mobile PC applet UI framework selection
JS to realize horizontal and vertical screen switching of monitoring mobile terminal
用大白话让你理解TypeScript的要点.(三)
Nodejs读取并解析xml的DOM
$. Usage of each
PHP实现双向链表
打字机打字,退格效果
OpenFOAM中的多孔介质
qml 实现csdn搜索框,无规则圆角
Hot update in development mode to speed up the code update of development environment
The feeling of an elegant "interview"
MySQL functions
How to share files over IP
How to view your own edition of eigen
之前公司的转正题目之一:合并单元格
[C language] 0.5 times the speed to explain the interesting C language playing methods of the century war