Forum Discussion

Darren_Person_2's avatar
Darren_Person_2
Icon for Nimbostratus rankNimbostratus
Nov 06, 2006

RAM Cache Evict - ASP.NET/C#?

Hi All,

 

 

I am looking to provide a web interface for listing out and removing cached items. Does anyone have sample code in C for getting the list of cache items and manually expiring each one? I was thinking this would be an internal ASP.NET application to manage the cache.

 

 

Thanks!!

 

 

1 Reply

  • I don't have any code off hand, but the methods are fairly simple to use:

     

     

    
    struct RAMCacheKey {
      String profile_name;
      String host_name;
      String uri;
      long maximum_responses
    };
    RAMCacheEntry[][] LocalLB::RAMCacheInformation::get_ramcache_entry(
        in RAMCacheKey[] keys
    );
    RAMCacheEntryExactMatch[][] LocalLB::RAMCacheInformation::get_ramcache_entry_exact_match(
        in RAMCacheKey[] keys
    );
    void LocalLB::RAMCacheInformation::evict_ramcache_entry(
        in RAMCacheKey[] keys
    );

     

     

    Let us know how the project goes. That would be an excellent addition to our CodeShare section (hint hint...)

     

     

    -Joe