Cached DataSet

  • Thread starter Thread starter JJ
  • Start date Start date
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
 
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.
 
Back
Top