永不过期的应用程序缓存 [英] Never Expiried Application Cache

查看:100
本文介绍了永不过期的应用程序缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

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

在此先感谢.

问候

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.


^ ]


这篇关于永不过期的应用程序缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆