-
Notifications
You must be signed in to change notification settings - Fork 31
Description
We use sturdyc in many different scenarios, including manual upserts to cache from our logic. It works fine, but by doing so, we are completely missing some features, including distributed storage. Although I do not understand the logic and where it came from, it's a bit odd - if I update via function, the cache is propagated, written to DS, and so on. But when I do it by hand - nada.
I would like to request consideration and an extension of the logic to manual setters and getters.
As I haven't analyzed it yet (sorry, until today I was just using team while my team was trying to dig deeper) it seems like the method Set() is just directly writing data to in-memory cache with no calls to distributed cache, but in comparison GetOrFetch is calling a somewhat feature-rich distributedFetch function that can handle additional calls to DS.