Core Redis Data Structures
Understand and apply Strings, Hashes, Lists, Sets, and Sorted Sets for various data modeling needs.
Redis Data Types & Strings
Redis offers real data structures, not just plain keys. We start with Strings: a value up to 512 MB holding text, JSON, or binary — like a persistent variable.
Strings: Set & Get
Store and read a String with SET and GET. The code below sets a couple of keys and fetches them back.
SET mykey "Hello CoddyKit!"
GET mykey
SET user:1:name "Alice"
GET user:1:nameAll lessons in this course
- Introduction to Redis
- Redis CLI Basics
- Core Redis Data Structures
- Key Expiration and TTL in Redis