Types of data stored in Cache collection - Caching pages and data

Q.  What types of data can you store in the Cache collection?
- Published on 27 Jul 15

a. Only String Type of Data
b. You can store any type of data in the Cache collection.
c. Only DataSet Object
d. All of the above.

ANSWER: You can store any type of data in the Cache collection.
 

    Discussion

  • ramesh   -Posted on 23 Sep 15
    ASP.NET provides two important types of caching.
    • output caching: It stores pages or partial pages sent to the client. When the request came for this cached page, instead of recreating the page, a cached copy of the page is sent.
    • data caching: It caches data from data source. ASP.NET Framework uses cache object for data caching.

    You can store any type of data in the Cache collection.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)