Skip to content

Add option to skip invalidate when using icache.set or icache.getOrSet #616

@agubler

Description

@agubler

Enhancement

There are currently two cache middlewares available, standard cache and icache (invalidating cache) and it can be cumbersome to have to use both for scenarios when a value needs to stored across renders but when set not cause an invalidation. Additionally the typing is much better on the icache compared to the basic typing available with the cache

For the .set and .getOrSet APIs, add a third optional parameter to determine if the operation should cause an invalidation. The default behaviour would remain the same, i.e. cause an invalidation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions