Home All Groups Group Topic Archive Search About

Caching architecture question.

Author
16 Dec 2005 3:53 PM
Ashish
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

Author
17 Dec 2005 9:34 AM
Vadym Stetsyak
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

Show 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

AddThis Social Bookmark Button