the dictionary cache only understands key value relationships. you cannot
glean that kind of information from the dictionary. i'm curious as to why
you need this information since the cache
is internally managed. i'd suggest you wrap the cache in a class and log
that info whenever you set the cache with data if you need to manage the
cache

Signature
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
>I am currently trying to gather all information on my cache collection.
>
[quoted text clipped - 16 lines]
>
> Grant
Hi Alvin
I am currently running a number of web sites. I obviously use the cache to
store commonly used data.
When i make changes, i clear that cache to update it.
I was under the impression that i would not need to clear that cache, if it
wasn't used for a specified time - the time set by me in the TimeSpan
Currently i am inserting in to the Cache as follows:
Cache.Insert("SubnavForm", subnavForm, null, DateTime.MaxValue,
TimeSpan.FromMinutes(20));
However, after a full night of know use, the cache was not updated.
When i cleared the Cache by looping through the Collections.DictionaryEntry
collection, the Cache was then updated.
I wanted this information, to monitor my cache and find out why it was not
being cleared.
> the dictionary cache only understands key value relationships. you cannot
> glean that kind of information from the dictionary. i'm curious as to why
[quoted text clipped - 23 lines]
>>
>> Grant
Alvin Bruney [MVP] - 29 Sep 2004 19:46 GMT
i don't see your callback function in there to reload the cache.
you need to point the cache to a callback function which reloads the cache
when the time expires.
makes sense?

Signature
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
> Hi Alvin
>
[quoted text clipped - 41 lines]
>>>
>>> Grant
GrantMagic - 30 Sep 2004 09:40 GMT
ok, that makes perfect sense thank you.
still don't understand why you can't get comprehensive information from you
current cache
>i don't see your callback function in there to reload the cache.
> you need to point the cache to a callback function which reloads the cache
[quoted text clipped - 46 lines]
>>>>
>>>> Grant