[Mono-bugs] [Bug 433483] Cache/CacheDependency's behaviour different from .NET' s implementation

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Oct 13 08:26:35 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=433483

User juraj at hotfeet.ch added comment
https://bugzilla.novell.com/show_bug.cgi?id=433483#c6





--- Comment #6 from Juraj Skripsky <juraj at hotfeet.ch>  2008-10-13 06:26:34 MDT ---
Created an attachment (id=245141)
 --> (https://bugzilla.novell.com/attachment.cgi?id=245141)
proposed patch

Okay this is it. It took me much much longer than expected, but I'm pretty
happy with the result now. These were my main objectives:

- match .NET's behaviour (both 2.0 and 1.1)
- follow all dependencies directly upon change
- keep lock on Cache's hashtable/dictionary to a minimum
- invoke callbacks without the lock held
- clean up the code (each of Cache/CacheItem/CacheDep should only contain code
handling its actual responsibilities)


The following open items I want to finish in the next few days:
- performance testing
- replace uses of HttpRuntime.InternalCache in System.Web with
HttpRuntime.Cache (and Cache.MakeInteral)
- make one little adjustment needed to match .NET 1.1 behaviour (HasChanged is
only toggled _after_ insertion into Cache).


Marek, could you have a look at the patch and tell me what you think? I hope we
can use it for the 1.1 profile as well. Do you now of any fundamental
differences between 1.1. and 2.0?


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list