spring-framework / org.springframework.web.reactive.resource / CachingResourceResolver

CachingResourceResolver

open class CachingResourceResolver : AbstractResourceResolver

A ResourceResolver that resolves resources from a Cache or otherwise delegates to the resolver chain and caches the result.

Author
Rossen Stoyanchev

Author
Brian Clozel

Since
5.0

Constructors

<init>

CachingResourceResolver(cache: Cache)
CachingResourceResolver(cacheManager: CacheManager, cacheName: String)

Properties

RESOLVED_RESOURCE_CACHE_KEY_PREFIX

static val RESOLVED_RESOURCE_CACHE_KEY_PREFIX: String

RESOLVED_URL_PATH_CACHE_KEY_PREFIX

static val RESOLVED_URL_PATH_CACHE_KEY_PREFIX: String

Functions

getCache

open fun getCache(): Cache

Return the configured Cache.