Difficulty: Advanced
What is 'maxmemory-samples'?
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.
Memory Management, Tuning
JavaScript is required for the interactive version of this page, including the code playground and progress tracking. Browse all InternHack tutorials.