From 4caca9a8830324541647b3d5e0d92bd17005e32d Mon Sep 17 00:00:00 2001 From: Pruthvi P Date: Fri, 22 May 2020 00:33:22 +0530 Subject: [PATCH] Fix typo eviciton => eviction --- README.md | 2 +- src/evict.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c08013416..fe90296e1 100644 --- a/README.md +++ b/README.md @@ -336,7 +336,7 @@ There are two special functions called periodically by the event loop: Inside server.c you can find code that handles other vital things of the Redis server: * `call()` is used in order to call a given command in the context of a given client. -* `activeExpireCycle()` handles eviciton of keys with a time to live set via the `EXPIRE` command. +* `activeExpireCycle()` handles eviction of keys with a time to live set via the `EXPIRE` command. * `freeMemoryIfNeeded()` is called when a new write command should be performed but Redis is out of memory according to the `maxmemory` directive. * The global variable `redisCommandTable` defines all the Redis commands, specifying the name of the command, the function implementing the command, the number of arguments required, and other properties of each command. diff --git a/src/evict.c b/src/evict.c index 0755acc0e..a5af72c45 100644 --- a/src/evict.c +++ b/src/evict.c @@ -41,7 +41,7 @@ /* To improve the quality of the LRU approximation we take a set of keys * that are good candidate for eviction across freeMemoryIfNeeded() calls. * - * Entries inside the eviciton pool are taken ordered by idle time, putting + * Entries inside the eviction pool are taken ordered by idle time, putting * greater idle times to the right (ascending order). * * When an LFU policy is used instead, a reverse frequency indication is used