jellydator / ttlcache

An in-memory cache with item expiration and generics
MIT License
930 stars 116 forks source link

feat: reduce notification times and use buffer channel to avoid notification getting blocked #57

Closed chenyahui closed 2 years ago

chenyahui commented 2 years ago
  1. no need to notify expiration when already notified in this clean loop
  2. use expirationNotification as a buffer channel to avoid notification getting blocked . For example, when cleaning items, the expiration notification will be blocked util the clean job is done.
ReneKroon commented 2 years ago

Looks good, let's release this with the previous fixes.

ReneKroon commented 2 years ago

it is released as 2.9.0