Class NoOpDtoCache

java.lang.Object
org.litebridgedb.orm.persistence.NoOpDtoCache
All Implemented Interfaces:
DtoCache

public final class NoOpDtoCache extends Object implements DtoCache
A no-operation implementation of the DtoCache interface. This implementation does not perform any caching and is designed to always return null or perform no action when its methods are invoked. It can be used in scenarios where caching is not required or desirable.

This class is implemented as a singleton, and the single instance can be accessed via the INSTANCE field.

This class is immutable and thread-safe.

  • Field Details

    • INSTANCE

      public static final NoOpDtoCache INSTANCE
      The singleton instance of the NoOpDtoCache class. This instance represents a no-operation implementation of the DtoCache interface that does not perform any caching functionality. All methods invoked on this instance either return null or take no action.

      Use this constant when caching is not required or should be explicitly disabled, ensuring no resources are consumed or maintained for caching operations.

      This instance is immutable, stateless, and thread-safe.

  • Method Details