MemoryCache类类似于ASP.NET Cache类吗? [英] Is MemoryCache class similar to the ASP.NET Cache class.

查看:55
本文介绍了MemoryCache类类似于ASP.NET Cache类吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MemoryCache类类似于ASP.NET Cache类.特别用于由于内存压力而导致缓存对象中的项目到期.

我也想知道,如果MemoryCache对象有一些(几千个)项目.是否可以保证在任何情况下都不会从MemoryCache对象中使项目过期

Is MemoryCache class is similar to the ASP.NET Cache class. Specially for expiration if item in the cache object due to memory pressure.

I also want to know that, if MemoryCache object has some(few thousands) items. Is there a guarantee that item never expire from MemoryCache object in all circumstance

推荐答案

^ ]是MemoryCache类的文档.它不是基于Web的,所以不一样.据我所知,它不会过期.
Here[^] is the documentation for the MemoryCache class. It''s not web based, so it''s not the same. As far as I can see, it does not expire.


这篇关于MemoryCache类类似于ASP.NET Cache类吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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