jsr107 / jsr107spec

JSR107 Cache Specification
Apache License 2.0
415 stars 164 forks source link

Implement RI support for Cache Pruning (removing expired entries) #77

Closed brianoliver closed 11 years ago

brianoliver commented 11 years ago

Now that we have the ability to know when Cache Entries have expired, we need to implement a mechanism to actually remove expired Cache Entries as the current implementation does not actually remove expired entries. Instead said entries just appear and behave as if they are "missing". They are still held onto internally.

This can and should be an asynchronous process.

NOTE: We perhaps should add access and modification counts to each RICachedValue so that the "pruning" process can choose to implement pruning based on LFU (least frequently used), LFA (least frequently accessed) and LFM (least frequently modified), or some other algorithm.

brianoliver commented 11 years ago

Moved to RI project issues