Cache Administration
Previous | Next |
Cache Administration
The Windows Media Services SDK does not contain interfaces that enable you to administer a cache directly. You must create your own. For example, you can create a class to manage a database and a class to manage each cache entry in the database. Your database class can contain methods to:
- Create a cache entry.
- Insert a cache entry into the database.
- Delete a cache entry from the database.
- Delete all entries from the database.
- Find a specific cache entry.
- Specify and retrieve the maximum disk space that cached content can occupy.
- Determine whether a disk has enough space to cache digital media.
Your cache entry class can contain methods to:
- Specify a version number for the content.
- Retrieve the time at which the version was last checked.
- Specify the time at which the content was last accessed.
- Update the size of the content.
Your cache entry class can also inherit from the IWMSCacheItemDescriptor interface to perform the following:
- Retrieve the URL of the cached content on the cache server.
- Retrieve the URL of the cached content on the origin server.
- Retrieve the size, in bytes, of the cached content.
- Retrieve the version number of the content.
- Retrieve the content expiration date.
See Also
- Implementing Cache Proxy Functionality
- IWMSCacheItemDescriptor Interface
- IWMSCacheItemDescriptor Object (C#)
- IWMSCacheItemDescriptor Object (Visual Basic .NET)
Previous | Next |