473,382 Members | 1,512 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,382 software developers and data experts.

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 1479
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.pyesmeadow.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**************@TK2MSFTNGP11.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.pyesmeadow.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
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...
2
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...
1
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...
2
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
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
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
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...
7
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...
3
by: mrutyunjaya | last post by:
if (Cache==null) { SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings.ConnectionString); SqlDataAdapter mydataadapter = new...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.