Interface IObjectMemoizer
- Namespace
- ESRI.ArcGIS.DatasourcesRaster
- Assembly
- ESRI.Server.DatasourcesRaster.dll
Provides access to members that control an object memoizer.
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("70E17160-11C3-40F5-87FD-3E58826B3B3A")]
public interface IObjectMemoizer
Properties
Count
The number of object currently held by the memoizer.
int Count { get; }
Property Value
MaximumSize
The maximum allowed number of objects held by the memoizer.
int MaximumSize { get; set; }
Property Value
Methods
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.
void Add(object vtKey, object ppObject)
Parameters
Clear()
Clears the object cache associated with the memoizer.
void Clear()
Exists(object)
Returns TRUE if a previously memoized object associated with the specified key is found.
bool Exists(object vtKey)
Parameters
vtKeyobject
Returns
Get(object)
Retrieves the previously memoized object associated with the specified key and increments its usage count.
object Get(object vtKey)
Parameters
vtKeyobject
Returns
Remove(object)
Removes the previously memoized object associated with the specified key.
void Remove(object vtKey)
Parameters
vtKeyobject