Caching architecture question.

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
 
V

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top