Useful data types

Redis provides several useful data types for developers to model their use cases with:

  • Strings: This stores string values up to a maximum size of 512 MB
  • Lists: A collection of string values, sequenced by the insertion order
  • Sets: A unique collection of string values
  • Sorted Sets: A unique collection of string values, sorted by a score
  • Hashes: Allows for the storing of object data by mapping string properties and values
  • Bitmaps: Still a string at its core, but allows for storage of bitmasks or bit operations
  • HyperLogLogs: Probabilistic type used to estimate collection cardinality

Get Seven NoSQL Databases in a Week now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.