Share via


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.

  1. When a client requests digital media, the server calls QueryCache on the IWMSCacheProxy interface of the cache proxy plug-in.

  2. 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.

Illustration of streaming of unexpired content.

Dd874360.wms8_cacheplugincreate_unexpired_final(en-us,VS.85).gif

See Also(General)

See Also (Visual Basic .NET)

See Also (C#)

See Also (C++)

  • IWMSCacheProxy::QueryCache

  • IWMSCacheProxyCallback::OnQueryCache