1、NoSQL技术简介
1、Schemaless 2、In-Memory 3、弱化事务 4、适用于Cluster环境 5、没有复杂的连接查询操作 6、脚本语言支持
2、Redis是什么?
redis是一个开源、支持网络、基于内存、键值对型的NoSQL数据库
3、Redis的特点
1、Redis是一个高性能的Key/Value数据库 2、基于内存 3、数据类型丰富 4、持久化 5、单线程 6、订阅/发布模型
4、Redis与Memcache对比
1、Redis不仅仅支持简单的k/v类型的数据,同时还提供list,set,hash等数据结构存储 2、Redis支持数据的主从复制,即master-slave模式的数据备份 3、Redis支持数据的持久化,可以将内存中的数据保存到磁盘中,重启的时候可以再次加载原有数据 4、Redis单个Value的最大限制是1GB,memcache只能保存1M的数据