django redis VS memcache 区别简介
2016-04-29 14:27
183 查看
https://www.v2ex.com/t/142644
http://stackoverflow.com/questions/10558465/memcached-vs-redis
简单来说:
redis :支持的数据类型多,读写速度快,支持的单个文件大小要大,可以数据永久化
redis支持:
Binary-safe strings.
Lists: collections of string elements sorted according to the order of insertion. They are basically linked lists.
Sets: collections of unique, unsorted string elements.
Sorted sets, similar to Sets but where every string element is associated to a floating number value, called score. The elements are always taken sorted by their score, so unlike Sets it is possible to retrieve a range of elements (for example you may ask: give me the top 10, or the bottom 10).
Hashes, which are maps composed of fields associated with values. Both the field and the value are strings. This is very similar to Ruby or Python hashes.
Bit arrays (or simply bitmaps): it is possible, using special commands, to handle String values like an array of bits: you can set and clear individual bits, count all the bits set to 1, find the first set or unset bit, and so forth.
HyperLogLogs: this is a probabilistic data structure which is used in order to estimate the cardinality of a set. Don't be scared, it is simpler than it seems... See later in the HyperLogLog section of this tutorial.
http://stackoverflow.com/questions/10558465/memcached-vs-redis
简单来说:
redis :支持的数据类型多,读写速度快,支持的单个文件大小要大,可以数据永久化
redis支持:
Binary-safe strings.
Lists: collections of string elements sorted according to the order of insertion. They are basically linked lists.
Sets: collections of unique, unsorted string elements.
Sorted sets, similar to Sets but where every string element is associated to a floating number value, called score. The elements are always taken sorted by their score, so unlike Sets it is possible to retrieve a range of elements (for example you may ask: give me the top 10, or the bottom 10).
Hashes, which are maps composed of fields associated with values. Both the field and the value are strings. This is very similar to Ruby or Python hashes.
Bit arrays (or simply bitmaps): it is possible, using special commands, to handle String values like an array of bits: you can set and clear individual bits, count all the bits set to 1, find the first set or unset bit, and so forth.
HyperLogLogs: this is a probabilistic data structure which is used in order to estimate the cardinality of a set. Don't be scared, it is simpler than it seems... See later in the HyperLogLog section of this tutorial.
相关文章推荐
- PHP之——Centos 6.5 基于libmemcached,php扩展memcached的安装
- memcached 异常 : 单数据项超过默认值1m
- memcached & redis基本操作
- Memcache查看运行状况
- PHP之Memcached
- memcached telnet命令
- 深入理解redis_memcached失效原理
- PHP + Memcache 实现多服务器session共享
- memcache 不稳定问题
- memcached基本操作
- Memcached 集群的高可用(HA)架构
- 应对 Memcached 缓存失效,导致高并发查询 DB 的几种思路
- 关于 redis、memcache、mongoDB 的对比
- memcached 启动参数 和 stat 参数详解
- Memcache-Java-Client-Release源码阅读(之四)
- Redis 和Memcache的区别
- 最近学习的memcached+服务器编程+nginx博客地址记录
- Memcached 及 Redis 架构分析和比较
- Redis与Memcached的区别
- memcached搭建缓存系统