0PricingLogin
Redis Caching & Messaging (Pub/Sub, Streams) · Lesson

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:name

All lessons in this course

  1. Introduction to Redis
  2. Redis CLI Basics
  3. Core Redis Data Structures
  4. Key Expiration and TTL in Redis
← Back to Redis Caching & Messaging (Pub/Sub, Streams)