suparnatural-cache / com.suparnatural.core.cache / LinearProbingCache / TombStoneMarker

TombStoneMarker

class TombStoneMarker : Cacheable

A marker which replaces deleted objects. If the space is marked as null after deletion, then it leaves other objects with same hash codes unreachable. Search continues if the current cell has a TombStoneMarker.

Constructors

<init>

TombStoneMarker(key: String)

A marker which replaces deleted objects. If the space is marked as null after deletion, then it leaves other objects with same hash codes unreachable. Search continues if the current cell has a TombStoneMarker.

Functions

cacheKey

fun cacheKey(): String

Returns the unique key used to identify the object in the cache.

serializeForPersistence

fun serializeForPersistence(): String

Returns a serialized string which can be persisted. If this is the last object returned by the preprocessor chain, the return value of this method will be persisted as it is. Otherwise, this method will not called.