class Cached extends AnyRef
- Alphabetic
- By Inheritance
- Cached
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Cached(cache: AsyncCacheApi)(implicit materializer: Materializer)
- Annotations
- @Inject()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(key: (RequestHeader) => String, duration: Duration): CachedBuilder
Cache an action.
Cache an action.
- key
Cache key
- duration
Cache duration
- def apply(key: (RequestHeader) => String, duration: Int): CachedBuilder
Cache an action.
Cache an action.
- key
Cache key
- duration
Cache duration (in seconds)
- def apply(key: String): CachedBuilder
Cache an action.
Cache an action.
- key
Cache key
- def apply(key: (RequestHeader) => String): CachedBuilder
Cache an action.
Cache an action.
- key
Compute a key from the request header
- def apply(key: (RequestHeader) => String, caching: PartialFunction[ResponseHeader, Duration]): CachedBuilder
Cache an action.
Cache an action.
- key
Compute a key from the request header
- caching
Compute a cache duration from the resource header
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def empty(key: (RequestHeader) => String): CachedBuilder
A cached instance caching nothing Useful for composition
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def everything(key: (RequestHeader) => String, duration: Duration): CachedBuilder
Caches everything for the specified duration
- def everything(key: (RequestHeader) => String, duration: Int): CachedBuilder
Caches everything for the specified seconds
- def everything(key: (RequestHeader) => String): CachedBuilder
Caches everything, forever
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def status(key: (RequestHeader) => String, status: Int): CachedBuilder
Caches the specified status forever
- def status(key: (RequestHeader) => String, status: Int, duration: Duration): CachedBuilder
Caches the specified status, for the specified duration
- def status(key: (RequestHeader) => String, status: Int, duration: Int): CachedBuilder
Caches the specified status, for the specified number of seconds
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()