PrefetchCache

Deprecated

BulkQuery is now responsible for prefetching

There is no size limit. Entries are not evicted. This guarantees that after a prefetch there are no more request required. Not thread safe.

Constructors

Link copied to clipboard
constructor(store: IDeserializingKeyValueStore)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val keyValueStore: IKeyValueStore

Functions

Link copied to clipboard
open operator override fun <T> get(hash: String, deserializer: (String) -> T): T?
Link copied to clipboard
open override fun <T> getAll(hashes: Iterable<String>, deserializer: (String, String) -> T): Iterable<T>
open override fun <T : IKVValue> getAll(regular: List<IKVEntryReference<T>>, prefetch: List<IKVEntryReference<T>>): Map<String, T?>
Link copied to clipboard
open override fun <T> getIfCached(hash: String, deserializer: (String) -> T, isPrefetch: Boolean): T?
Link copied to clipboard
Link copied to clipboard
open override fun prefetch(hash: String)
Link copied to clipboard
open override fun put(hash: String, deserialized: Any, serialized: String)