Redis is a key-value store engine used by most components of the CartoDB application stack to store configuration and cache.

In contrast to the PostgreSQL metadata (which is used only by the CartoDB editor), the metadata stored in Redis is shared among the CartoDB editor, the SQL API, and the Maps API.


Even though also used as a cache, there is also persistent data stored in Redis. In some environments Redis is configured by default to act without persistency (see

You must ensure Redis is configured properly to keep its data between restarts.

Data is stored in separate databases inside this Redis:
  • Database 0: Table and visualization metadata, including map styles and named maps.
  • Database 3: OAuth credentials metadata.
  • Database 5: Metadata about the users, including API keys and database_hosts.

At this moment CartoDB requires redis 3.x version.