How to use the SystemWeb.Caching.Cache.Add dependancy object.

  • Thread starter Thread starter Jensen bredal
  • Start date Start date
J

Jensen bredal

Hello,
I want to cache a table from MS sql server with auto refresh for two hours.

How can this be done in the Addmethod of the Cache object?

Many thanks in advance

JB
 
Jensen:

Not sure what ur asking. Do you know how to get a dataset? Are you simply
asking how to get a database table into a dataset which can then be cached
(which is sort of what your message asks)

Or, are you asking how you can add a dependency on the database table, much
like you would add a dependency on a file? (which is sort of what your title
is asking).

Karl
 
Or, are you asking how you can add a dependency on the database table,
much
like you would add a dependency on a file? (which is sort of what your
title
is asking).

Karl
Well i store data into a dataset. I want that data cached. But I want that
cache to change if the source table on the database server get updated.
How can i accomplish this?

Many thanks
JB
 
Back
Top