many cache<T> or many adaptor<T>

modcase

New Member
I have an architecture question:In my application we have 4 DataModels. We want to save each of them in the cache.The question is which way is better:a. Creating many implementations of \[code\]ICache<T>\[/code\]with \[code\]set<T>\[/code\] and \[code\]get<T>\[/code\]b. Creating many implementations of \[code\]ICacheAdaptor<T>\[/code\].The Adaptors are responsible for casting \[code\]object to different types\[/code\]and only one cache with \[code\]object set\[/code\] and \[code\]get(object)\[/code\]I think I don't I need different settings in the \[code\]web.config\[/code\] for each cache.What would you suggest?
 
Back
Top