Core Data Types

Difficulty: Beginner

Question

What are the primary data types supported by Redis?

Answer

1. **Strings**: Basic text/binary up to 512MB. 2. **Hashes**: Field-value maps for objects. 3. **Lists**: Collections ordered by insertion. 4. **Sets**: Unique unordered collections. 5. **Sorted Sets**: Like Sets but with scores for ordering (leaderboards).

Concepts covered

Strings, Hashes, Lists, Sets, Sorted Sets