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
    0

    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 441 posts 1884 karma points MVP 2x c-trib
    Sep 22, 2018 @ 11:59
    Søren Gregersen
    100

    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
    0

    Thanks a lot for the precision! :)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies