Welcome to AspAdvice Sign in | Join | Help

Cache Manager Almost Ready

I'm almost done with my Cache Manager application, which is modeled after ELMAH and uses an HttpHandler model to add cache management functionality to any ASP.NET application.  At the moment it's built using VS 2005 and v2 of the framework, but doesn't really use any 2.0 functionality (except for .resx files, which are AWESOME for managing string resources within a project!).  Here's a screenshot:

screenshot

http://aspadvice.com/photos/ssmith/picture14144.aspx

Current Features:

  • Clear Application Cache
  • View Cache API contents
    • View values of most simple types
  • Remove specific page's output cache entries
  • View Cache/Server stats
    • Server Name
    • Server Cache Maximum Memory (mb)
    • Server Free Memory (mb)
    • Application Path
    • Application Cache Entries

I'm hoping to add some support for guessing at the memory footprint of the total cache and/or individual items, but this is not an easy problem, it seems.  I borrowed a bit from this article, which describes a method of getting object sizes that, unfortunately, is not recommended because it isn't accurate.  I'm hoping to hear something from the ASP.NET team that will let me implement a somewhat accurate memory estimate algorithm soon, though.

The initial feedback I've received is that the UI is pretty ugly.  To be honest I think it looks great compared to what it started out as.  If you have any recommendations for the UI, or have some design skills and want to take a pass at the HTML+CSS, let me know.

 

Published Saturday, December 03, 2005 1:35 AM by ssmith
Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Cache Manager Almost Ready

Looks like a great application. Thanks! Don't worry about the UI too much right now as long as its intuitive. Concentrate on functionality. Eye candy can come later.
Monday, December 05, 2005 10:36 AM by Kartal Guner

# re: Cache Manager Almost Ready

Looks cool.

However, I was just wondering what are the different scenarios you see this code will useful in real-world ASP.NET apps?

An HttpHandler for cache is interesting - is the code available somewhere?

- Rakesh Rajan
Tuesday, December 06, 2005 6:49 AM by Rakesh Rajan

# Un pannello per gestire la cache

Monday, March 20, 2006 9:37 AM by imperugo

# re: Cache Manager Almost Ready

Is this thing complete yet and if it is is it a free download somewhere ?
Monday, August 07, 2006 5:55 AM by Mischa Kroon

# re: Cache Manager Almost Ready

There was a release in January 2006 - you'll find it at http://aspalliance.com/cachemanager/.

Monday, August 07, 2006 9:01 AM by ssmith

# re: Cache Manager Almost Ready

i tried to download and open the archive file,

but the following message appears "!C:\Documents and Settings\Administrator\Desktop\AspAlliance.CacheManager.v1.0.60115.01.zip: The archive is either in unknown format or damaged

"

Sunday, November 19, 2006 4:20 PM by ahmedelbatal

# re: Cache Manager Almost Ready

Hello,

Are you going to post the source code also. I am not able to find source code in it.

If we will get source code we can modify as per our application requirements

Thank you

Saturday, June 09, 2007 12:05 PM by Shail

Leave a Comment

(required) 
required 
(required) 
Enter the code you see below