DispatchOneCache

io.chrisdavenport.mules.DispatchOneCache$
See theDispatchOneCache companion class

Attributes

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

Members list

Concise view

Type members

Classlikes

Attributes

Source:
DispatchOneCache.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Self type
case class DispatchOneCacheItem[F[_], A](item: Deferred[F, Either[Throwable, A]], itemExpiration: Option[TimeSpec])

Attributes

Source:
DispatchOneCache.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def liftToAuto[F[_] : Temporal, K, V](DispatchOneCache: DispatchOneCache[F, K, V], checkOnExpirationsEvery: TimeSpec): Resource[F, Unit]

Initiates a background process that checks for expirations every certain amount of time.

Initiates a background process that checks for expirations every certain amount of time.

Attributes

DispatchOneCache:

The cache to check and expire automatically.

checkOnExpirationsEvery:

How often the expiration process should check for expired keys.

Returns:

an Resource[F, Unit] that will keep removing expired entries in the background.

Source:
DispatchOneCache.scala
def ofConcurrentHashMap[F[_] : Async, K, V](defaultExpiration: Option[TimeSpec], initialCapacity: Int, loadFactor: Float, concurrencyLevel: Int): F[DispatchOneCache[F, K, V]]

Attributes

Source:
DispatchOneCache.scala
def ofMapRef[F[_] : Clock, K, V](mr: MapRef[F, K, Option[DispatchOneCacheItem[F, V]]], defaultExpiration: Option[TimeSpec]): DispatchOneCache[F, K, V]

Attributes

Source:
DispatchOneCache.scala
def ofMapRef[F[_] : Clock, K, V](mr: MapRef[F, K, Option[DispatchOneCacheItem[F, V]]], defaultExpiration: Option[TimeSpec], purgeExpiredEntries: Option[Long => F[List[K]]]): DispatchOneCache[F, K, V]

Attributes

Source:
DispatchOneCache.scala
def ofShardedImmutableMap[F[_] : Async, K, V](shardCount: Int, defaultExpiration: Option[TimeSpec]): F[DispatchOneCache[F, K, V]]

Attributes

Source:
DispatchOneCache.scala
def ofSingleImmutableMap[F[_] : Async, K, V](defaultExpiration: Option[TimeSpec]): F[DispatchOneCache[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.

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

Attributes

Source:
DispatchOneCache.scala