Class NonCacheableCacheEntryValidity

Object
org.thymeleaf.cache.NonCacheableCacheEntryValidity
All Implemented Interfaces:
ICacheEntryValidity

public class NonCacheableCacheEntryValidity extends Object implements ICacheEntryValidity

Simple implementation of ICacheEntryValidity that considers the template resolution to be non-cacheable.

Since:
1.0
Author:
Daniel Fernández
  • Field Details

  • Constructor Details

    • NonCacheableCacheEntryValidity

      public NonCacheableCacheEntryValidity()
  • Method Details

    • isCacheable

      public boolean isCacheable()

      Returns false. Template Resolutions using this validity are always considered to be non-cacheable.

      Specified by:
      isCacheable in interface ICacheEntryValidity
      Returns:
      false
    • isCacheStillValid

      public boolean isCacheStillValid()

      This method will never be called, because templates using this validity implementation are always considered to be non-cacheable.

      Specified by:
      isCacheStillValid in interface ICacheEntryValidity
      Returns:
      false