none
Caching using System.runtime.Caching in web application RRS feed

  • Question

  • Hello,

    I want to use system.runtime.caching in an ASP.NET web forms application to store data and page sections ( partialy and all page)

    Kindly note that we may have a farm configuration with load balancer.

    I viewed many topics using memory cache but i want to store the cache in database, how this can be done.

    can you provide a sample that uses system.runtime.caching in a web application and stores cache in database.

    thank you.

    Saturday, June 21, 2014 9:35 PM

Answers

  • You have to write your own caching logic based upon ObjectCache as the framework only ships with the in memory version (doesn't matter whether it is a web app or not).  MSDN has documentation on this process.  The implementation is entirely up to you. 

    Alternatively you can google for existing libraries that support caching to a database (commercial and free). 

    Michael Taylor
    http://msmvps.com/blogs/p3net

    Tuesday, June 24, 2014 5:00 PM
    Moderator

All replies