object CachingDirectives extends CachingDirectives
- Source
- CachingDirectives.scala
- Alphabetic
- By Inheritance
- CachingDirectives
- CachingDirectives
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def alwaysCache[K](cache: Cache[K, RouteResult], keyer: PartialFunction[RequestContext, K]): Directive0
Wraps its inner Route with caching support using the given Cache implementation and keyer function.
Wraps its inner Route with caching support using the given Cache implementation and keyer function. Note that routes producing streaming responses cannot be wrapped with this directive.
- Definition Classes
- CachingDirectives
- def cache[K](cache: Cache[K, RouteResult], keyer: PartialFunction[RequestContext, K]): Directive0
Wraps its inner Route with caching support using the given Cache implementation and keyer function.
Wraps its inner Route with caching support using the given Cache implementation and keyer function.
- Definition Classes
- CachingDirectives
- def cachingProhibited: Directive0
Passes only requests to the inner route that explicitly forbid caching with a
Cache-Control
header with either ano-cache
ormax-age=0
setting.Passes only requests to the inner route that explicitly forbid caching with a
Cache-Control
header with either ano-cache
ormax-age=0
setting.- Definition Classes
- CachingDirectives
- def routeCache[K](settings: CachingSettings): Cache[K, RouteResult]
Creates an LfuCache.
Creates an LfuCache.
- Definition Classes
- CachingDirectives
- def routeCache[K](implicit s: ActorSystem): Cache[K, RouteResult]
Creates an LfuCache with default settings obtained from the system's configuration.
Creates an LfuCache with default settings obtained from the system's configuration.
- Definition Classes
- CachingDirectives