Skip to content

Commit 3a8d8b4

Browse files
Jiayue Baofacebook-github-bot
authored andcommitted
Add extra notes for object-cache find APIs
Summary: Putting extra note of separating read/write traffic when using find APIs. Reviewed By: jaesoo-fb Differential Revision: D43960690 fbshipit-source-id: 56d3a8b65c7b66b3319bee6e7ffdd959826c8dcf
1 parent d1ff29c commit 3a8d8b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/docs/Cache_Library_User_Guides/eviction_policy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The second modification is promotion delay. Normally every access item is moved
2323
How often does cachelib refresh a previously accessed item. By default this is 60 seconds.
2424

2525
* `updateOnWrite`/`updateOnRead`
26-
Specifies if a LRU promotion happens on read or write or both. As a rule of thumb, for most services that care primarily about read performance, turn on `updateOnRead`. However, if your service cares a lot about retention time of items that are recently written, then turn on `updateOnWrite` as well.
26+
Specifies if a LRU promotion happens on read or write or both. As a rule of thumb, for most services that care primarily about read performance, turn on `updateOnRead`. However, if your service cares a lot about retention time of items that are recently written, then turn on `updateOnWrite` as well. By default, `updateOnRead = true` and `updateOnWrite = false`.
2727

2828
* `ipSpec`
2929
This essentially turns the LRU into a two-segmented LRU. Setting this to `1` means every new insertion will be inserted 1/2 from the end of the LRU, `2` means 1/4 from the end of the LRU, and so on.

0 commit comments

Comments
 (0)