Skip to content

Store & read in-memory cache on local disk #19

@Jandev

Description

@Jandev

When a Function stops running, the in-memory cache will also be cleared.

For us to have the least amount of hits to Cosmos DB, the cache can be stored & read from the local disk.
As proofed in this repository: https://github.com/Jandev/poc-scale-infinite-shared-state the state should be stored in:

Sharing date has to be done in the D:\home\data\-folder.

The state can be stored as a human-readable JSON document, called cache.json.
The contents will look like

{
    "entries": [
        {
            "slug": "the-slug",
            "fullUrl": "https://the-full-url/"
        }
    ]
}

Additional properties can be added when necessary, like an updatedOn.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions