package cache
Type Members
-
trait
AsyncCacheApi extends AnyRef
The cache API
-
class
Cached extends AnyRef
A helper to add caching to an Action.
-
final
class
CachedBuilder extends AnyRef
Builds an action with caching behavior.
Builds an action with caching behavior. Typically created with one of the methods in the
Cached
class. Uses both server and client caches:- Adds an
Expires
header to the response, so clients can cache response content ; - Adds an
Etag
header to the response, so clients can cache response content and ask the server for freshness ; - Cache the result on the server, so the underlying action is not computed at each call.
- Adds an
-
class
DefaultSyncCacheApi extends SyncCacheApi
A SyncCacheApi that wraps an AsyncCacheApi
- type NamedCache = cache.NamedCache
-
trait
SyncCacheApi extends AnyRef
A cache API that uses synchronous calls rather than async calls.
A cache API that uses synchronous calls rather than async calls. Useful when you know you have a fast in-memory cache.