Cascadiq

In-Memory Caching Layer

project · Level 2 · 35 min

Description

Design a simple cache with get(key), set(key, value), and optional TTL. Evict expired entries or use a max size (e.g. LRU).

Requirements

  • get/set interface
  • Optional TTL or max size
  • Handle eviction when full or expired

Constraints

In-memory. No Redis.

Deliverables

Cache implementation and a short note on when you would use a distributed cache.

Tags

BackendCaching