freelanceprogrammers.org Forum Index » ASP

Cache


View user's profile Post To page top
travis.falls@... Posted: Wed Jan 18, 2006 10:19 pm


Joined: 10 Jan 2006

Posts: 33
Cache
I have a console application in which I would like to cache the data in my sql
base so I don`t have to keep hitting it. Should I use the system.web.cache? or
is that more geared to the web? I am trying to figure out the best cache
strategy.

Travis D. Falls | Consultant RAFT.Net IT | 860.547.4070 |
travis.falls@...



*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information. If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited. If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************
Reply with quote
Send private message
View user's profile Post To page top
kindawords Posted: Wed Jan 18, 2006 10:43 pm


Joined: 11 Jan 2006

Posts: 46
Cache
Cache is geared to the web. For a console app you don`t need anything
too fancy, because you are the only user. You could simply set a
shared (static) variable and keep it there.

Something like this...

Private Shared mATable as DataTable

Public Shared ReadOnly Property ATable as DataTable
Get
if IsNothing(mATable) Then
mATable = new DataTable
`Fill it from DB....
End if
Return mATable
End Get
End Property

On 1/18/06, Falls, Travis D (HTSC, CASD) <travis.falls@...> wrote:
> I have a console application in which I would like to cache the data in my sql
base so I don`t have to keep hitting it. Should I use the system.web.cache? or
is that more geared to the web? I am trying to figure out the best cache
strategy.
>
> Travis D. Falls | Consultant RAFT.Net IT | 860.547.4070 |
travis.falls@...
>
>
>
> *************************************************************************
> This communication, including attachments, is
> for the exclusive use of addressee and may contain proprietary,
> confidential and/or privileged information. If you are not the intended
> recipient, any use, copying, disclosure, dissemination or distribution is
> strictly prohibited. If you are not the intended recipient, please notify
> the sender immediately by return e-mail, delete this communication and
> destroy all copies.
> *************************************************************************
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>


--
Dean Fiala
Very Practical Software, Inc
http://www.vpsw.com
Reply with quote
Send private message
View user's profile Post To page top
travis.falls@... Posted: Wed Jan 18, 2006 10:53 pm


Joined: 10 Jan 2006

Posts: 33
Cache
That is what I am doing now; I am using a DataSet that is returned from the
database. I was hoping to take advantage of some of the update, delete cache
functionality... Just being lazy. Thanks Dean.

Travis D. Falls | Consultant RAFT.Net IT | 860.547.4070 |
travis.falls@...


-----Original Message-----
From: AspNetAnyQuestionIsOk@yahoogroups.com
[mailto:AspNetAnyQuestionIsOk@yahoogroups.com]On Behalf Of Dean Fiala
Sent: Wednesday, January 18, 2006 11:43 AM
To: AspNetAnyQuestionIsOk@yahoogroups.com
Subject: Re: [AspNetAnyQuestionIsOk] Cache


Cache is geared to the web. For a console app you don`t need anything
too fancy, because you are the only user. You could simply set a
shared (static) variable and keep it there.

Something like this...

Private Shared mATable as DataTable

Public Shared ReadOnly Property ATable as DataTable
Get
if IsNothing(mATable) Then
mATable = new DataTable
`Fill it from DB....
End if
Return mATable
End Get
End Property

On 1/18/06, Falls, Travis D (HTSC, CASD) <travis.falls@...> wrote:
> I have a console application in which I would like to cache the data in my sql
base so I don`t have to keep hitting it. Should I use the system.web.cache? or
is that more geared to the web? I am trying to figure out the best cache
strategy.
>
> Travis D. Falls | Consultant RAFT.Net IT | 860.547.4070 |
travis.falls@...
>
>
>
> *************************************************************************
> This communication, including attachments, is
> for the exclusive use of addressee and may contain proprietary,
> confidential and/or privileged information. If you are not the intended
> recipient, any use, copying, disclosure, dissemination or distribution is
> strictly prohibited. If you are not the intended recipient, please notify
> the sender immediately by return e-mail, delete this communication and
> destroy all copies.
> *************************************************************************
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>


--
Dean Fiala
Very Practical Software, Inc
http://www.vpsw.com



Yahoo! Groups Links
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help