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 6820141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:23:24+00:00 2026-05-26T21:23:24+00:00

I am using Caching Application Block for caching. I have a few large objects

  • 0

I am using Caching Application Block for caching. I have a few large objects that are cached. The issue is that items are removed from cache because of Scavenging. Now since fetching objects again from database is expensive, I am thinking of using IsolatedStorage to also persist objects on disk. Have the following questions:

  1. Say an item A is removed from cache because of scavenging. Will it also be removed from IsolatedStorage ? If it does then what is the purpose of persisting in IsolatedStorage. I wanted to use IsolatedStorage so that even if item is scavenged, it at least can be picked and populated from the storage ?

  2. Since the objects are huge, I want to refresh them only once in 24 hours. But the only way to replace them so that there is no affect on end user is to first fetch items and then replace them in cache rather than allow to expire and then start fetching data ?

  • 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-05-26T21:23:24+00:00Added an answer on May 26, 2026 at 9:23 pm
    1. Yes, it will also get removed from IsolatedStorage. Basically, all actions get funneled both to the in-memory cache and IsolatedStorage. The purpose is to have persistence after the application closes. Anything that was still in the cache (and not scavenged) is persisted to disk and can be restored to the in-memory cache the next time the application runs.
    2. I’m guessing this is the ol’ “do database operations on a separate thread” issue. I’ve used the CAP before and had this problem in a WinForms app. You’ll probably want to write your own custom cache manager or something, which EntLib supports nicely. From it you could manage scavenging directly and also implement BackgroundWorkers or Tasks or something when it comes time to re-fetch data. Probably other ways you could handle it, but that would keep it contained in the cache manager. Otherwise, you’ll have to have something else in the app monitor the cache and refresh it as necessary.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that talks to several internal and external sources using SOAP,
I am using Ruby on Rails 3 and I have a monolithic application that
I have been using asp web cache in all my prior application developments. I
After some consideration, i implemented caching in my application, basically, using a hashtable that
We're using the Enterprise Library Caching Application Block to do caching (in memory) in
I am already using output caching in my ASP.NET MVC application. Page speed tells
I'm using IsolatedStorage in a Silverlight application for caching, so I need to know
I have an ASP.NET website where i have implemented page level caching using the
I'm needing to cache some data using System.Web.Caching.Cache . Not sure if it matters,
I created a simple Caching Data Access Layer that has caching using the Enterprise

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.