IOleCache interface
Provides control of the presentation data that gets cached inside of an object. Cached presentation data is available to the container of the object even when the server application is not running or is unavailable.
When to implement
The IOleCache interface can be implemented by an object handler and an in-process server. In general, however, the methods of IOleCache are implemented as part of the IOleCache2 interface, which inherits the IOleCache definition, and adds methods for selectively updating the cache. Rather than implementing, however, it is typical to use or aggregate the OLE implementation, a pointer to which is available through a call to CreateDataCache.
When to use
A client calls the methods of IOleCache to control what the data cache holds. A typical client would be an OLE Documents container that would cache an object's presentation so it is available without the object actually being active.
Members
The IOleCache interface inherits from the IUnknown interface. IOleCache also has these types of members:
Methods
The IOleCache interface has these methods.
| Method | Description |
|---|---|
| Cache |
Specifies the format and other data to be cached inside an embedded object. |
| EnumCache |
Creates an enumerator that can be used to enumerate the current cache connections. |
| InitCache |
Fills the cache as needed using the data provided by the specified data object. |
| SetData |
Initializes the cache with data in a specified format and on a specified medium. |
| Uncache |
Removes a cache connection created previously using IOleCache::Cache. |
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
IDL |
|
|
IID |
IID_IOleCache is defined as 0000011e-0000-0000-C000-000000000046 |
See also