Cache Hit with Unexpired Content
Previous | Next |
Cache Hit with Unexpired Content
The following diagram illustrates the process implemented by a typical cache proxy plug-in when a client requests unexpired content. The actual process used depends on how you implement the plug-in.
Because the content has been cached and has not yet expired, there is no reason to contact the origin server for content information. Therefore, the plug-in can simply instruct the server to play the content as an on-demand or broadcast stream. The appropriate methods to use are indicated in the following list.
- When a client requests digital media, the server calls QueryCache on the IWMSCacheProxy interface of the cache proxy plug-in.
- Because the requested content has been cached and has not expired, the plug-in can call OnQueryCache on the IWMSCacheProxyCallback interface and pass WMS_CACHE_QUERY_HIT_PLAY_ON_DEMAND or WMS_CACHE_QUERY_HIT_PLAY_BROADCAST in the Response parameter.
This is illustrated by the following diagram.
See Also(General)
See Also (Visual Basic .NET)
- IWMSCacheProxy.QueryCache (Visual Basic .NET)
- IWMSCacheProxyCallback.OnQueryCache (Visual Basic .NET)
See Also (C#)
See Also (C++)
Previous | Next |