Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Caching DataSet for lifetime of Webapp

Caching DataSet for lifetime of Webapp

Scheduled Pinned Locked Moved ASP.NET
databasesysadminquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cfer83
    wrote on last edited by
    #1

    I created a dataset with several tables, can I keep this in Cache for the lifetime of the Web Application, do I need a Web Service to do so? Would there be a way to automatically Save the changed or new records in the Cache Object To the Database? is Cache the only way to keep an object persistent throughout the entire web app and only on the server side? Can someone point me in the right direction? thanks!

    K 1 Reply Last reply
    0
    • C Cfer83

      I created a dataset with several tables, can I keep this in Cache for the lifetime of the Web Application, do I need a Web Service to do so? Would there be a way to automatically Save the changed or new records in the Cache Object To the Database? is Cache the only way to keep an object persistent throughout the entire web app and only on the server side? Can someone point me in the right direction? thanks!

      K Offline
      K Offline
      kubben
      wrote on last edited by
      #2

      If this is something that the whole application is going to use that you should probably put it in the Application object. The application object will not expire like the cache will. You can retrieve the dataset from the application object any time you want do whatever you need to do with it and then put it back into the application object. Hope that helps. Ben

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups