Interface CacheMetadata

All Known Implementing Classes:
DefaultModelBuilder.SourceCacheKey

@Experimental public interface CacheMetadata
Interface defining metadata for cache behavior and lifecycle management. Implementations can specify how long cached data should be retained.
Since:
4.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the cache retention that should be applied to the associated data.
  • Method Details

    • getCacheRetention

      @Nullable CacheRetention getCacheRetention()
      Returns the cache retention that should be applied to the associated data.
      Returns:
      The CacheRetention indicating how long data should be retained, or null if no specific cache retention is defined