Fun with List Types for Caching Data
Posted by: Rick Strahls WebLog,
on 21 Mar 2007 |
View original | Bookmarked: 0 time(s)
I often find myself using various collection types for 'cached' storage in Web applications. For example, in some applications there are lists of countries, lists of states, various other lookup lists that are initially stored in a database, but then are constantly reused. There's little point in continually reloading this data from the database so caching it as part of the application is useful. Depending on how you like to work data is usually pulled from the database with a DataReader, which...