Copied to clipboard

Flag this post as spam?

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


  • Malthe Petersen 68 posts 383 karma points c-trib
    Jan 07, 2020 @ 17:36
    Malthe Petersen
    0

    Custom NuCache types

    Hello!

    I need to add custom types/content to the NuCache, but I can't seem to find any documentation on how to do that or whether it is even possible.

    I have only found this: https://our.umbraco.com/documentation/reference/cache/examples/tags and a response on adding something to the memory cache here on Our, but nothing with NuCache.

    Does anyone know if it is possible to add custom types to it and if so, how to do it?

    Many regards Malthe

  • Richard Ockerby 34 posts 209 karma points MVP 4x c-trib
    Feb 16, 2023 @ 17:58
    Richard Ockerby
    0

    Hi there!

    I had this same question (3 years later!) and thought I'd share my findings here. AFAIK Umbraco don't document it because you're not supposed to do it - I dare say you could delve into the source code and see how Umbraco do it, then extend that to fit your requirements.

    An alternative I landed on was to store the data in a custom database table, or if it's just flat data, using a different caching provider such as Fusion Cache, CosmoDb or even Redis.

Please Sign in or register to post replies

Write your reply to:

Draft