The release of Redis 2.0 marks a major milestone in Redis development. Apart from an endless list of new features, there are some major ones that deserve to be highlighted.
It's worth to mention that while Redis 2.0.0 just reached its first stable release, Redis 2.2.0 is near to reach feature freeze, so ... be prepared for new exiting things in very short time!
The MULTI/EXEC family of commands were added to fulfill the need to execute multiple commands as a single atomic block.
Because all commands inside a MULTI/EXEC block are serialized and executed sequentially, it is not possible that another
client request is served in the middle of executing this block. All commands are executed one after the other when
EXEC is called, which makes sure either
all or
no commands are executed, independent of the state of the client connection.
More on MULTI/EXEC:
Note that WATCH, a CAS (check and set) variant of MULTI/EXEC will be available on 2.2.0 and is not part of 2.0.0.
The commands BLPOP and BRPOP were added to support popping from a list in a blocking fashion. This means the client
connection will be blocked for a certain amount of time until another client pushes an item on a list. These commands
are frequently used in producer/consumer scenarios.
More on blocking pop:
The family of publish/subscribe commands let clients publish messages onto channels and subscribe to receive all messages
that are published on channels. Also included are commands to receive all messages for which the channel matches a given pattern.
More on publish/subscribe:
This new datatype allows to store multiple key/value pairs on a single key. Together with the list of regular commands you
would expect for such a datatype (HSET, HGET, HDEL, HLEN, HKEYS, ...), it is also possible to use the values
inside a hash
for any SORT operation.
More on hashes:
Redis Virtual Memory allows users to grow their dataset beyond the limits of their RAM.
More on virtual memory:
- Salvatore Sanfilippo
- Pieter Noordhuis
- Antonio Ognio
- Alex McHale
- Michel Martens
- Damian Janowski
- Bruno Deferrari
- Ashley Martens
- Derek Collison
- Damian Janowski
- Jeremy Zawodny
- Konstantin Merenkov
- Michel Martens
- Sam Hendley
Thanks to VMware sponsoring the work of Salvatore and Pieter, and the Redis community of users and client library developers. Redis 2.0.0 was possible only thanks to your support.
You can grab Redis 2.0.0 from
Google Code.
It is also tagged on Git.