Interface Cacheable
- All Known Implementing Classes:
AbstractOAuth2TokenService,DefaultOAuth2TokenService,XsuaaOAuth2TokenService
public interface Cacheable
Interface for components that manage a cache configured with
CacheConfiguration.-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the cache of the component.Provides the cache configuration of the component.This returns an implementation specific statistics object if the underlying cache supports it and cache statistics have been enabled in theCacheConfiguration.
-
Method Details
-
getCacheConfiguration
Provides the cache configuration of the component. Must not be null.- Returns:
- the cache configuration
-
clearCache
void clearCache()Clears the cache of the component. -
getCacheStatistics
This returns an implementation specific statistics object if the underlying cache supports it and cache statistics have been enabled in theCacheConfiguration.Use with care. The type of the statistics object might change in later versions.
- Returns:
- the cache statistics object.
-