public interface CachingDirectives
| Modifier and Type | Method and Description | 
|---|---|
| <K> Directive<scala.runtime.BoxedUnit> | alwaysCache(Cache<K,RouteResult> cache,
           scala.PartialFunction<RequestContext,K> keyer)Wraps its inner Route with caching support using the given  Cacheimplementation 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 given  Cacheimplementation and
 keyer function. | 
| Directive<scala.runtime.BoxedUnit> | cachingProhibited()Passes only requests to the inner route that explicitly forbid caching with a  Cache-Controlheader with either
 ano-cacheormax-age=0setting. | 
| <K> Cache<K,RouteResult> | routeCache(org.apache.pekko.actor.ActorSystem s)Creates an  LfuCachewith default settings obtained from the system's configuration. | 
| <K> Cache<K,RouteResult> | routeCache(CachingSettings settings)Creates an  LfuCache. | 
<K> Directive<scala.runtime.BoxedUnit> cache(Cache<K,RouteResult> cache, scala.PartialFunction<RequestContext,K> keyer)
Cache implementation and
 keyer function.cache - (undocumented)keyer - (undocumented)Directive<scala.runtime.BoxedUnit> cachingProhibited()
Cache-Control header with either
 a no-cache or max-age=0 setting.<K> Directive<scala.runtime.BoxedUnit> alwaysCache(Cache<K,RouteResult> cache, scala.PartialFunction<RequestContext,K> keyer)
Cache implementation and
 keyer function. Note that routes producing streaming responses cannot be wrapped with this directive.cache - (undocumented)keyer - (undocumented)<K> Cache<K,RouteResult> routeCache(org.apache.pekko.actor.ActorSystem s)
LfuCache with default settings obtained from the system's configuration.s - (undocumented)<K> Cache<K,RouteResult> routeCache(CachingSettings settings)
LfuCache.settings - (undocumented)