java.lang.Object
org.litebridgedb.orm.persistence.NoOpDtoCache
- All Implemented Interfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final NoOpDtoCacheThe singleton instance of theNoOpDtoCacheclass. -
Method Summary
-
Field Details
-
INSTANCE
The singleton instance of theNoOpDtoCacheclass. This instance represents a no-operation implementation of theDtoCacheinterface that does not perform any caching functionality. All methods invoked on this instance either returnnullor 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