内存映射文件.NET [英] Memory Mapped Files .NET

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

问题描述

我有一个项目,它需要访问ASP.NET大量的专有数据。这是通过加载在共享内存中的数据做在Linux / PHP。我在想,如果试图使用内存映射文件将要走的路,或者如果有更好的支持.NET更好的办法。我在考虑使用数据缓存,但不知道数据的大小的所有缺陷被保存在缓存中。

I have a project and it needs to access a large amount of proprietary data in ASP.NET. This was done on the Linux/PHP by loading the data in shared memory. I was wondering if trying to use Memory Mapped Files would be the way to go, or if there is a better way with better .NET support. I was thinking of using the Data Cache but not sure of all the pitfalls of size of data being saved in the Cache.

推荐答案

我知道这是一个有点晚,但.NET 4.0框架现在支持内存映射文件的开箱即用:

I know this is a bit late, but the .NET 4.0 framework now supports memory-mapped files out of the box:

<一个href="http://blogs.msdn.com/salvapatuel/archive/2009/06/08/working-with-memory-mapped-files-in-net-4.aspx">http://blogs.msdn.com/salvapatuel/archive/2009/06/08/working-with-memory-mapped-files-in-net-4.aspx

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

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