public class RequestScopedResourceModelCache
A request-scoped resource model cache. Models added to this cache may either be cached for the entire
request regardless of state changes (selectors, suffixes, extension, query string...)
during the request processing, or in a request-state sensitive manner.
resource - The resource adapted to the target type. Never null.
key - The key used to identify the stored model. Never null.
Either an instance of Optional - which means the object was stored as non null or known null value, depending on whether the option Optional.isPresent(),
or null, signaling that the key is not known to the cache.