From 1d81b4158419fd398705665b97180ab22b3b1e35 Mon Sep 17 00:00:00 2001 From: Charles Chan Date: Mon, 10 Jul 2017 06:43:15 -0700 Subject: [PATCH] Fix grammar in documentation for eviction polices. (#824) Also make the statements more consistents among one another. --- topics/lru-cache.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/topics/lru-cache.md b/topics/lru-cache.md index 19c093de4b..dadbcb3023 100644 --- a/topics/lru-cache.md +++ b/topics/lru-cache.md @@ -47,11 +47,11 @@ configured using the `maxmemory-policy` configuration directive. The following policies are available: * **noeviction**: return errors when the memory limit was reached and the client is trying to execute commands that could result in more memory to be used (most write commands, but `DEL` and a few more exceptions). -* **allkeys-lru**: evict keys trying to remove the less recently used (LRU) keys first, in order to make space for the new data added. -* **volatile-lru**: evict keys trying to remove the less recently used (LRU) keys first, but only among keys that have an **expire set**, in order to make space for the new data added. -* **allkeys-random**: evict random keys in order to make space for the new data added. -* **volatile-random**: evict random keys in order to make space for the new data added, but only evict keys with an **expire set**. -* **volatile-ttl**: In order to make space for the new data, evict only keys with an **expire set**, and try to evict keys with a shorter time to live (TTL) first. +* **allkeys-lru**: evict keys by trying to remove the less recently used (LRU) keys first, in order to make space for the new data added. +* **volatile-lru**: evict keys by trying to remove the less recently used (LRU) keys first, but only among keys that have an **expire set**, in order to make space for the new data added. +* **allkeys-random**: evict keys randomly in order to make space for the new data added. +* **volatile-random**: evict keys randomly in order to make space for the new data added, but only evict keys with an **expire set**. +* **volatile-ttl**: evict keys with an **expire set**, and try to evict keys with a shorter time to live (TTL) first, in order to make space for the new data added. The policies **volatile-lru**, **volatile-random** and **volatile-ttl** behave like **noeviction** if there are no keys to evict matching the prerequisites.