io.chrisdavenport.mules.DispatchOneCache$
See theDispatchOneCache companion class
object DispatchOneCache
Attributes
- Companion:
- class
- Source:
- DispatchOneCache.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- DispatchOneCache.type
Members list
Concise view
Type members
Classlikes
Attributes
- Source:
- DispatchOneCache.scala
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Producttrait Equalstrait NoStackTraceclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
- Self type
Attributes
- Source:
- DispatchOneCache.scala
- Graph
- Supertypes
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
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