Compute a key from the request header
A callback to get the number of seconds to cache results for
Compose the cache with an action
Compose the cache with an action
Compose the cache with new caching function
Compose the cache with new caching function
a closure getting the reponseheader and returning the duration we should cache for
The returned cache will store all responses whatever they may contain
The returned cache will store all responses whatever they may contain
the number of seconds we should store responses
The returned cache will store all responses whatever they may contain
The returned cache will store all responses whatever they may contain
how long we should store responses
Whether this cache should cache the specified response if the status code match This method will cache the result for duration seconds
Whether this cache should cache the specified response if the status code match This method will cache the result for duration seconds
the status code to check
how long should we cache the result for
Whether this cache should cache the specified response if the status code match This method will cache the result for duration seconds
Whether this cache should cache the specified response if the status code match This method will cache the result for duration seconds
the status code to check
the number of seconds to cache the result for
Whether this cache should cache the specified response if the status code match This method will cache the result forever
Builds an action with caching behavior. Typically created with one of the methods in the
Cached
companion object. Uses both server and client caches:Expires
header to the response, so clients can cache response content ;Etag
header to the response, so clients can cache response content and ask the server for freshness ;Unlike
CachedBuilder
, anUnboundCachedBuilder
isn't bound to a particular cache when it is created. It binds the default cache of the current application when it builds an action.