Has anyone implement a mechanism to retain the cache up to a minimum cache
time even though it is supposed to get invalidated? I asked this because I
don't want to increase the load on the database server for caches that are
frequently invalidated and a database retrieval is required. I want to be
able to keep the cache and use it within a specified small period of time
(the minimum cache time mentioned above).
thanks,
Joseph 3 1480
Is there some problem with the simple approach of not invalidating in any
manner other than the desired timeout?
"Joseph" <jo****@bluefie ld.com.hk> wrote in message
news:er******** ******@TK2MSFTN GP12.phx.gbl... Has anyone implement a mechanism to retain the cache up to a minimum cache time even though it is supposed to get invalidated? I asked this because I don't want to increase the load on the database server for caches that are frequently invalidated and a database retrieval is required. I want to be able to keep the cache and use it within a specified small period of time (the minimum cache time mentioned above).
thanks, Joseph
Say the same cache object is dependent on the output of several pages
returned from different web methods. I have a web method (call it WM1) and I
want only this web method to retain the cache even though the cache is
supposed to get invalidated. All the other web methods dependent on this
cache objects will refresh the data from the database after the cache get
invalidated. If I don't invalidate the cache and utilize the timeout then
all web methods other than WM1 will get the data from the cache instead of
from the database. In other words, my goal is that the data returned from
WM1 does not require to be up to date within a small time limit (minimum
cache time) whilst the data returned from other web methods require to be
most up to date.
thanks,
Joseph
"Nicole Calinoiu" <ni*****@somewh ere.net> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. .. Is there some problem with the simple approach of not invalidating in any manner other than the desired timeout? "Joseph" <jo****@bluefie ld.com.hk> wrote in message news:er******** ******@TK2MSFTN GP12.phx.gbl... Has anyone implement a mechanism to retain the cache up to a minimum
cache time even though it is supposed to get invalidated? I asked this
because I don't want to increase the load on the database server for caches that
are frequently invalidated and a database retrieval is required. I want to be able to keep the cache and use it within a specified small period of
time (the minimum cache time mentioned above).
thanks, Joseph
Say the same cache object is dependent on the output of several pages
returned from different web methods. I have a web method (call it WM1) and I
want only this web method to retain the cache even though the cache is
supposed to get invalidated. All the other web methods dependent on this
cache objects will refresh the data from the database after the cache get
invalidated. If I don't invalidate the cache and utilize the timeout then
all web methods other than WM1 will get the data from the cache instead of
from the database. In other words, my goal is that the data returned from
WM1 does not require to be up to date within a small time limit (minimum
cache time) whilst the data returned from other web methods require to be
most up to date.
thanks,
Joseph
"Nicole Calinoiu" <ni*****@somewh ere.net> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. .. Is there some problem with the simple approach of not invalidating in any manner other than the desired timeout? "Joseph" <jo****@bluefie ld.com.hk> wrote in message news:er******** ******@TK2MSFTN GP12.phx.gbl... Has anyone implement a mechanism to retain the cache up to a minimum
cache time even though it is supposed to get invalidated? I asked this
because I don't want to increase the load on the database server for caches that
are frequently invalidated and a database retrieval is required. I want to be able to keep the cache and use it within a specified small period of
time (the minimum cache time mentioned above).
thanks, Joseph
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Vikrant |
last post by:
On my DB2/UDB system, some tablespace 'Minimum recovery time' is
2000-11-19 or some '1999-10-04' or different, for some tablespace
theres is no 'Minimum recovery time' , what does it tell me?
Thanks,
VKG
|
by: David Sworder |
last post by:
Hi,
I'm writing an application in which a client (C#/WinForms) and server
(C#/service) interact with one another. The client establishes a "session"
with the server but for scalability reasons there is not a one to one map
between a session and a physical TCP connection. A client may disconnect the
TCP connection if it is idle for more than 60 seconds... yet a conceptual
"session" may last for days at a time.
It's necessary that the...
|
by: NWx |
last post by:
Hi,
I' trying to implement a callback method when a cache object expires
I want to do this to automatically logout user after a timeout (for demo
purposes)
My thought is, when user logon, create a cache object which expires after,
let's say, 15 minutes, and in that moment, to direct user to a page telling
the time to run demo app was expired.
|
by: sklett |
last post by:
Hi-
I am having a hard time decided where I should be implementing my Cache
code. I store most of the DataSet's that I need in the Cache. I was doing
it in the bind method of my pages, but then I thought it would be cleaner to
maybe at the Cache code directly in the DAL. So, for example I might have a
DAL method to get products that looks like this:
public DataSet GetProducts()
{
|
by: Fernando Chilvarguer |
last post by:
Hi,
I'm retriving data from a database and storing it on the Cache Object using
the following code:
HttpContext.Current.Cache.Insert(
cacheItemKey,
contentDS, //THE DATASET WITH MY DATA
null,
DateTime.Now.AddSeconds(600),
| |
by: Tom.PesterDELETETHISSS |
last post by:
Hi,
I think this question requires an in depth understanding of how a browser
cache works. I hope I can reach an expert here.
I may have found a quirk in the asp.net documentation or I don't understand
what the SetAllowResponseInBrowserHistory does.
While researching caching I tried the code sample at the following page :
http://msdn2.microsoft.com/library/97wcd0a4(en-us,vs.80).aspx
|
by: Andrew Morton |
last post by:
I am caching some data in VB.NET using System.Web.Caching, is it possible to
lock the cache so that other sessions attempting to access the same cache
wait when it is being updated? I have the cache using a sliding timeout and
a dependency on the text file its data is extracted from.
If it's relevant, based on current statistics, I do not expect more than
about 400 people to be accessing the web site at the same time.
I've seen it appears...
|
by: siddharthkhare |
last post by:
Hi All,
what is the diference between these two cache control header.
no-cache and no-store.
I have read the w3.org explanation.
So lets say I am using only no-cache ....my understanding is that
nothing is cached and nothing is writen to disk.
|
by: samdev |
last post by:
I have a table that contains records that provide the following info:
vehicle type
route #
start time
travel time
end time
I need to display info for all records in a query and/or report BUT
need to separate the record by route that contains the minimum end
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |