How to know when a Cache item was last refreshed? RRS feed

  • Question

  • User1884398186 posted

    I am populating a Cache data item that expires after 15 minutes with absolute expiration. Is it possible to know when was this Cache item last populated in C# code-behind?


    Monday, December 31, 2012 10:14 PM


  • User-861818263 posted

    I think we cannot check when item get refreshed.


    1) There is no property in cache related classes.

    2) There is no call back function when chache is updated or inserted, as we have call back function when cache about to remove or removed.

    3)There is no method in cache as well as in cache dependency class, as it has properti when dependecy changed.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 1, 2013 7:15 AM