◆ DataKeyedCacheBase()
FiftyOne.Pipeline.Engines.Caching.DataKeyedCacheBase< TValue >.DataKeyedCacheBase | ( | CacheConfiguration | configuration | ) |
Constructor
- Parameters
-
- configuration - The cache configuration to use when creating the internal cache.
Member Function Documentation
◆ Dispose() [1/2]
void FiftyOne.Pipeline.Engines.Caching.DataKeyedCacheBase< TValue >.Dispose ( ) IDisposable support
◆ Dispose() [2/2]
virtual void FiftyOne.Pipeline.Engines.Caching.DataKeyedCacheBase< TValue >.Dispose ( bool disposing ) protected virtualDispose of this instance
- Parameters
-
- disposing - True if this is called from the Dispose method. False if it is called from the finalizer.
◆ GetFilter()
abstract IEvidenceKeyFilter FiftyOne.Pipeline.Engines.Caching.DataKeyedCacheBase< TValue >.GetFilter ( ) protected pure virtualReturns the IEvidenceKeyFilter to use when generating a key from IFlowData instances.
Only evidence values that the filter includes will be used to create the key.
- Returns
- An IEvidenceKeyFilter instance.
Implemented in FiftyOne.Pipeline.Engines.Caching.DefaultFlowCache.
◆ Put()
virtual void FiftyOne.Pipeline.Engines.Caching.DataKeyedCacheBase< TValue >.Put ( IFlowData data, TValue value ) virtualAdd the specified data to the cache.
- Parameters
-
- data - The IFlowData to use as a key.
- value - The
to store with the key.TValueProperty Documentation
◆ this[IFlowData data]
virtual TValue FiftyOne.Pipeline.Engines.Caching.DataKeyedCacheBase< TValue >.this[IFlowData data] getGet the
TValue
associated with the key generated from the supplied IFlowData instance.- Parameters
-
- data - The IFlowData to use as a key.
- Returns
- If a matching item exists in the cache then the is returned. If not, the default value is returned. (i.e. null for reference types, 0 for int, etc)TValue