You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a lot of similarities between a Cache and a Supplier. Really, a Supplier is a specific case of a LoadingCache with a single key. Since the CacheBuilder has become a useful pattern of constructing a Cache I propose creating a SupplierBuilder that incorporates much of the same properties as a CacheBuilder. This would make it easy to have weak/soft references (see #1772), different eviction strategies as well as removalListener.
The text was updated successfully, but these errors were encountered:
Original issue created by jens.ran...@tink.se on 2014-06-02 at 07:22 PM
This is related to #1772.
There are a lot of similarities between a Cache and a Supplier. Really, a Supplier is a specific case of a LoadingCache with a single key. Since the CacheBuilder has become a useful pattern of constructing a Cache I propose creating a SupplierBuilder that incorporates much of the same properties as a CacheBuilder. This would make it easy to have weak/soft references (see #1772), different eviction strategies as well as removalListener.
The text was updated successfully, but these errors were encountered: