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
CacheEnabled
Indicates whether disk-based caching is enabled.
virtual bool CacheEnabled { get; set; }
Returns
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
Exists(object)
Returns TRUE if a previously memoized object associated with the specified key is found.
virtual bool Exists(object vtKey)
Parameters
vtKeyobject
Returns
FolderPath
The path to the parent folder for storing cached objects.
virtual string FolderPath { get; set; }
Returns
Get(object)
Retrieves the previously memoized object associated with the specified key and increments its usage count.
virtual object Get(object vtKey)
Parameters
vtKeyobject
Returns
GetClassID(out Guid)
virtual void GetClassID(out Guid pClassID)
Parameters
pClassIDGuid
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
IObjectMemoizer2_Clear()
virtual void IObjectMemoizer2_Clear()
IObjectMemoizer2_Count
virtual int IObjectMemoizer2_Count { get; }
Returns
IObjectMemoizer2_Exists(object)
virtual bool IObjectMemoizer2_Exists(object vtKey)
Parameters
vtKeyobject
Returns
IObjectMemoizer2_Get(object)
virtual object IObjectMemoizer2_Get(object vtKey)
Parameters
vtKeyobject
Returns
IObjectMemoizer2_MaximumSize
virtual int IObjectMemoizer2_MaximumSize { get; set; }
Returns
IObjectMemoizer2_Remove(object)
virtual void IObjectMemoizer2_Remove(object vtKey)
Parameters
vtKeyobject
IPersist_GetClassID(out Guid)
virtual void IPersist_GetClassID(out Guid pClassID)
Parameters
pClassIDGuid
IsDirty()
virtual void IsDirty()
Keys
The set of keys associated with this object memoizer.
virtual IVariantArray Keys { get; }
Returns
Load(IStream)
virtual void Load(IStream pstm)
Parameters
pstmIStream
MaximumSize
The maximum allowed number of objects held by the memoizer.
virtual int MaximumSize { get; set; }
Returns
Remove(object)
Removes the previously memoized object associated with the specified key.
virtual void Remove(object vtKey)
Parameters
vtKeyobject
Save(IStream, int)
virtual void Save(IStream pstm, int fClearDirty)