-
-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
-
In the current implementation null is returned when an element is not in the cache. There are use cases where the actual value itself is null. Support for null values would be good.
-
The overloaded get method accepts a suspendable loader function. Writing get(key, () -> Value) in every place makes the code too verbose when the loading logic is same for all calls. So, having a cache which accepts loader in the constructor to create value in the cache if it doesn't already have would be nice.
We have implemented a wrapper with a getValue
method which returns the value or null to solve these problems. Having such an API as part of the library would be good.
f1qwase and ruben-caceiro-digiwest
Metadata
Metadata
Assignees
Labels
No labels