Interface RenderingCacheKeyProvider<T extends ItemModel>

Type Parameters:
T - the subtype of the ItemModel
All Known Implementing Classes:
DefaultRenderingCacheKeyProvider

public interface RenderingCacheKeyProvider<T extends ItemModel>
Provides a cache key for ItemModel
  • Method Summary

    Modifier and Type
    Method
    Description
    getKey(T item)
    Returns the cache key.
  • Method Details

    • getKey

      Optional<CacheKey> getKey(T item)
      Returns the cache key.
      Parameters:
      item - the item to cache.
      Returns:
      the optional key for the item. It returns Optional.empty() if the cache key provider is not available for the item type.