\r\n

51Degrees Pipeline .NET  4.4

51Degrees Pipeline for .NET

FiftyOne.Pipeline.Engines.Caching.DataKeyedCacheBase< TValue > Class Template Reference abstract

Detailed Description

Abstract base class for caches that use IFlowData as the key.

Internally, the cache actually uses a DataKey instance derived from IFlowData.

Template Parameters
TValue - The type of data to store in the cache.

Inheritance diagram for FiftyOne.Pipeline.Engines.Caching.DataKeyedCacheBase< TValue >:

[legend]

Collaboration diagram for FiftyOne.Pipeline.Engines.Caching.DataKeyedCacheBase< TValue >:

[legend]

Public Member Functions

 DataKeyedCacheBase (CacheConfiguration configuration)
Constructor More...
virtual void  Put (IFlowData data, TValue value)
Add the specified data to the cache. More...
void  Dispose ()
IDisposable support More...

Protected Member Functions

abstract IEvidenceKeyFilter  GetFilter ()
Returns the IEvidenceKeyFilter to use when generating a key from IFlowData instances. More...
virtual void  Dispose (bool disposing)
Dispose of this instance More...

Properties

virtual TValue  this[IFlowData data] [get]
Get the More...

Constructor & Destructor Documentation

Member Function Documentation

Property Documentation

◆ this[IFlowData data]

get

Get 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
TValue
is returned. If not, the default value is returned. (i.e. null for reference types, 0 for int, etc)