Skip to content

Commit

Permalink
Remove docs which don't make sense anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
whitfin committed Sep 19, 2024
1 parent 3379d7e commit 86a1bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/management/limiting-caches.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Cache limits are restrictions on a cache to ensure that it stays within given bo

## Manual Pruning

The main entrypoint to cache limitation included in Cachex is `Cachex.prune/3`, which provides a Least Recently Written (LRW) implementation of pruning a cache. This means that we calculate the first `N` oldest entries, where `N` is roughly equal to `limit * reclaim`, and remove them from the cache in order to make room for new entries. It should be noted that "oldest" in this context means "those written or updated longest ago".
The main entrypoint to cache limitation included in Cachex is `Cachex.prune/3`, which provides a Least Recently Written (LRW) implementation of pruning a cache. This means that we calculate the oldest entries, and remove them from the cache in order to make room for new entries. It should be noted that "oldest" in this context means "those written or updated longest ago".

You can trigger a pruning manually via `Cachex.prune/3`, passing the maximum size of a cache to shrink to:

Expand Down

0 comments on commit 86a1bf7

Please sign in to comment.