TransactorCache

zio.blocks.projection.TransactorCache
See theTransactorCache companion trait

Attributes

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

Members list

Value members

Concrete methods

def live(maxSize: Int = ...): ZLayer[Scope, Nothing, TransactorCache]

ZLayer that provides a TransactorCache with default size 256.

ZLayer that provides a TransactorCache with default size 256.

Attributes

Source
TransactorCache.scala
def liveConfig(config: TransactorCacheConfig): ZLayer[Scope, Nothing, TransactorCache]

ZLayer with custom config.

ZLayer with custom config.

Attributes

Source
TransactorCache.scala
def make(maxSize: Int = ...): ZIO[Scope, Nothing, TransactorCache]

Creates a TransactorCache with the given maxSize and registers a finalizer on the enclosing Scope to close the cache when the scope closes.

Creates a TransactorCache with the given maxSize and registers a finalizer on the enclosing Scope to close the cache when the scope closes.

Attributes

Source
TransactorCache.scala
def makeUnscoped(maxSize: Int = ...): UIO[TransactorCache]

Creates a TransactorCache without scope management.

Creates a TransactorCache without scope management.

Attributes

Source
TransactorCache.scala