CachingDirectives

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

Attributes

Companion
object
Source
CachingDirectives.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete 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

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

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

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

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

Creates an LfuCache.

Creates an LfuCache.

Attributes

Source
CachingDirectives.scala