Interface Cacheable

All Known Implementing Classes:
AbstractOAuth2TokenService, DefaultOAuth2TokenService, XsuaaOAuth2TokenService

public interface Cacheable
Interface for components that manage a cache configured with CacheConfiguration.
  • Method Details

    • getCacheConfiguration

      @Nonnull CacheConfiguration 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

      @Nullable Object getCacheStatistics()
      This returns an implementation specific statistics object if the underlying cache supports it and cache statistics have been enabled in the CacheConfiguration.

      Use with care. The type of the statistics object might change in later versions.

      Returns:
      the cache statistics object.