A cache map puts an in-memory transaction local cache in front of a persistent store.
A cache map puts an in-memory transaction local cache in front of a persistent store. Entries written
during the transaction are held in this cache for fast retrieval. But the cache serves a second purpose:
In the confluent system, the write paths are incomplete during the transaction, as it is not known in
advance whether a meld forces a new index tree to be generated or not. In this case, the implementation
needs to gather this information during the transaction, and when the flush is performed, the new
terminal version is appended before writing the cached entries to the persistent store.
S
the underlying system
K
the key type (typically Int for a variable map or Long for an identifier map)
A cache map puts an in-memory transaction local cache in front of a persistent store. Entries written during the transaction are held in this cache for fast retrieval. But the cache serves a second purpose: In the confluent system, the write paths are incomplete during the transaction, as it is not known in advance whether a meld forces a new index tree to be generated or not. In this case, the implementation needs to gather this information during the transaction, and when the flush is performed, the new terminal version is appended before writing the cached entries to the persistent store.
the underlying system
the key type (typically
Int
for a variable map orLong
for an identifier map)