QuestionQ72

VerifiedConnect to and consume Azure services

You are implementing the expiry requirement for AI-generated summaries in the Redis cache.

You must remove the AI summaries five minutes after they are created, no matter how frequently they are accessed.

What should you do?

Explanation

A Redis key with an expiration set at creation has a fixed time to live and is removed when that TTL elapses unless its expiry is explicitly altered. This meets a five-minute lifetime independent of read activity; sliding expiration would instead extend the lifetime after accesses.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!