Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • NearCacheImpl

Implements

Index

Constructors

constructor

Properties

internalStore

Methods

clear

  • clear(): void

Protected doEvictionIfRequired

  • doEvictionIfRequired(): void

Protected evictRecord

  • evictRecord(key: any | Data): void

Protected expireRecord

  • expireRecord(key: any | Data): void

Protected filterExpiredRecord

  • filterExpiredRecord(candidate: DataRecord): boolean

get

getName

  • getName(): string

getStatistics

invalidate

  • invalidate(key: Data): void

Protected isEvictionRequired

  • isEvictionRequired(): boolean

isInvalidatedOnChange

  • isInvalidatedOnChange(): boolean

nextReservationId

  • nextReservationId(): Long

put

  • put(key: Data, value: any): void
  • Creates a new {DataRecord} for given key and value. Then, puts the record in near cache. If the number of records in near cache exceeds {evictionMaxSize}, it removes expired items first. If there is no expired item, it triggers an invalidation process to create free space.

    Parameters

    • key: Data
    • value: any

    Returns void

Protected recomputeEvictionPool

  • recomputeEvictionPool(): number

setReady

  • setReady(): void

setStaleReadDetector

tryPublishReserved

  • tryPublishReserved(key: Data, value: any, reservationId: Long): any

tryReserveForUpdate

  • tryReserveForUpdate(key: Data): Long

Generated using TypeDoc