Donate Share

Gentle.NET Object Persistence Framework

Show:

What's happening?

  • Followup: RE: Clearing the cache with a named thread

    Although it's been some time since I wrote this, the caching code seems to have been written with named threads in mind. That is, if the thread has a name then that is actually used as the scopeDelimiter in preference of the threads id (you can verify this in the SystemSettings.ThreadIdentity property getter, which is called from the CacheManager.GetScopeDelimiter method). As such, calling...

    2009-06-02 18:22:38 UTC by mnmr

  • Clearing the cache with a named thread

    Hi, I usually use CacheManager.Clear(Thread.CurrentThread.GetHashCode()); to clear the cache for the current thread. Recently I noticed that this was no longer working inside NUnit tests - I think this co-incided with NUnit changing their threading system I notice in the comments it says that CacheManager.Clear(int); .. will not work if the Thread has a name - this turns out to be...

    2009-05-20 10:50:43 UTC by ianr74