Caching architecture question.

  • Thread starter Thread starter Ashish
  • Start date Start date
A

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