永不过期的应用程序缓存

问题描述:

大家好,

如何设置一个永远不会过期的缓存对象,我将改变.

在此先感谢.

问候

Rameshkumar.T

Hi All,

How to set a cache object which is never expiried util i will change.

Thanks in Advance.

Regards

Rameshkumar.T

在将来的几年中进行设置.
Set it in the future several years.


在此处的向...添加项目具有过期策略的缓存'':
将项目添加到缓存中 [
Look here at section ''To add an item to the Cache with expiration policies'':
Adding Items to the Cache[^]

There are expiration policies.
The Cache class defines two fields that do this automatically: NoAbsoluteExpiration and NoSlidingExpiration. Simply set the appropriate parameter to its corresponding field value when you define an absolute or sliding expiration.


^ ]