Packages

trait CacheMap[T <: Txn[T], K, +Store] extends Cache[T]

Linear Supertypes
Cache[T], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CacheMap
  2. Cache
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def cacheContains(key: K, tx: T)(implicit path: T.Acc): Boolean
  2. abstract def flushCache(term: Long)(implicit 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.

    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.

    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)

    Definition Classes
    CacheMapCache
  3. abstract def getCacheOnly[A](key: K, tx: T)(implicit path: T.Acc): Option[A]
  4. abstract def removeCache(key: K, tx: T)(implicit path: T.Acc): Boolean
  5. abstract def removeCacheOnly(key: K, tx: T)(implicit path: T.Acc): Boolean

    Removes an entry from the cache, and only the cache.

    Removes an entry from the cache, and only the cache. This will not affect any values also persisted to persistent! If the cache does not contain an entry at the given key, this method simply returns.

    key

    key at which the entry is stored

    tx

    the current transaction

  6. abstract def store: Store

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