Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > cache dependency object

Reply
Thread Tools

cache dependency object

 
 
wh
Guest
Posts: n/a
 
      04-05-2004
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.


 
Reply With Quote
 
 
 
 
Alvin Bruney [MVP]
Guest
Posts: n/a
 
      04-06-2004
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" <> 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.
>
>



 
Reply With Quote
 
 
 
 
Alvin Bruney [MVP]
Guest
Posts: n/a
 
      04-06-2004
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:...
> 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" <> 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.
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed creating table cache dependency registration =?Utf-8?B?WXV2YQ==?= ASP .Net 0 05-09-2006 01:17 PM
Dependency of a cache object to oracle =?Utf-8?B?RGlmZmlkZW50?= ASP .Net 2 01-11-2006 06:00 PM
Cache dependency for SQL database changed Steffen Loringer ASP .Net 2 05-17-2005 03:38 PM
Cache Dependency Question Jason Dean ASP .Net 2 12-17-2004 06:00 AM
Cache dependency on database select statement martin ASP .Net 1 10-18-2003 04:33 AM



Advertisments