Copied to clipboard

Flag this post as spam?

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


  • René Pjengaard 117 posts 700 karma points c-trib
    Jan 19, 2016 @ 10:29
    René Pjengaard
    0

    Is it possible to list all cacheKeys in RuntimeCache?

    Hi there,

    i am trying to list all my cache-keys in ApplicationContext.ApplicationCache.RuntimeCache. If i use RuntimeCache.GetCacheItemsByKeySearch i get an IEnumerable

  • Dan Diplo 1554 posts 6205 karma points MVP 5x c-trib
    Jan 19, 2016 @ 13:32
    Dan Diplo
    0

    I'm not aware of one using the new APIs. There is a deprecated method on the old cache that might do something like this (note the typo!):

    umbraco.cms.businesslogic.cache.Cache.ReturnCacheItemsOrdred();
    

    This returns a Hashtable (of DictionaryEntry items that have a key).

    I imagine there must be a better way...

  • René Pjengaard 117 posts 700 karma points c-trib
    Jan 19, 2016 @ 14:13
    René Pjengaard
    0

    Hi Dan,

    thanks for the input. I am affraid it is not the right way to go (using obsolete logic).

    /René

Please Sign in or register to post replies

Write your reply to:

Draft