Interface Cache

All Superinterfaces:
AutoCloseable

public interface Cache extends AutoCloseable
Represents a generic cache interface that provides access to the underlying CacheService implementation.

Classes implementing this interface are responsible for defining specific cache behaviors while encapsulating their implementation details through the provided service.

  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the underlying CacheService instance associated with the current Cache implementation.

    Methods inherited from interface java.lang.AutoCloseable

    close
  • Method Details

    • getService

      CacheService getService()
      Retrieves the underlying CacheService instance associated with the current Cache implementation. This method provides access to the internal caching service used for managing cache operations.
      Returns:
      the CacheService instance backing the current Cache implementation.