6 references to _cache
Microsoft.Extensions.Options (6)
OptionsCache.cs (6)
23
public void Clear() =>
_cache
.Clear();
39
value =
_cache
.GetOrAdd(name, static (name, createOptions) => new Lazy<TOptions>(createOptions), createOptions);
66
return
_cache
.GetOrAdd(
80
if (
_cache
.TryGetValue(name ?? Options.DefaultName, out Lazy<TOptions>? lazy))
100
return
_cache
.TryAdd(name ?? Options.DefaultName, new Lazy<TOptions>(
113
_cache
.TryRemove(name ?? Options.DefaultName, out _);