A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.playframework.com/documentation/2.5.x/api/scala/play/api/cache/Cache$.html below:

Cache - play.api.cache.Cache

  • def get(key: String)(implicit app: Application): Option[Any]

    Retrieve a value from the cache.

  • def getAs[T](key: String)(implicit app: Application, ct: ClassTag[T]): Option[T]

    Retrieve a value from the cache for the given type

  • def getOrElse[A](key: String, expiration: Int)(orElse: ⇒ A)(implicit app: Application, ct: ClassTag[A]): A

    Retrieve a value from the cache, or set it from a default function.

  • def getOrElse[A](key: String, expiration: Duration = Duration.Inf)(orElse: ⇒ A)(implicit app: Application, ct: ClassTag[A]): A

    Retrieve a value from the cache, or set it from a default function.

  • def remove(key: String)(implicit app: Application): Unit
  • def set(key: String, value: Any, expiration: Int)(implicit app: Application): Unit

    Set a value into the cache.

  • def set(key: String, value: Any, expiration: Duration = Duration.Inf)(implicit app: Application): Unit

    Set a value into the cache.


  • RetroSearch is an open source project built by @garambo | Open a GitHub Issue

    Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

    HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4