Azure Redis Cache by Patrik

Data Types in Azure Redis Cache

Azure Redis Cache supports storing data in various formats. It supports data structures like Strings, Lists, Sets, and Hashes.

  • Strings: Redis strings are binary safe and allow them to store any type of data with serialization. The maximum allowed string length is 512MB. It provides some useful commands like Incr, Desr, Append, GetRange, SetRange, and other useful commands.
  • Lists: Lists are lists of Strings, sorted by insertion order. It allows adding elements at the beginning or end of the list. It supports constant time insertion and deletion of elements near the beginning or end of the list, even with many millions of inserted items.
  • Sets: These are also lists of Strings. The unique feature of sets is that they don’t allow duplicate values. There are two types of sets: Ordered and Unordered Sets.
  • Hashes: Hashes are objects containing multiple fields. The object allows storing as many fields as required.

Comments