AutoFetchingCache

io.chrisdavenport.mules.reload.AutoFetchingCache$
See theAutoFetchingCache companion class

Attributes

Companion:
class
Source:
AutoFetchingCache.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

object FetchCancelled extends RuntimeException

Attributes

Source:
AutoFetchingCache.scala
Graph
Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Self type
final class RefreshConfig

Attributes

Companion:
object
Source:
AutoFetchingCache.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
AutoFetchingCache.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def createCache[F[_] : Temporal, K, V](defaultExpiration: Option[TimeSpec], refreshConfig: Option[RefreshConfig])(fetch: K => F[V]): F[AutoFetchingCache[F, K, V]]

Create a new cache with a default expiration value for newly added cache items.

Create a new cache with a default expiration value for newly added cache items.

Items that are added to the cache without an explicit expiration value (using insert) will be inserted with the default expiration value.

If the specified default expiration value is None, items inserted by insert will never expire.

Attributes

Source:
AutoFetchingCache.scala