CachingDirectives

org.apache.pekko.http.scaladsl.server.directives.CachingDirectives
See theCachingDirectives companion trait

Attributes

Companion
trait
Source
CachingDirectives.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Inherited methods

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.

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.

Attributes

Inherited from:
CachingDirectives
Source
CachingDirectives.scala

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.

Attributes

Inherited from:
CachingDirectives
Source
CachingDirectives.scala

Passes only requests to the inner route that explicitly forbid caching with a Cache-Control header with either a no-cache or max-age=0 setting.

Passes only requests to the inner route that explicitly forbid caching with a Cache-Control header with either a no-cache or max-age=0 setting.

Attributes

Inherited from:
CachingDirectives
Source
CachingDirectives.scala
def routeCache[K](settings: CachingSettings): Cache[K, RouteResult]

Creates an LfuCache.

Creates an LfuCache.

Attributes

Inherited from:
CachingDirectives
Source
CachingDirectives.scala
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.

Attributes

Inherited from:
CachingDirectives
Source
CachingDirectives.scala