also + to use static_assert for check that type is trivia;/lock-free (not sure if this really will pretext us from non-trivial implementation of the class).
Not sure what you mean exactly.
One hesitation I have is that usually I care more about how much memory is left for the rest of the things running on my computer rather than how large Blender's cache data can be. In a file…
Another way to structure this might be having separate caches for each key/value type combination that all share a memory usage counter. Did you think about that? I'm not sure it's better but…
Finally created the feedback thread: https://devtalk.blender.org/t/slide-nodes-operator-feedback/36284
Thanks for the patch. As mentioned in chat, I currently imagine this to build on top of #126411 which should solve the problems you're mentioning.
That would suggest that MemoryCount would…