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.
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
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.
is working on a reply...