Skip to content

Commit c2e6628

Browse files
Apply suggestions from code review
Co-authored-by: Kaitlyn Michael <[email protected]>
1 parent 8bca1bb commit c2e6628

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

content/develop/connect/clients/client-side-caching.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

3838
Accessing 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
4141
resources.
4242

4343
As with other forms of [caching](https://en.wikipedia.org/wiki/Cache_(computing)),
4444
client-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
4646
to 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

8888
You can use the [`MONITOR`]({{< relref "/commands/monitor" >}}) command to
8989
check 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
9191
access to a key causes a response from the server. However, subsequent
9292
accesses are satisfied by the cache, and so `MONITOR` should report no
9393
server 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

content/develop/connect/clients/java/jedis.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,15 +247,15 @@ you should see the following in the CLI among the output from `MONITOR`:
247247
1723109720.270205 [...] "GET" "city"
248248
```
249249

250-
This shows that the server responds to both `get("city")` calls.
250+
The server responds to both `get("city")` calls.
251251
If you run the code with `cacheConfig` added in again, you will see
252252

253253
```
254254
1723110248.712663 [...] "SET" "city" "New York"
255255
1723110248.713607 [...] "GET" "city"
256256
```
257257

258-
This shows that the first `get("city")` call contacted the server but the second
258+
The first `get("city")` call contacted the server, but the second
259259
call was satisfied by the cache.
260260

261261
### Removing items from the cache

content/develop/connect/clients/python/redis-py.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ the following in the CLI among the output from `MONITOR`:
166166
1723109720.270205 [...] "GET" "city"
167167
```
168168

169-
This shows that the server responds to both `get("city")` calls.
169+
The server responds to both `get("city")` calls.
170170
If you run the code again with `cache_config` uncommented, you will see
171171

172172
```

0 commit comments

Comments
 (0)