Options
All
  • Public
  • Public/Protected
  • All
Menu

Implements customized cache set behavior based on the IAgingCacheOptions

Type parameters

  • TKey

  • TValue

Hierarchy

  • IAgingCacheSetStrategy

Index

Methods

Methods

load

  • load(key: TKey, value: TValue, evictAtLevel?: number, force?: boolean): Promise<IAgingCacheWrite<TValue>>
  • Parameters

    • key: TKey

      The key to the value to set

    • value: TValue

      The value to set

    • Optional evictAtLevel: number

      The level to set below

    • Optional force: boolean

      If true write to levels below the persistence layer

    Returns Promise<IAgingCacheWrite<TValue>>

    If the write succeeded or the error condition

set

  • set(key: TKey, value: TValue, force: boolean): Promise<IAgingCacheWrite<TValue>>

Generated using TypeDoc