TransactorCache

zio.blocks.projection.TransactorCache
See theTransactorCache companion object

Cache of SQLite Transactors keyed by file path with LRU eviction.

Each distinct file path maps to a single Transactor instance. When the cache reaches maxSize the least-recently-used entry is evicted.

Attributes

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

Members list

Value members

Abstract methods

def close: Task[Unit]

Closes all cached transactors and clears the cache.

Closes all cached transactors and clears the cache.

Attributes

Source
TransactorCache.scala
def evict(path: String): Task[Unit]

Evicts and closes the Transactor for path if present.

Evicts and closes the Transactor for path if present.

Attributes

Source
TransactorCache.scala
def get(path: String): Task[Transactor]

Returns a cached Transactor for path or opens a new one.

Returns a cached Transactor for path or opens a new one.

Attributes

Source
TransactorCache.scala
def size: Task[Int]

Number of cached entries.

Number of cached entries.

Attributes

Source
TransactorCache.scala