Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • christian Boutet 10 posts 100 karma points
    Sep 21, 2018 @ 17:24
    christian Boutet

    RuntimeCache Default lifespan

    Hi, i'm not able to find what's the default timespan of ApplicationContext.Current.ApplicationCache.RuntimeCache

    Anyone have this information? thanks!

  • Søren Gregersen 436 posts 1874 karma points MVP 2x c-trib
    Sep 22, 2018 @ 11:59
    Søren Gregersen

    TL;DR: if you don't specify when it should expire, it never expires.

    The runtime cache (and I think this goes for all of them) is a wrapper for HttpRuntime.Cache. The default timespan is nothing (=no sliding expiration), but if you don't specify anything, the default value is System.Web.Caching.Cache.NoAbsoluteExpiration, wich equals DateTime.MaxValue (=9999/12/31 23:59:59).

  • christian Boutet 10 posts 100 karma points
    Oct 03, 2018 @ 18:33
    christian Boutet

    Thanks a lot for the precision! :)

Please Sign in or register to post replies

Write your reply to: