|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Caching architecture question.application, for the performance reasons. My ideal sitiuation would be if i could plug in the application block between my Persistence layer and database, so that objects are created from the cache and cost of CRUd operation can be avoided.... the problem each object is not having a unique key, and caching application block does not provides any typed cache functionality, for example if i store a product object wtih uid 1 and a customer object with uid 1 then it would overwrite the product object, Iam thinking about creating a multiple cache managers according to the type of object, and keep all those cache managers in a super cache... in that case would the scavenger clean up caches inside a cachemanager object ? any comments The unique key will be a combination of uid and type.
Or you can take GetHashCode value ( if it is not overriden ) to identify your objects... Show quoteHide quote "Ashish" <asha***@thisisjunk.com> wrote in message news:erw5tjlAGHA.3352@TK2MSFTNGP10.phx.gbl... >I am thinking about using Caching application block in my web application, >for the performance reasons. > > My ideal sitiuation would be if i could plug in the application block > between my Persistence layer and database, so that objects are created > from the cache and cost of CRUd operation can be avoided.... > > the problem each object is not having a unique key, and caching > application block does not provides any typed cache functionality, for > example if i store a product object wtih uid 1 and a customer object with > uid 1 then it would overwrite the product object, > > Iam thinking about creating a multiple cache managers according to the > type of object, and keep all those cache managers in a super cache... > > in that case would the scavenger clean up caches inside a cachemanager > object ? > > any comments
Other interesting topics
TreeView: OnSelectedNodeChanged not firing??
Threading Dynamic DropDownList Client Validation (JavaScript) for CustomValidator Control VS 2003 and 2005 on same machine SQL-ASP.NET datetime format problem ??? Getting path of the mapped folder Project 2003 -> 2005 ? Dynamic Textbox with Calender is it retail version?? |
|||||||||||||||||||||||