What is Redis eviction policy?

Updated Apr 23, 2026

Short answer

Eviction policy determines which keys are removed when memory limit is reached.

Deep explanation

Redis supports policies like LRU (least recently used), LFU (least frequently used), random, and TTL-based eviction. Choosing the right policy depends on application usage patterns.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More Redis interview questions

View all →