cache dependency object

  • Thread starter Thread starter wh
  • Start date Start date
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.
 
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.
 
Back
Top