What the difference between Application("some-object")
and Cache("some-object")
in ASP.NET?
Application is an application wide, no timeout (except when the pool restarts) dictionary. The cache is a temporary repository for common cache storage.
This And This might help clarify the differences and usages.
Here is another one.
According to MS, Application storage is only preserved for backward compatibility with classic ASP applications so use the Cache because it's smarter and thread-safe.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With