内存映射文件.NET内存、文件、NET

2023-09-02 20:43:02 作者:不辞万里

我有一个项目,它需要访问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:

http://blogs.msdn.com/salvapatuel/archive/2009/06/08/working-with-memory-mapped-files-in-net-4.aspx

 
精彩推荐
图片推荐