JointlyTech / cache-candidate-plugin-dependency-keys

This is a cache-candidate plugin providing a dependency-keys mechanism.
MIT License
5 stars 0 forks source link

Garbage Collector #4

Open Cadienvan opened 1 year ago

Cadienvan commented 1 year ago

As we are referencing cache keys for our dependency keys, we could provide a mechanism of garbage collection (which could run in a worker as an option), so that we can check every entry in the data cache, remove missing ones and then drop the empty dependency keys in the inverted index.

Cadienvan commented 1 year ago

We could have both a strict and a lazy mechanism. The first one checks every reference, the second one randomly selects some to prevent overhead.