CacheSupport

org.scalatra.cache.CacheSupport
trait CacheSupport

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ScalatraBase

Members list

Value members

Concrete methods

def cache[A](key: String, ttl: Option[Duration])(value: => A): A
def cached[A](ttl: Option[Duration])(result: => A)(implicit keyStrategy: KeyStrategy, headerStrategy: HeaderStrategy, request: HttpServletRequest, response: HttpServletResponse): A

Implicits

Implicits

implicit val cacheBackend: Cache
implicit val keyStrategy: KeyStrategy