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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:06:23+00:00 2026-05-12T10:06:23+00:00

Greetings fellow earthlings. I’m researching methods of caching data retrieved from various database tables

  • 0

Greetings fellow earthlings.

I’m researching methods of caching data retrieved from various database tables using ASP.NET MVC. We have a huge amount of data which is only updated once a day and from then on is static. This can vary but generally it’s things like a list of users (employees), to departments, offices, locations we’re in etc. etc.

My question is, how on earth do you retrieve the data in the first place? Where do you store it? (text file, or in actual code?) What determines whether the cache needs to be updated? I’d prefer an object-oriented approach so I can treat the rows of data as objects. I already have a model I’ve created by hand using LINQ in my MVC application. Additionally, how should I check if the cache is dirty? Should the database do something, or should the application do something? For example, when a row is updated should a database trigger go and do something to indicate that a change has been made (perhaps it could write to a text file?), or should my application quickly check to see if anything has changed? I realise there’s many-a-method around, but is there a recommended one?

Take into account I have zero experience with caching, so be gentle 😉

  • 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-12T10:06:24+00:00Added an answer on May 12, 2026 at 10:06 am

    Either hold a static object (Array, List, Hashmap and the like) with all the data items for each type of data (an array for employees, another for departments and so on), or use the server Cache and store those data containers within it using your own defined key. Using the Cache is pretty straight forward and most commonly used.

    Using the Cache object also allows you to specify expiration (absolute or timed by the last touch on the key), and cache dependency (where you can reset cache items based on a FS file).

    If necessary, more complex scenarios could be created (expiration by limiting cache size on a specific item for example).

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

Sidebar

Related Questions

Greetings! I have a Repeater control that's using an XmlDataSource control. <asp:FormView id=myFormView runat=server
Greetings fellow amazonians We have certain f4v files from webtvinteractive.com that are not working
Greetings Everyone I am new in asp.net and i'm using RadControls for Asp.net Ajax
Greetings fellow members, the situation in question is such: public abstract class BaseClass {
Greetings, fellow coders! I have this table that contains categories and subcategories (actually I
Greetings. I've been using vim for years, and I've recently started toying with XCode.
Greetings! I'm trying to have a UIWebView controlled from generated events. Is there a
Greetings, I've taken over from a prior team and writing ETL jobs which process
Greetings, By using the regular selector, I am able to select the grand parent
greetings from Iceland! To begin with, I have searched both with google and here

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.