Interface CachingDirectives
- All Known Implementing Classes:
- CachingDirectives$
public interface CachingDirectives
- 
Method SummaryModifier and TypeMethodDescription<K> Directive<scala.runtime.BoxedUnit>alwaysCache(Cache<K, RouteResult> cache, scala.PartialFunction<RequestContext, K> keyer) Wraps its inner Route with caching support using the givenCacheimplementation and keyer function.<K> Directive<scala.runtime.BoxedUnit>cache(Cache<K, RouteResult> cache, scala.PartialFunction<RequestContext, K> keyer) Wraps its inner Route with caching support using the givenCacheimplementation and keyer function.Directive<scala.runtime.BoxedUnit>Passes only requests to the inner route that explicitly forbid caching with aCache-Controlheader with either ano-cacheormax-age=0setting.<K> Cache<K,RouteResult> routeCache(org.apache.pekko.actor.ActorSystem s) Creates anLfuCachewith default settings obtained from the system's configuration.<K> Cache<K,RouteResult> routeCache(CachingSettings settings) Creates anLfuCache.
- 
Method Details- 
cache<K> Directive<scala.runtime.BoxedUnit> cache(Cache<K, RouteResult> cache, scala.PartialFunction<RequestContext, K> keyer) Wraps its inner Route with caching support using the givenCacheimplementation and keyer function.- Parameters:
- cache- (undocumented)
- keyer- (undocumented)
- Returns:
- (undocumented)
 
- 
cachingProhibitedDirective<scala.runtime.BoxedUnit> cachingProhibited()Passes only requests to the inner route that explicitly forbid caching with aCache-Controlheader with either ano-cacheormax-age=0setting.- Returns:
- (undocumented)
 
- 
alwaysCache<K> Directive<scala.runtime.BoxedUnit> alwaysCache(Cache<K, RouteResult> cache, scala.PartialFunction<RequestContext, K> keyer) Wraps its inner Route with caching support using the givenCacheimplementation and keyer function. Note that routes producing streaming responses cannot be wrapped with this directive.- Parameters:
- cache- (undocumented)
- keyer- (undocumented)
- Returns:
- (undocumented)
 
- 
routeCacheCreates anLfuCachewith default settings obtained from the system's configuration.- Parameters:
- s- (undocumented)
- Returns:
- (undocumented)
 
- 
routeCacheCreates anLfuCache.- Parameters:
- settings- (undocumented)
- Returns:
- (undocumented)
 
 
-