Export (0) Print
Expand All

StencilCache Sample: Uses the ATL Server Stencil Cache 

Download sample

Demonstrates how to use the stencil cache service in an ATL Server Web application.

The StencilCache sample illustrates how to:

  • Get and set the lifetime of the cache entries.

  • Use the statistics provided by the cache service.

The sample demonstrates the behavior of the stencil cache (also called the server response file cache) by writing a server response file to disk and changing it whenever the Touch button is clicked. This file is returned as part of the frameset displayed in the sample so that the cache is exercised. The statistics related to the cache are displayed in another page in the frameset.

Security noteSecurity Note

This sample code is provided to illustrate a concept and should not be used in applications or Web sites, as it may not illustrate the safest coding practices. Microsoft assumes no liability for incidental or consequential damages should the sample code be used for purposes other than as intended.

Requirements

  • IIS

Building and Running the Sample

To build and run this sample

  1. Open the solution file, SCSample.sln, in the Visual Studio development environment.

  2. Build the solution. This will also deploy the solution to the local Web server.

  3. Use a Web browser to view http://localhost/scsample/scsample.htm. Use the buttons on the page to test server response file caching.

Demonstrates

See Also

Community Additions

ADD
Show:
© 2014 Microsoft