Skip to content

Commit

Permalink
chore: add comment in sliding expiration cache (#1236)
Browse files Browse the repository at this point in the history
  • Loading branch information
karenc-bq authored Jan 6, 2025
1 parent 2fc8852 commit 621df99
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ protected void removeIfExpired(K key) {
cache.computeIfPresent(key, (k, cacheItem) -> {
if (cacheItem.shouldCleanup()) {
itemList.add(cacheItem.item);
// Removes the item from the cache map.
return null;
}

Expand Down

0 comments on commit 621df99

Please sign in to comment.