Recently a question raised in my group. I have a sections list in database.it is nothing but names of sections like Dubai section, NA section, Canada Section. This list updated very rarely in the database.
Now the question, Is there any mechanism in asp.net that we can keep the list in Server Cache memory and refresh the cache every 24 hours? Why group need is, they dont want call DB all the time. Just they want read it from Server memory.
Please share me if we have that kind of facility in asp.net.
examples and blogs will be more helpful.
You can do that with Cache object. More info here.
You probably need something like this:
This will cache connectionString object under a key named DSN for 24 hours.