All Questions
Redis easy

You need to cache a user session to ensure it is automatically cleared after 1 hour. Which Redis feature enables this?

  1. A Cron Jobs: Setting up a background system script to scan and delete old user records every hour.
  2. B Garbage Collection: Relying on the native jemalloc allocator to reclaim unused memory segments.
  3. C TTL (Time To Live): Configuring an expiration timer that triggers a delete when it hits zero.
  4. D Manual Deletion: Forcing the application layer to track timestamps and delete keys voluntarily.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions