Strings — The FoundationThe simplest Redis type. A key maps to a single value — a string, a number, a JSON blob, or even binary data. Strings are the backbone of caching (cache-aside), session storage, and counters. The SET/GET commands you already know handle strings.
Hashes — Objects Made EasyA hash maps field names to values inside a single key. Think of it as a Redis object — one key for "user:123" with fields "name", "email", "avatar". No need to serialize the whole object or fetch fields you do not need. Hashes are the most memory-efficient way to store structured data.
Lists, Sets, Sorted Sets — CollectionsLists are ordered sequences — great for message queues and timelines. Sets are unordered unique collections — perfect for tracking likes, readers, or tags. Sorted sets are sets with a score — every member has a number, and Redis keeps them sorted. This is how leaderboards, trending feeds, and rate limiters work.