Class ObjectMemoizerClass

Namespace
ESRI.ArcGIS.DatasourcesRaster
Assembly
ESRI.Server.DatasourcesRaster.dll
[Guid("3A857A42-5EBE-41B0-8AB2-4E6CD573201F")]
[ClassInterface(ClassInterfaceType.None)]
public class ObjectMemoizerClass : ObjectMemoizer, IObjectMemoizer2, IObjectMemoizer, IObjectMemoizerDiskCache, IPersistStream, IPersist
Inheritance
ObjectMemoizerClass
Implements
Inherited Members

Constructors

ObjectMemoizerClass()

public ObjectMemoizerClass()

Explicit Interface Implementations

Add(object, object)

Memoizes an object uniquely associated with the specified key. Adding more objects than allowed (as indicated by the .MaximumSize property) would cause one or more previously memoized items to be removed based on an implementation-specific eviction strategy.

virtual void Add(object vtKey, object ppObject)

Parameters

vtKey object
ppObject object

CacheEnabled

Indicates whether disk-based caching is enabled.

virtual bool CacheEnabled { get; set; }

Returns

bool

Clear()

Clears the object cache associated with the memoizer.

virtual void Clear()

Count

The number of object currently held by the memoizer.

virtual int Count { get; }

Returns

int

Exists(object)

Returns TRUE if a previously memoized object associated with the specified key is found.

virtual bool Exists(object vtKey)

Parameters

vtKey object

Returns

bool

FolderPath

The path to the parent folder for storing cached objects.

virtual string FolderPath { get; set; }

Returns

string

Get(object)

Retrieves the previously memoized object associated with the specified key and increments its usage count.

virtual object Get(object vtKey)

Parameters

vtKey object

Returns

object

GetClassID(out Guid)

virtual void GetClassID(out Guid pClassID)

Parameters

pClassID Guid

GetSizeMax(out _ULARGE_INTEGER)

virtual void GetSizeMax(out _ULARGE_INTEGER pcbSize)

Parameters

pcbSize _ULARGE_INTEGER

IObjectMemoizer2_Add(object, object)

virtual void IObjectMemoizer2_Add(object vtKey, object ppObject)

Parameters

vtKey object
ppObject object

IObjectMemoizer2_Clear()

virtual void IObjectMemoizer2_Clear()

IObjectMemoizer2_Count

virtual int IObjectMemoizer2_Count { get; }

Returns

int

IObjectMemoizer2_Exists(object)

virtual bool IObjectMemoizer2_Exists(object vtKey)

Parameters

vtKey object

Returns

bool

IObjectMemoizer2_Get(object)

virtual object IObjectMemoizer2_Get(object vtKey)

Parameters

vtKey object

Returns

object

IObjectMemoizer2_MaximumSize

virtual int IObjectMemoizer2_MaximumSize { get; set; }

Returns

int

IObjectMemoizer2_Remove(object)

virtual void IObjectMemoizer2_Remove(object vtKey)

Parameters

vtKey object

IPersist_GetClassID(out Guid)

virtual void IPersist_GetClassID(out Guid pClassID)

Parameters

pClassID Guid

IsDirty()

virtual void IsDirty()

Keys

The set of keys associated with this object memoizer.

virtual IVariantArray Keys { get; }

Returns

IVariantArray

Load(IStream)

virtual void Load(IStream pstm)

Parameters

pstm IStream

MaximumSize

The maximum allowed number of objects held by the memoizer.

virtual int MaximumSize { get; set; }

Returns

int

Remove(object)

Removes the previously memoized object associated with the specified key.

virtual void Remove(object vtKey)

Parameters

vtKey object

Save(IStream, int)

virtual void Save(IStream pstm, int fClearDirty)

Parameters

pstm IStream
fClearDirty int