@@ -36,13 +36,13 @@ can satisfy the read requests from the cache instead of the database:
3636{{< image filename="images/csc/CSCWithCache.drawio.svg" >}}
3737
3838Accessing the cache is much faster than communicating with the database over the
39- network and it reduces network traffic. Also, this technique reduces
40- the load on the database server, so you may be able to run it using fewer hardware
39+ network and it reduces network traffic. Client-side cacheing reduces
40+ the load on the database server, so you may be able to run it using less hardware
4141resources.
4242
4343As with other forms of [ caching] ( https://en.wikipedia.org/wiki/Cache_(computing) ) ,
4444client-side caching works well in the very common use case where a small subset of the data
45- gets accessed much more frequently than the rest of the data (according
45+ is accessed much more frequently than the rest of the data (according
4646to the [ Pareto principle] ( https://en.wikipedia.org/wiki/Pareto_principle ) ).
4747
4848## Updating the cache when the data changes
@@ -77,7 +77,7 @@ will use cached data, except for the following:
7777- Any commands for
7878 [ probabilistic data types] ({{< relref "/develop/data-types/probabilistic" >}}).
7979 These types are designed to be updated frequently, which means that caching
80- them gives little or no benefit.
80+ has little or no benefit.
8181- Non-deterministic commands such as [ ` HGETALL ` ] ({{< relref "/commands/hgetall" >}}),
8282 [ ` HSCAN ` ] ({{< relref "/commands/hscan" >}}),
8383 and [ ` ZRANDMEMBER ` ] ({{< relref "/commands/zrandmember" >}}). By design, these commands
@@ -87,7 +87,7 @@ will use cached data, except for the following:
8787
8888You can use the [ ` MONITOR ` ] ({{< relref "/commands/monitor" >}}) command to
8989check the server's behavior when you are using client-side caching. Because ` MONITOR ` only
90- reports activity from the server, you should find that the first cacheable
90+ reports activity from the server, you should find the first cacheable
9191access to a key causes a response from the server. However, subsequent
9292accesses are satisfied by the cache, and so ` MONITOR ` should report no
9393server activity if client-side caching is working correctly.
@@ -146,7 +146,7 @@ limitations:
146146- ** Use a separate connection for data that is not cache-friendly** :
147147 Caching gives the most benefit
148148 for keys that are read frequently and updated infrequently. However, you
149- may also have data such as counters and scoreboards that receive frequent
149+ may also have data, such as counters and scoreboards, that receives frequent
150150 updates. In cases like this, the performance overhead of the invalidation
151151 messages can be greater than the savings made by caching. Avoid this problem
152152 by using a separate connection * without* client-side caching for any data that is
@@ -157,7 +157,7 @@ limitations:
157157 maximum desired size of the
158158 cache in memory by the average size of the items you want to store
159159 (use the [ ` MEMORY USAGE ` ] ({{< relref "/commands/memory-usage" >}})
160- command to get the memory footprint of a key). So , if you had
160+ command to get the memory footprint of a key). For example , if you had
161161 10MB (or 10485760 bytes) available for the cache, and the average
162162 size of an item was 80 bytes, you could fit approximately
163163 10485760 / 80 = 131072 items in the cache. Monitor memory usage
0 commit comments