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

CachingResourceResolver

open class CachingResourceResolver : AbstractResourceResolver

A org.springframework.web.servlet.resource.ResourceResolver that resolves resources from a org.springframework.cache.Cache or otherwise delegates to the resolver chain and saves the result in the cache.

Author
Rossen Stoyanchev

Author
Brian Clozel

Since
4.1

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.