LRU Accuracy

Difficulty: Advanced

Question

What is 'maxmemory-samples'?

Answer

It controls the accuracy of the LRU/LFU approximation. Increasing it (e.g., from default 5 to 10) makes eviction more precise but uses more CPU.

Concepts covered

Memory Management, Tuning