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

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
 
K

Karl Seguin

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
 
J

Jensen bredal

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
 

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

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top