kohesive / injekt

Dependency Injection for Kotlin
MIT License
235 stars 19 forks source link

When defining a PerKey factory, allow a max count expiration of older items #5

Open apatrida opened 9 years ago

apatrida commented 9 years ago

A PerKey factory could grow its instance storage dramatically over time if the unique number of keys is high or unbounded. Allow setting a max count for expiration.

This may only go in the injekt-registry-guava module since it has nice caching support.