HighTechTalks DotNet Forums  

Caching architecture question.

ASP.net Caching microsoft.public.dotnet.framework.aspnet.caching


Discuss Caching architecture question. in the ASP.net Caching forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Ashish
 
Posts: n/a

Default Caching architecture question. - 12-16-2005 , 10:53 AM






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

Reply With Quote
  #2  
Old   
Vadym Stetsyak
 
Posts: n/a

Default Re: Caching architecture question. - 12-17-2005 , 04:34 AM






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...

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"Ashish" <asharma (AT) thisisjunk (DOT) com> wrote

Quote:
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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.