473,545 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

cache dependency object

wh
I'm not sure what I am trying to do is correct but within a global object
I'd like to store an object with a dependency on a specified directory.

I am aware that I am able to add a reference to a (global) object to the
applications cache by using the Cache proeprty of the current Page object.
What I would like to do is more fine grained. The global object creates
further objects, each of which is dependent on the files in a directory. I'd
like to create dependencies for each of these contained objects.

Is this possible? Or should I think about adding my global object to the
application cache together with dependencies set for 'all' folders that
'all' contained objects rely on?

Wayne.
Nov 18 '05 #1
2 1493
dependencies can only be set at the folder level for 1.1

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/27cok
"wh" <wa***@nospam.p yesmeadow.com> wrote in message
news:KDecc.131$ Xi.113@newsfe1-win...
I'm not sure what I am trying to do is correct but within a global object
I'd like to store an object with a dependency on a specified directory.

I am aware that I am able to add a reference to a (global) object to the
applications cache by using the Cache proeprty of the current Page object.
What I would like to do is more fine grained. The global object creates
further objects, each of which is dependent on the files in a directory. I'd like to create dependencies for each of these contained objects.

Is this possible? Or should I think about adding my global object to the
application cache together with dependencies set for 'all' folders that
'all' contained objects rely on?

Wayne.

Nov 18 '05 #2
I'm not thinking here. What I said is not correct. You have a couple of
options here. Use the filesystem watcher object to monitor the folder. When
the folder changes it will call an event handler in which you place your
code. If you need to monitor for a specific file, you can add a cache
dependency on the specific file.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/27cok
"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
news:eY******** ******@TK2MSFTN GP11.phx.gbl...
dependencies can only be set at the folder level for 1.1

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/27cok
"wh" <wa***@nospam.p yesmeadow.com> wrote in message
news:KDecc.131$ Xi.113@newsfe1-win...
I'm not sure what I am trying to do is correct but within a global object I'd like to store an object with a dependency on a specified directory.

I am aware that I am able to add a reference to a (global) object to the
applications cache by using the Cache proeprty of the current Page object. What I would like to do is more fine grained. The global object creates
further objects, each of which is dependent on the files in a directory.

I'd
like to create dependencies for each of these contained objects.

Is this possible? Or should I think about adding my global object to the
application cache together with dependencies set for 'all' folders that
'all' contained objects rely on?

Wayne.


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2071
by: martin | last post by:
Hi, I have a page that contain a dropdown list of values. This drop down list rarely changes so I wish to cache the page. However the values in the dropdown box are taken from a database, so if the values in the database change I wish to expire the cache and go to the database again and get a fresh copy. I have worked out that I should...
2
261
by: wh | last post by:
I'm not sure what I am trying to do is correct but within a global object I'd like to store an object with a dependency on a specified directory. I am aware that I am able to add a reference to a (global) object to the applications cache by using the Cache proeprty of the current Page object. What I would like to do is more fine grained. The...
1
1470
by: Steffen Loringer | last post by:
Hi, i like to store some data in the Cache on the server. The data should be removed once a file on the server is changed (I'm using a Cache.Dependency). Because the data should be reloaded into the Cache I'm also using a callback method. But I can't figure out, how to add the data without any time dependency. I can't use...
2
1235
by: Diffident | last post by:
Hello All, Can anyone tell me how I can set the dependency of a cache object to an Oracle table? Thank you!!
2
2614
by: Enosh Chang | last post by:
Hi all: I want to use System.Web.Caching.Cache in my web application, but I want to know the lifecycle of Cache (depending on Page, Session or Application ...). Thanks! Enosh
8
1417
by: brett | last post by:
How do I add a string to the cache so that it updates if the string source changes? CacheDependency() seems to want an absolute path. My string is a full http link. Thanks, Brett
0
1462
by: =?Utf-8?B?UmF2aQ==?= | last post by:
Hi, We are planning to use SqlCacheDepency in our application(ASP.Net2.0/SQL Server 2005).I was just doing a POC and found the Cache addition and invalidation is behaving abnormally. I just wanted to know where its going wrong. I have a command object as dependency. The stored proc. returns result set based on filter param. Basically its...
7
1999
by: Andrew Jocelyn | last post by:
Hi I'm running an ASP.NET web application under IIS. I'm inserting a cache object with a file based CacheDependency. I've noticed that when the file changes the Cache object is not always immediately invalidated. e.g. Cache.Insert("myobj", data, new CacheDependency(filePath)); When I make a change to the file 'filePath' and call the...
3
5409
by: mrutyunjaya | last post by:
if (Cache==null) { SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings.ConnectionString); SqlDataAdapter mydataadapter = new SqlDataAdapter("select intproductid,vchproductname,vchproductacctype,vchprodacclogoimg from productmaster order by intproductid desc", con); ...
0
7487
marktang
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...
0
7934
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7778
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 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...
0
6003
agi2029
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...
0
4966
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...
0
3476
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...
0
3459
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1033
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
731
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.