System.Runtime.Caching和内存缓存. [英] System.Runtime.Caching and Memory cache.

查看:116
本文介绍了System.Runtime.Caching和内存缓存.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现从 ObjectCache 继承的自定义缓存[^ ] .
是否有人知道如何执行此操作或是否有MemoryCache源,因为折射器什么也没显示.

在此先感谢您.

I want to implement my custom cache that inherits from ObjectCache[^].
Does anybody know how to do this or has source of MemoryCache because refractor doesn''t show nothing.

Thanks in advance.

推荐答案

Reflector在打开System.Runtime.Caching.dll文件后对我来说工作正常. MemoryCache的拆卸效果非常好.
Reflector worked perfrectly fine for me after opening the System.Runtime.Caching.dll file. MemoryCache disassembles quite nicely.


如果可以从Red-Gate获得Reflector的价格大约为
Why use refractor if you can get Reflector from Red-Gate for about


35,为什么要使用折射镜.
另一件事是,如果您要实现自定义缓存,为什么不只实现使ObjectCache抽象的所有东西呢?
另一种选择是使用MemoryCache类型并从中派生.
您当然可以考虑在此命名空间中进行一些研发: http://msdn.microsoft. com/en-us/library/dd985642.aspx [ ^ ].

如果遇到任何困难,请发表评论.

祝您编程愉快!

-MRB
35.
The other thing is if your want to implement a custom cache why don''t you just implement all the stuff that makes ObjectCache abstract?
Another option is to use the MemoryCache type and derive from that.
You could of course consider to do some R&D in this namespace here: http://msdn.microsoft.com/en-us/library/dd985642.aspx[^].

If you run into any difficulties leave a comment.

Happy coding!

-MRB


这篇关于System.Runtime.Caching和内存缓存.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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