Skip to content

Commit c77a92e

Browse files
Merge pull request #219053 from flang-msft/fxl---Add-descriptions-for-new-eviction-policies-in-docs
fxl---flang-msft:fxl---Add-descriptions-for-new-eviction-policies-in-docs
2 parents ffc7ff6 + ee6c5ab commit c77a92e

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

articles/azure-cache-for-redis/cache-configure.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ author: flang-msft
55

66
ms.service: cache
77
ms.topic: conceptual
8-
ms.date: 09/01/2022
8+
ms.date: 11/21/2022
99
ms.author: franlanglois
10-
10+
ms.custom: engagement-fy23
1111
---
1212

1313
# How to configure Azure Cache for Redis
@@ -185,12 +185,14 @@ Use the **Maxmemory policy**, **maxmemory-reserved**, and **maxfragmentationmemo
185185

186186
**Maxmemory policy** configures the eviction policy for the cache and allows you to choose from the following eviction policies:
187187

188-
- `volatile-lru` - The default eviction policy.
189-
- `allkeys-lru`
190-
- `volatile-random`
191-
- `allkeys-random`
192-
- `volatile-ttl`
193-
- `noeviction`
188+
- `volatile-lru`: The default eviction policy, removes the least recently used key out of all the keys with an expiration set.
189+
- `allkeys-lru`: Removes the least recently used key.
190+
- `volatile-random`: Removes a random key that has an expiration set.
191+
- `allkeys-random`: Removes a random key.
192+
- `volatile-ttl`: Removes the key with the shortest time to live based on the expiration set for it.
193+
- `noeviction`: No eviction policy. Returns an error message if you attempt to insert data.
194+
- `volatile-lfu`: Evicts the least frequently used keys out of all keys with an expire field set.
195+
- `allkeys-lfu`: Evicts the least frequently used keys out of all keys.
194196

195197
For more information about `maxmemory` policies, see [Eviction policies](https://redis.io/topics/lru-cache#eviction-policies).
196198

0 commit comments

Comments
 (0)