Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8370705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:58:38+00:00 2026-06-09T13:58:38+00:00

I have some objects and classes that I’m currently saving into HttpContext.Cache but I

  • 0

I have some objects and classes that I’m currently saving into HttpContext.Cache but I want to make these persistent even when the app pool is recycled or even when the machine has been restarted.
I tried looking into using AppFabric or Memcached but they seemed focused on distributed cache and not so much local cache.
Also the EF STE in combination with AppFabric seem to be depending on serializable classes and some properties in my classes is for example references to .NET classes that is not serializable (For example I have a reference to an instance of System.Net.WebSockets.WebSocket as a property).

So my question is:
Can anyone give me any good ideas or point me to a framework that will allow me to save classes into some sort of local cache that is persistent to disk (Or database if it will allow me to save anyhting into it)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T13:58:40+00:00Added an answer on June 9, 2026 at 1:58 pm

    The new Appfabric 1.1 has read-through and write-behind features which has guaranteed persistence of your cache.

    Read through – If a requested item doesn’t exist in the cache, the data can be loaded from backend store and then inserted into cache. With a read-through provider, the cache detects the missing item and calls the provider to perform the data load. The item is then seamlessly returned to the cache client.
    Write behind – In the same way, items that are added or updated in the cache can be periodically written to the backend store using a write-through provider. This happens asynchronously and on an interval defined by the cache.

    You can check out my blog post for implementation details here http://blogs.msdn.com/b/prathul/archive/2011/12/06/appfabric-cache-read-from-amp-write-to-database-read-through-write-behind.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some classes that represent immutable objects (Quantity, Price, Probability). Is there some
I have some javaScript Classes ( ctor+prototype methods) that I want their instances to
i have written a library with some classes that make use of qt object
I have some classes that all implement a certain interface. I want to store
Sometimes we have several classes that have some methods with the same signature, but
This is probably a very basic question. I have some objects that I want
I have some classes in my code. From these classes I initiate objects, say
Let's say I have some model objects that resemble this: public class FooModel {
I'm working with an API that uses json. I have some classes that I've
Here is the question's plot: suppose I have some abstract classes for objects, let's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.