473,395 Members | 1,383 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Setting Cache expiry time Expilictly

Hi All,

Is there any way to expire cache using cache.Insert(...) for a specified date and time? For example :I want to expire cache on Monday 9:30 AM in 1 week time and only on Monday 9:30 AM. Any answer will be appreciated . I am using Asp.Net vb.Net 2.0.

Best Regards

Syed
Aug 9 '07 #1
2 1332
jhardman
3,406 Expert 2GB
moved to .NET forum
Aug 10 '07 #2
kenobewan
4,871 Expert 4TB
Expand|Select|Wrap|Line Numbers
  1. Cache.Insert("key", myTimeSensitiveData, null, 
  2.   DateTime.Now.AddMinutes(1), TimeSpan.Zero);
HTH
Aug 11 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Hardeep Rakhra | last post by:
Hi i have a snippet of JS that i want to change so that the cookie it creates lasts only 48 hours. (or any other length of time i decide, but 48hours seems right for now) Only thing i can't...
3
by: hasanainf | last post by:
Hi all, What will be the best database design for an inventory control that uses expiry date for its products. Over a period of time, a particular product will have many expiry date and that...
1
by: Colin Basterfield | last post by:
Hi, I am trying to use the Cache to pass information between pages, so rather than load up the query string with vars, I load it up on the first page, but the cache is empty on arrival to the...
4
by: Erick | last post by:
i have an asp.net application and I want to save the results of an sql query in cache. Because the queries take 28 seconds to run (there are twelve similar queries) I want to run it all at 4am, ...
4
by: Beren | last post by:
Hello I'm trying to use Cache expiration and its callback feature to easily add automated tasks programmatically. The task should be run when the Cache object expired The problem I'm facing...
3
by: Dragon | last post by:
Session ViewState Cache Already There are Session and ViewState What is the use of Cache ?
2
by: Don | last post by:
I've come across a weird behaviour with regards to the cache object. I couldn't find any documentation which could explain this. Basically the problem has to do with the cache item NOT expiring....
4
by: ThatsIT.net.au | last post by:
There are a few different ways to use cache in Asp.net. What I want to know is what is the scope of these cache methods. what I mean by scope is are are they cached for the one user or not. if...
7
by: Paulo | last post by:
Hi, how do I force the asp to read the imgs files on server without making changings on IE settings like checking: Every visit on page...? Any hint? any classic asp code line? Thanks!
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.