Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface KeysDependenciesEvictionPolicyArgumentsBundle<Key>

Type parameters

  • Key

Hierarchy

  • KeysDependenciesEvictionPolicyArgumentsBundle

Properties

Optional dependencies

dependencies: Key[]

Dependencies of the entry.

Optional dependents

dependents: Key[]

Dependents of the entry.

Optional throwOnDependencyNotFound

throwOnDependencyNotFound: boolean

Behaviour to take when dependency not present in the ReadonlyCacheBackend:

Throw on dependency not found Behaviour
true An exception will be thrown, and entry insertion will fail. There aren't any exception guarantees, meaning that after exception is thrown, state of the this and other policies might be corrupted. You can use throwOnDependencyNotFound mode for debugging or testing, in production is not recommended to use it.
false Dependency will be ignored and relationship with entry won't be established.

Defaults to false.