Skip to content

Update maxmemory policy descriptions #4788

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions sites/platform/src/add-services/valkey.md
Original file line number Diff line number Diff line change
Expand Up @@ -481,16 +481,16 @@ services:

The following table presents the possible values:

| Value | Policy description |
|-------------------|-------------------------------------------------------------------------------------------------------------|
| `allkeys-lru` | Removes the oldest cache items first. This is the default policy when `maxmemory_policy` isn't set. |
| `noeviction` | New items arent saved when the memory limit is reached. |
| `allkeys-lfu` | Removes least frequently used cache items first. |
| `volatile-lru` | Removes least recently used cache items with the `expire` field set to `true`. |
| `volatile-lfu` | Removes least frequently used cache items with the `expire` field set to `true`. |
| `allkeys-random` | Randomly removes cache items to make room for new data. |
| `volatile-random` | Randomly removes cache items with the `expire` field set to `true`. |
| `volatile-ttl` | Removes cache items with the `expire` field set to `true` and the shortest remaining `time-to -live` value. |
| Value | Policy description |
|-------------------|--------------------------------------------------------------------------------------------------------------------------------------|
| `allkeys-lru` | Keeps most recently used keys; removes least recently used (LRU) keys. This is the default policy when `maxmemory_policy` isn't set. |
| `noeviction` | New values aren't saved when memory limit is reached. |
| `allkeys-lfu` | Keeps frequently used keys; removes least frequently used (LFU) keys |
| `volatile-lru` | Removes least recently used keys with a time-to-live (TTL) set. |
| `volatile-lfu` | Removes least frequently used keys with a TTL set. |
| `allkeys-random` | Randomly removes keys to make space for the new data added. |
| `volatile-random` | Randomly removes keys with a TTL set. |
| `volatile-ttl` | Removes keys with a TTL set, the keys with the shortest remaining time-to-live value first. |

For more information on the different policies,
see the official [Valkey documentation](https://valkey.io/topics/lru-cache/).
Expand Down
Loading