Project

General

Profile

Actions

Defect #2285

closed

Cache: null value is not recognised as cached value

Added by Radek Tomiška almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Radek Tomiška
Category:
Cache
Target version:
Start date:
05/29/2020
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

Description

Not cached or cached null value is not different:

return cache == null ? Optional.empty() : Optional.ofNullable(cache.get());

leads to Optional.empty() in both cases (if cached value - cache.get() - is null) => null values are not recognised as cached and value is loaded repetitivelly.

Cache manager interface has to be changed - Optional schould be removed => null value can be returned.

Actions

Also available in: Atom PDF