hectoday
DocsCoursesChangelog GitHub
DocsCoursesChangelog GitHub

Access Required

Enter your access code to view courses.

Invalid code

← All courses

Caching with @hectoday/http

Stop hitting the database for data that has not changed. HTTP caching headers, in-memory caches, cache-aside pattern, TTL, LRU eviction, and invalidation strategies — all on Hectoday HTTP.

Intermediate ~5 hours

Why Caching

  1. The Same Query, A Thousand Times
  2. Project Setup

HTTP Caching

  1. Cache-Control Headers
  2. ETags and Conditional Requests
  3. Stale-While-Revalidate

Server-Side Caching

  1. In-Memory Caching with Map
  2. TTL and Expiration
  3. Cache-Aside Pattern
  4. LRU Eviction

What to Cache

  1. Caching Database Queries
  2. Caching Computed Results
  3. Caching External API Responses

Invalidation

  1. The Hardest Problem
  2. Time-Based Invalidation
  3. Event-Based Invalidation
  4. Tag-Based Invalidation

Putting It All Together

  1. Caching Checklist
  2. Capstone: Caching the Book Catalog

© 2026 hectoday. All rights reserved.