Set Redis Max Memory & Eviction Policy
Cap Redis memory usage and choose what happens when the cap is reached.
Sets the maximum memory Redis can use and the eviction policy when that limit is reached. allkeys-lru evicts the least-recently-used key when full - appropriate for cache-only usage.
When you need this: When Redis is on a shared server and you need to prevent it from consuming all available RAM.
Variables
Command
5 views
0 copies
Related in this category
Log in to save
Free account. Save snippets into your own collections.