Skip to content

feat(cacheable): support tag invalidation in getOrSet#1688

Open
laesse wants to merge 1 commit into
jaredwray:mainfrom
laesse:feature/tags-for-getOrSet
Open

feat(cacheable): support tag invalidation in getOrSet#1688
laesse wants to merge 1 commit into
jaredwray:mainfrom
laesse:feature/tags-for-getOrSet

Conversation

@laesse

@laesse laesse commented Jul 23, 2026

Copy link
Copy Markdown

Add tags to GetOrSetFunctionOptions and forward them to set when a value is computed on a cache miss. Add regression coverage and update the documentation with tag-based getOrSet usage.

Please check if the PR fulfills these requirements

  • Followed the Contributing guidelines and Code of Conduct
  • Tests for the changes have been added (for bug fixes/features) with 100% code coverage.

What kind of change does this PR introduce?
feature

Add tags to GetOrSetFunctionOptions and forward them to set when a
value is computed on a cache miss. Add regression coverage and update
the documentation with tag-based getOrSet usage.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for tag-based invalidation in the getOrSet method of Cacheable. It updates the GetOrSetFunctionOptions type to include an optional tags array, passes these tags to the underlying set operation during a cache miss, updates the README and JSDoc documentation, and adds corresponding unit tests to verify the behavior. I have no feedback to provide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant