Type Alias ExpiringMapEvents<K, V>

ExpiringMapEvents<K, V>: {
    expired: ExpiringMapEvent<K, V>;
    newKey: ExpiringMapEvent<K, V>;
    removed: ExpiringMapEvent<K, V>;
}

Type Parameters

  • K
  • V

Type declaration

  • Readonlyexpired: ExpiringMapEvent<K, V>

    Fires when an item is removed due to eviction or automatic expiry

  • ReadonlynewKey: ExpiringMapEvent<K, V>

    Fires when a item with a new key is added

  • Readonlyremoved: ExpiringMapEvent<K, V>

    Fires when an item is manually removed, removed due to eviction or automatic expiry