play.api

cache

package cache

Contains the Cache access API.

Source
package.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. cache
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait CacheAPI extends AnyRef

    API for a Cache plugin.

  2. abstract class CachePlugin extends Plugin

    A Cache Plugin provides an implementation of the Cache API.

  3. case class Cached(key: (RequestHeader) ⇒ String, caching: PartialFunction[ResponseHeader, Duration]) extends Product with Serializable

    Cache an action.

    Cache an action.

    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.
    key

    Compute a key from the request header

    caching

    A callback to get the number of seconds to cache results for

  4. class EhCacheImpl extends CacheAPI

  5. class EhCachePlugin extends CachePlugin

    EhCache implementation.

Value Members

  1. object Cache

    Public Cache API.

    Public Cache API.

    The underlying Cache implementation is received from plugin.

  2. object Cached extends Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped