Redis 2.8.3 发布,key-value存储系统

jopen 10年前

Redis是一个key-value存储系统。和 Memcached类似,但是解决了断电后数据完全丢失的情况,而且她支持更多无化的value类型,除了和string外,还支持lists(链表)、 sets(集合)和zsets(有序集合)几种数据类型。这些数据类型都支持push/pop、add/remove及取交集并集和差集及更丰富的操作, 而且这些操作都是原子性的。

redis 的作者antirez曾称其为一个数据结构服务器(data structures server),这是一个非常准确的表述,redis的所有功能就是将数据以其固有的几种结构保存,并提供给用户操作这几种结构的接口。我们可以想象我们在各种语言中的那些固有数据类型及其操作。

redis目前提供四种数据类型:string,list,setzset(sorted set)和Hash

  • string是最简单的类型,你可以理解成与Memcached一模一个的类型,一个key对应一个value,其上支持的操作与Memcached的操作类似。但它的功能更丰富。
  • list是一个链表结构,主要功能是push、pop、获取一个范围的所有值等等。操作中key理解为链表的名字。
  • set是集合,和我们数学中的集合概念相似,对集合的操作有添加删除元素,有对多个集合求交并差等操作。操作中key理解为集合的名字。
  • zset是set的一个升级版本,他在set的基础上增加了一个顺序属性,这一属性在添加修改元素的时候可以指定,每次指定后,zset会自动重新按新的值调整顺序。可以理解了有两列的mysql表,一列存value,一列存顺序。操作中key理解为zset的名字。
  • Hash数据类型允许用户用Redis存储对象类型,Hash数据类型的一个重要优点是,当你存储的数据对象只有很少几个key值时,数据存储的内存消耗会很小.更多关于Hash数据类型
--[ Redis 2.8.3 ] 发布日志: 11 Dec 2013    # UPGRADE URGENCY: MODERATE for Redis, HIGH for Sentinel.    * [FIX] Sentinel instance role sampling fixed, the system is now more          reliable during failover and when reconfiguring instances with          non matching configuration.  * [FIX] Inline requests are now handled even when terminated with just LF.  * [FIX] Replication timeout handling greatly improved, now the slave is able          to ping the master while removing the old data from memory, and while          loading the new RDB file. This avoid false timeouts sensed by          masters.  * [FIX] Fixed a replication bug involving 32 bit instances and big datasets          hard to compress that resulted into more than 2GB of RDB file sent.  * [FIX] Return error for inline requests with unbalanced quotes.  * [FIX] Publish the slave replication offset even when disconnected from the          master if there is still a cached master instance.
最新下载:http://download.redis.io/releases/redis-2.8.3.tar.gz