Intro

Redis is an open source, BSD licensed, advanced key-value store.

Keys:

Keys are the primary way to access data values within Redis.

  • Key names are binary safe
    any binary sequence can be used as a key. if use string for keys Since a key name is a binary sequence, by implication, it's case sensitive.
  • Up to 512 megabytes in size
  • Within a logical database, the key names are unique

logical database

A logical database is identified by a zero-based index. The default is database 0. Redis cluster only supports database 0. This feature is not well supported in many tools and frameworks and database 0 is always used.

Typically, naming keys often use with a colon as a separator. Example:
     
      [Project]:[Team]:[Service]:[Key]