Options
All
  • Public
  • Public/Protected
  • All
Menu

Module contracts/cache-replacement-policy

Enumerations

Interfaces

Type aliases

Type aliases

Deleter

Deleter<Key, Value>: function

Function, that given a key, will remove it from storage.
Deleter makes policy able to delete entries on his own, when it detects that they should no longer be kept.
Deleter is responsible to call onDelete hook for each policy, so that they can clear metadata and internal data structures.

param

Name of the key.

param

Entry associated with key.

Type parameters

  • Key

  • Value

Type declaration