-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
We have a service that returns null as a value, but it seems that EnhancedTransactionAwareCacheDecorator is treating that explicitly set as deleted in the code below:
public ValueWrapper get(@NonNull final Object key)
{
final TransientCacheData tcd = tcd();
final ValueWrapper res = tcd.getTransientCache().get(key);
if (res != null && isNull(res))
{
// Was explicitly set as deleted
return null;
}
Returning Optional instead will also not work since Spring Cache unwraps it.
The end result is that we are seeing repeated calls to the underlying storage.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working