Cashing data

Results 1 to 2 of 2

Thread: Cashing data

  1. #1
    Join Date
    Dec 1969

    Default Cashing data

    I was looking at the NET documentation on how to cashe data. From all the examples I have seen in it, you can only cashe a single item with a key. Is there some way to cashe an entire dataset per user(they are logged in and can get the username easily)? <BR><BR>Matt

  2. #2
    Join Date
    Dec 1969

    Default RE: Cashing data

    This works.<BR><BR>Cache.Add("MyDataSet,objDataSet, Nothing, DateTime.Now.AddMinutes(20), TimeSpan.Zero, CacheItemPriority.High, Nothing)<BR><BR>Where I cache the dataset "objDataSet" using the name "MyDataSet" in the cache. The rest of the code are various parameters on how long to keep it in cache, removal priority, etc. You can look up the complete list of params in SDK Documentation.<BR><BR>To get it back use:<BR><BR>objDataSet = Cache.Get("MyDataSet")

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts