Creates a thread-safe concurrent cache.
- Namespace
- Statiq
.Common - Containing Type
- ConcurrentCache
<TKey, TValue>
Syntax
public ConcurrentCache(bool resettable, bool disposeValuesOnReset)
Parameters
Name | Type | Description |
---|---|---|
resettable | bool |
Indicates if the cache should be reset by the IEngine before each execution.
|
disposeValuesOnReset | bool |
If true (the default) values will be disposed when the cache is reset if they implement
IDisposable (only relevant if resettable is true ).
|