File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
core/include/userver/cache Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,12 @@ namespace components {
8787// / will be triggered each `update-interval` (adjusted by jitter).
8888// / * `only-incremental`: only `update-interval` must be specified. UpdateType::kFull is triggered
8989// / on the first update, afterwards UpdateType::kIncremental will be triggered
90- // / each `update-interval` (adjusted by jitter).
90+ // / each `update-interval` (adjusted by jitter). Warning: use carefully.
91+ // / If the cache loses any data, it is lost until service restart (in the worst case). If possible,
92+ // / use `full-and-incremental` with rare full updates, and completely avoid `only-incremental`.
93+ // / Also you have to explicitly remove outdated items from the cache container, otherwise
94+ // / the cache might grow indefinitely and eventually will lead to OOM.
95+ // / If not sure, just use `full-and-incremental`.
9196// /
9297// / ### Avoiding memory leaks
9398// /
You can’t perform that action at this time.
0 commit comments