.Net Framework 4.5默认允许我们使用2G内存,程序在大约占用1.2G内存的时候会抛出OutOfMemeoryException.
如果你需要使用超过2G内存(通常这是可以避免的情况), 可以使用以下方法:
在PostBuildEvent 命令中添加:
call "$(DevEnvDir)..\..\vc\vcvarsall.bat" x86
"$(DevEnvDir)..\..\vc\bin\EditBin.exe" "$(TargetPath)" /LARGEADDRESSAWARE
Reference:
http://blogs.msdn.com/b/calvin_hsia/archive/2010/09/27/10068359.aspx
Some frameworks:
http://stackoverflow.com/questions/351635/memcached-with-windows-and-net
http://www.codeproject.com/Articles/51409/Exploring-Caching-Using-Caching-Application-Enterp
http://stackoverflow.com/questions/8896/can-i-get-memcached-running-on-a-windows-x64-64bit-environment?rq=1