[Originally posted by jwatson3d] I've just picked up this book and am working through it now. I have a specific need which lead me to find the book and I'm hoping it'll help. I'm developing a custom cache based upon the NameObjectCollectionBase. The cache will hold custom, strongly-typed objects. I'm following the "pattern" of System.Web.Cache and looking to build in automatic expiration and removal as an option. My question is, if I use System.Threading.Timer to implement what is the impact of having 100's of Timers waiting to expire the contents? What if it's 1,000's of timers?, etc. Alternately, I could create a worker thread from within a Windows Service to periodically scan the cache looking for expired items to remove - not as "tight" but maybe less strain on resources? Does anybody have any thoughts, concerns, etc.?
|