cache dependency object

W

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.
 
A

Alvin Bruney [MVP]

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 said:
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 said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top