WebGecko Home
Authoring and caching solutions for a better Web experience
SEARCHStart search

ASPCACHE BENEFITS

Benefits
  1. 20+ times faster than the ASP Application object
  2. 300+ times faster than the Commerce.Dictionary
  3. Improves Web site performance
  4. Easy to add to existing ASP sites
Discussion

20+ times faster than the ASP Application object

Though ASP applications can implement data caching using the ASP Application object, ASPCache offers superior performance and additional features, making ASPCache the best choice for caching in Active Server Pages.  See the performance table below for a performance comparison.

ASPCache is also highly optimized for page fragment caching - ASPCache avoids overhead from BSTR allocation, Unicode conversion, COM object creation, file access, and script execution.  Real-world ASP pages using ASPCache page fragment caching can run at 800 requests per second on Quad processor Web servers.

300+ times faster than the Commerce.Dictionary

Compared to the Site Server Commerce.Dictionary, ASPCache offers superior performance and better features for caching.

ASPCache Collection Performance
Times are in milliseconds
ASPCacheASP
Application Object
Site Server
Commerce.Dictionary
Add/Update 50000x81116463245729
Read 60000x46111877211770
Remove 2000x110881N/A
Tests were run on a 600MHz single-proc server running Windows 2000 Server and IIS 5. The overhead of script execution has been subtracted. All operations used random keys from a pool of 20,000.
"Add/Update 50000x" means 50,000 add or update operations took this long. "Read 60000x" means 60,000 read operations took this long. etc.

Improves Web site performance

Web server caching improves Web site performance by skipping repetitive work and using cached results instead.  ASPCache provides outstanding functionality for data caching and output caching.  Web site designers can choose which type(s) of caching to use for a given page.

Caching Web page output (also known as Page Fragment Caching) yields the best performance, but requires that the same page fragment can be displayed in multiple requests. Data caching is valuable when the data can be re-used in later requests.

Caching trades storage to save processing cycles; by storing past results, the hope is that future processing can be skipped.  The value of caching is compromised when items are out-of-date, when extra storage becomes scarce, and when cached results are rarely used.  ASPCache solves these issues with item expiration, cache shrinking, and flushing underused items.

Easy to add to existing ASP sites

ASPCache is easily added to existing ASP sites by adding an <object> tag to the global.asa file:

REM *** global.asa ***

<OBJECT RUNAT=Server SCOPE=Application ID=Cache PROGID=ASPCache></OBJECT>

Once the <object> tag is added, any ASP page can cache and retrieve data stored in the ASPCache object.  If the ASP site previously used the Application object for data caching, all such usage can be converted to ASPCache by globally replacing "Application(" with "Cache(".

To add page fragment caching to an existing ASP page:

  1. Generate the fragment file with APGen™.
  2. Call Cache.WriteFile(filename) in the ASP page to cache the fragment and write it to the Response object.




Home  |  Products  |  Community  |  Sales  |  Support  |  Company
Mailing List  |  Services  |  Press  |  Search  |  Privacy  |  Contact Us