CacheMap

trait CacheMap[T <: Txn[T], K, +Store] extends Cache[T]
Companion
object
trait Cache[T]
class Object
trait Matchable
class Any
trait InMemory[T, K, Store]
trait Durable[T, K, Store]
trait Partial[T, K, Store]
trait CacheMapImpl[T, K, Store]

Value members

Abstract methods

def flushCache(term: Long)(tx: T): Unit

This method should be invoked from the implementations flush hook after it has determined the terminal version at which the entries in the cache are written to the persistent store. If this method is not called, the cache will just vanish and not be written out to the persistent store.

This method should be invoked from the implementations flush hook after it has determined the terminal version at which the entries in the cache are written to the persistent store. If this method is not called, the cache will just vanish and not be written out to the persistent store.

Value Params
term

the new version to append to the paths in the cache (using the PathLike's addTerm method)

tx

the current transaction (should be in commit or right-before commit phase)

def store: Store

The persistent map to which the data is flushed or from which it is retrieved when not residing in cache.

The persistent map to which the data is flushed or from which it is retrieved when not residing in cache.