Set Redis Max Memory & Eviction Policy
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
2 views
0 copies
Related in this category
Log in to save
Free account — save snippets into your own collections.