Concept Flow - Maxmemory setting
Start Redis Server
Check maxmemory config
Is maxmemory set?
No→Use unlimited memory
Yes
Limit memory usage to maxmemory
When memory usage > maxmemory
Apply eviction policy
Free memory
Continue running
Redis starts and checks if maxmemory is set. If yes, it limits memory usage and applies eviction when needed.