I wrote an article on Enterprise
Library Caching Block in which I described the use of Caching
Block. Few days ago I received an email from a developer asking that what
are the advantages of using Enterprise Library Caching Block over
the standard caching.
If we talk about performance than they are
pretty much the same. Actually I will be inclined towards the standard caching
since Enterprise Library calls the standard caching under the hood. The
main advantage of using the EL Caching is it's easier to maintain if you
are using other application blocks as well.
It's the same situation that if you are buying
a Dell computer than pretty much you want to buy everything from them. It's
not like you are going to buy a mouse from dell and moniter from IBM and
keyboard from some other company. In the same way Enterprise Library is used to
group things together.
Offcourse that does not mean that if you are using
EL Caching than you cannot use standard Caching. You can use thing you want and
no one will complain.
Asp.net 2.0 introduces more advanced and better
caching since now you can use the SqlCacheDepedency Objects so that your
cache will be expired whenever the data in the database table
changes.
powered by IMHO