Skip to content

Distributed storage (and other features) for direct get and set #44

@uded

Description

@uded

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions