简体   繁体   中英

VS2008 Create Cache like functionality in Class Library project

I want to implement cache in a class library project in VS2008. Can anyone help me out with this. I tried accessing HttpRuntime.Cache but it is not possible in a class library project, are there any other alternatives ?

I tried accessing HttpRuntime.Cache but it is not possible in a class library project

Actually it is quite possible, just add reference to the System.Web assembly in your class library project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM