DISQUS

DISQUS Hello!  The comments on this profile are unclaimed and thus are unverified.

Do they belong to you? Claim these comments.

Steve's picture

Unregistered

Feeds

aliases

  • Steve

Steve

8 months ago

in Pluggable ASP.NET CacheManager on Just Sayin' More Words
If you want to add provider-independent code you can perfectly use something like an adapter, which implements ICacheProvider (which you could have done with CacheManager) and takes a ICacheProvider instance and then proxy the calls and do your extra logic.

8 months ago

in Pluggable ASP.NET CacheManager on Just Sayin' More Words
No you don't, what is the difference between

ICacheProvider cache = new ShortTermProvider();

or

CacheManager cache = new CacheManager(new ShortTermProvider());
1 reply
John Sheehan That is correct. However, if your CacheManager contains additional logic that is provider-independent (not demonstrated here), then you'd want to use the example code.

9 months ago

in Pluggable ASP.NET CacheManager on Just Sayin' More Words
What's the point in using CacheManager instead of just using the ICacheProvider instances?
Returning? Login