OptionsMonitorCache<TOptions> class
abstract
Used by OptionsMonitor
to cache TOptions
instances.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → void - Clears all options instances from the cache.
-
getOrAdd(
String? name, CreateOptions< TOptions> createOptions) → TOptions -
Gets a named options instance, or adds a new instance created with
createOptions
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
tryAdd(
String? name, TOptions options) → bool - Tries to adds a new option to the cache, will return false if the name already exists.
-
tryRemove(
String? name) → bool - Try to remove an options instance.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited