Cached DataSet

J

JJ

Hi,

I was wondering in order to create a cached dataset as so:

DataSet ds = new DataSet();

ds = (DataSet)Cache["State"];

You would think you would have to call

Cache["State"] = ds;

some where before hand in order to make this work, correct?
On assigning something to Cache["State"] what can I assign to it other
than a dataset?
Can I assign an built xml string to it? what else?

Thanks,

JJ
 
S

Scott Allen

some where before hand in order to make this work, correct?
On assigning something to Cache["State"] what can I assign to it other
than a dataset?


Not sure if I follow the question.

Are you asking what can you store in the Cache? The Cache will store
objects - and everything in .NET is an object. You can put in DataSet
objects, integers, XmlDocument objects, strings, etc.
 

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

Forum statistics

Threads
473,754
Messages
2,569,525
Members
44,997
Latest member
mileyka

Latest Threads

Top