Package org.xwiki.cache
Interface CacheControl
-
@Role public interface CacheControlControl the caches behavior in the current context.- Since:
- 11.8RC1
- Version:
- $Id: f90d0002376ca5251a2cec1a3452fa3753c7775a $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisCacheReadAllowed()booleanisCacheReadAllowed(ChronoLocalDateTime<?> dateTime)booleanisCacheReadAllowed(Date dateTime)voidsetCacheReadAllowed(boolean enabled)
-
-
-
Method Detail
-
setCacheReadAllowed
void setCacheReadAllowed(boolean enabled)
- Parameters:
enabled- true if it's allowed to get a resource from a cache
-
isCacheReadAllowed
boolean isCacheReadAllowed(Date dateTime)
- Parameters:
dateTime- the date and time of the resource- Returns:
- true if it's allowed to use the resource cached at the passed
Date
-
isCacheReadAllowed
boolean isCacheReadAllowed(ChronoLocalDateTime<?> dateTime)
- Parameters:
dateTime- the date and time of the resource- Returns:
- true if it's allowed to use the resource cached at the passed
Date
-
isCacheReadAllowed
boolean isCacheReadAllowed()
- Returns:
- true if it's allowed to use the cache resources
-
-