play.api.cache

Cached

case class Cached [A] (key: (RequestHeader) ⇒ String, duration: Int, action: Action[A], app: Application) extends Action[A] with Product with Serializable

Cache an action.

key

Compute a key from the request header

duration

Cache duration (in seconds)

action

Action to cache

Linear Supertypes
Serializable, Serializable, Product, Equals, Action[A], Handler, (Request[A]) ⇒ Result, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Cached
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Action
  7. Handler
  8. Function1
  9. AnyRef
  10. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Cached (key: (RequestHeader) ⇒ String, duration: Int)(action: Action[A])(implicit app: Application)

    key

    Compute a key from the request header

    duration

    Cache duration (in seconds)

    action

    Action to cache

Type Members

  1. type BODY_CONTENT = A

    Type of the request body.

    Type of the request body.

    Definition Classes
    Action

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def andThen [A] (g: (Result) ⇒ A): (Request[A]) ⇒ A

    Definition Classes
    Function1
  7. def apply (request: Request[A]): Result

    Invokes this action.

    Invokes this action.

    request

    the incoming HTTP request

    returns

    the result to be sent to the client

    Definition Classes
    CachedAction → Function1
  8. def apply (): Action[A]

    Returns itself, for better support in the routes file.

    Returns itself, for better support in the routes file.

    returns

    itself

    Definition Classes
    Action
  9. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  10. def canEqual (arg0: Any): Boolean

    Definition Classes
    Cached → Equals
  11. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def compose [A] (g: (A) ⇒ Request[A]): (A) ⇒ Result

    Definition Classes
    Function1
  13. val duration : Int

    Cache duration (in seconds)

  14. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  15. def equals (arg0: Any): Boolean

    Definition Classes
    Cached → Equals → AnyRef → Any
  16. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  17. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  18. def hashCode (): Int

    Definition Classes
    Cached → AnyRef → Any
  19. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  20. val key : (RequestHeader) ⇒ String

    Compute a key from the request header

  21. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  22. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  23. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  24. lazy val parser : BodyParser[A]

    Definition Classes
    CachedAction
  25. def productArity : Int

    Definition Classes
    Cached → Product
  26. def productElement (arg0: Int): Any

    Definition Classes
    Cached → Product
  27. def productIterator : Iterator[Any]

    Definition Classes
    Product
  28. def productPrefix : String

    Definition Classes
    Cached → Product
  29. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  30. def toString (): String

    Definition Classes
    Action → Function1 → AnyRef → Any
  31. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  32. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  33. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements : Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Action[A]

Inherited from Handler

Inherited from (Request[A]) ⇒ Result

Inherited from AnyRef

Inherited from Any