From Wikipedia, the free encyclopedia
Jump to: navigation, search
This article is about Redis software. For Redis people, see Romani people.
Redis Logo.svg
Developer(s) Salvatore Sanfilippo[1][2]
Initial release April 10, 2009; 5 years ago (2009-04-10)
Stable release 2.8.19 / December 16, 2014; 3 months ago (2014-12-16)
Development status Active
Written in ANSI C
Operating system Cross-platform
Available in English
Type Key–value stores
License BSD

Redis is a data structure server. It is open-source, networked, in-memory, and stores keys with optional durability. The development of Redis has been sponsored by Pivotal Software since May 2013;[3] before that, it was sponsored by VMware.[4][5] According to the monthly ranking by, Redis is the most popular key-value store.[6] The name Redis means REmote DIctionary Server.[7]

Supported languages[edit]

Many languages have Redis bindings, including:[8] ActionScript, C, C++, C#, Clojure, Common Lisp, Dart, Erlang, Go, Haskell, Haxe, Io, Java, JavaScript (Node.js), Lua, Objective-C, Perl, PHP, Pure Data, Python, R,[9] Racket, Ruby, Scala, Smalltalk and Tcl.

Data types[edit]

Redis maps keys to many types of values. A key difference between Redis and other structured storage systems is that Redis supports not only strings, but also abstract data types:

  • 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)
  • Hash tables where keys and values are strings

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.


Redis typically holds the whole dataset in memory. Versions up to 2.4 could be configured to use what they refer to as virtual memory [10] in which some of the dataset is stored on disk, but this feature is deprecated. Persistence is now 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, written in RDB dump format. Since version 1.1 the safer alternative is AOF, 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.

By default, Redis syncs data to the disk at least every 2 seconds, with more or less robust options available if needed. In the case of a complete system failure on default settings, only a few seconds of data would be lost.[11]


Redis supports master-slave replication. Data from any Redis server can replicate to any number of slaves. A slave may be a master to another slave. This allows Redis to implement a single-rooted replication tree. Redis slaves can be configured to accept writes, permitting intentional and unintentional inconsistency between instances. The Publish/Subscribe feature is fully implemented, so a client of a slave may SUBSCRIBE to a channel and receive a full feed of messages PUBLISHed to the master, anywhere up the replication tree. Replication is useful for read (but not write) scalability or data redundancy.[12]


When the durability of data is not needed, 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.[7] There is no notable speed difference between write and read operations. Redis operates as a single process and single-threaded. Therefore a single Redis instance cannot utilize parallel execution of tasks e.g. stored procedures (Lua scripts).


The Redis project has a cluster specification,[13] but the cluster feature is currently in Beta stage.[14] According to a news post by Redis creator Sanfilippo, the first production version of Redis cluster (planned for beta release at end of 2013),[15][needs update?] will support automatic partitioning of the key space and hot resharding, but will support only single key operations.[16] In future Redis Cluster is planned to support up to 1000 nodes, fault tolerance with heartbeat and failure detection, incremental versioning (“epochs”) to prevent conflicts, slave election and promotion to master, and publish/subscribe between all cluster nodes.[13][14][17]

Cloud deployment[edit]

Redis is commonly deployed on IaaS or PaaS platforms like Amazon Web Services, Rackspace, or Heroku.

On IaaS platforms, it is possible to deploy Redis by uploading a virtual machine image, with Redis installed, to a cloud machine instance. Alternatively, it is possible to install Redis on an already-running machine instance.

On both IaaS and PaaS platforms, there are commercial database as a service providers which allow applications to use Redis as a managed service, without manually launching a virtual machine instance for the database. These services handle installation, configuration and maintenance of Redis on behalf of the application owner. Following are notable examples of commercial Redis database as a service providers.

Provider Available On Managed Service Features Pricing Model
Amazon Web Services - ElastiCache[22]

Amazon EC2

  • High Availability
  • Persistence
  • Automatic healing of failed nodes
  • Resilient system to prevent overloaded DBs
  • Performance monitoring
  • Free for 750 hours on micro instance[23]
  • Pay per use for machine utilization, no separate charge for data usage[24]
Morpheus - Redis as a service [25] Morpheus
  • Cache Behavior Configuration
  • Key Support for Strings, Hashes, Lists, Sets, & Sorted Sets
  • Disk-Dump Config Control For In-Memory Dataset
  • Performance monitoring
  • Single click provisioning
  • Free up to 1 GB during 30 day trial period
  • Paid plans based on memory usage and number of instances
RedisToGo[26] Amazon EC2, Rackspace, Heroku, AppHarbor, Orchestra
  • Daily backups
  • API enabling creation, deletion, or download of Redis instances
  • Automatic export/import of database to new instance on upgrade
  • Free up to 5MB (memory)[26]
  • Paid plans based on memory usage and number of databases
Redis Cloud (Redis Labs)[27] Amazon EC2, Microsoft Azure, IBM SoftLayer, Google Cloud Platform, Heroku, Cloud Foundry, OpenShift, AppFog, AppHarbor
  • Automatic scaling, unlimited Redis nodes
  • High availability
  • Data persistence and durability
  • Daily and on-demand backups
  • Built-in clustering
  • Free up to 25MB (memory)[28]
  • Pay per use, or paid plans based on memory usage and functionality - high availability and Multi-AZ.
ObjectRocket by Rackspace [29] ObjectRocket
  • Highly available
  • User controlled ACLs
  • Free Public IP and backups
  • Optimized for Redis (Containerized Services)
  • Instantly scalable
  • Data migration and fine-tuning assistance
  • Support 24X7X365
  • Assistance with Mongo, Sidekiq and Magento integration
  • Architecture and data structure best practice advice
  • Small: Developer Tier $59 (500MB) - $219 (2.5GB)
  • Medium: $429 (5GB) - $3999 (50GB)
  • Large: 50GB and above contact ObjectRocket

See also[edit]


  1. ^ An interview with Salvatore Sanfilippo, creator of Redis, working out of Sicily,January 4, 2011, by Stefano Bernardi, EU-Startups
  2. ^ Pivotal People—Salvatore Sanfilippo, Inventor of Redis, July 17, 2013, By Stacey Schneider, Pivotal P.O.V.
  3. ^ Redis Sponsors – Redis
  4. ^ VMware: the new Redis home
  5. ^ VMWare: The Console: VMware hires key developer for Redis
  6. ^ DB-Engines Ranking of Key-value Stores
  7. ^ a b "FAQ, Redis". 
  8. ^ Redis language bindings
  9. ^ CRAN – Package rredis
  10. ^ Redis documentation "Virtual Memory",, accessed January 18, 2011.
  11. ^ Redis persistence demystified, 26 March 2012, antirez weblog
  12. ^ ReplicationHowto – redis – A persistent key-value database with built-in net interface written in ANSI-C for Posix systems – Google Project Hosting
  13. ^ a b Redis Cluster Specification,, Retrieved 2013-12-25.
  14. ^ a b Redis Cluster Tutorial,, Retrieved 2014-06-14.
  15. ^ Redis Download Page,, Retrieved 2013-12-25.
  16. ^ News about Redis: 2.8 is shaping, I'm back on Cluster, Antirez Weblog - Salvatore Sanfilippo, Retrieved 2013-12-25.
  17. ^ Redis Cluster - a Pragmatic Approach to Distribution,, Retrieved 2013-12-25.
  18. ^ "Install", GitHub Gist, Retrieved 2013-12-29.
  19. ^ "Running Redis on a CentOS Linux VM in Windows Azure", Thomas Conté's MSDN Weblog, Retrieved 2013-12-29.
  20. ^ "Install Redis On Joyent" Daniel Jackoway, Retrieved 2014-01-14.
  21. ^ "Click-to-deploy Redis on Google Compute Engine", Google Cloud Platform, Retrieved 2015-03-10.
  22. ^ "Amazon ElastiCache", Amazon Web Services, Retrieved 2013-12-29.
  23. ^ "Amazon ElastiCache Free Usage Tier", Amazon Web Services, Retrieved 2013-12-29.
  24. ^ "Amazon ElastiCache Pricing", Amazon Web Services, Retrieved 2013-12-29.
  25. ^ "SQL Authority Review", Retrieved 2014-08-11.
  26. ^ a b "RedisToGo Documentation",, Retrieved 2013-12-29.
  27. ^ Redis Cloud by Redis Labs,, Retrieved 2013-12-29.
  28. ^ "Redis Labs Pricing",, Retrieved 2013-12-29.
  29. ^ Features, ObjectRocket, Retrieved 2014-08-15.

External links[edit]