This is an old revision of this page, as edited by Sorenriise (talk | contribs) at 05:11, 14 November 2010 (→External links). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Revision as of 05:11, 14 November 2010 by Sorenriise (talk | contribs) (→External links)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)Developer(s) | Salvatore Sanfilippo |
---|---|
Initial release | 2009 |
Stable release | 2.0.3 / October 15, 2010 (2010-10-15) |
Repository | |
Written in | ANSI C |
Operating system | Cross-platform |
Available in | English |
Type | Document-oriented database |
License | BSD |
Website | http://code.google.com/p/redis/ |
Redis is an open-source, networked, in-memory, persistent, journaled, key-value data store. It is written in ANSI C. Supported languages or language bindings include C, C++, C#, Clojure, Common Lisp, Erlang, Java, JavaScript, Lua, Perl, PHP, Python, Ruby, Scala, Go, and Tcl. As of 15 March 2010, development of Redis is funded by VMware.
Data model
Redis data model is in its outer layer, similarly to other structured storage systems, a dictionary where keys are mapped to values. One of the main differences between Redis and other structured storage systems is that values are not limited to strings. In addition to strings, the following abstract data types are supported:
- Lists of strings
- Sets of strings (collections of non-repeating unsorted elements)
- Sorted sets of strings (collections of non-repeating elements ordered by a floating-point number called score)
- Hashes where keys are strings and values are either strings or integers
The type of a value determines what operations (called commands) are available for the value itself. Redis supports high level atomic server side operations like intersection, union, and difference between sets and sorting of lists, sets and sorted sets.
Persistence
Redis holds the whole dataset in RAM. Persistence is reached in two different ways: One is called snapshotting, and is a semi-persistent durability mode where the dataset is asynchronously transferred from memory to disk from time to time. Since version 1.1 the safer alternative is an append-only file (a journal) that is written as operations modifying the dataset in memory are processed. Redis is able to rewrite the append-only file in the background in order to avoid an indefinite growth of the journal.
Replication
Redis supports master-slave replication. Data from any redis server can replicate to any number of slaves. Replication is useful for read (but not write) scalability or data redundancy.
Performance
The in-memory nature of Redis allows it to perform extremely well compared to database systems that write every change to disk before considering a transaction committed. There is no notable speed difference between write and read operations.
See also
References
- Jeremy Zawodny, Redis: Lightweight key/value Store That Goes the Extra Mile, Linux Magazine, August 31, 2009
- Isabel Drost and Jan Lehnard (29 October 2009), Happenings: NoSQL Conference, Berlin, The H. Slides for the Redis presentation. Summary.
- Billy Newport (IBM): "Evolving the Key/Value Programming Model to a Higher Level" Qcon Conference 2009 San Francisco.
- VMware: the new Redis home
- VMWare: The Console: VMware hires key developer for Redis
- http://code.google.com/p/redis/ReplicationHowto
- A. Charnock: "Redis Benchmarking on Amazon EC2, Flexiscale, and Slicehost"