Skip to content

feat: memo cache expire callbacks - #17

Merged
cdcabrera merged 2 commits into
patternfly:mainfrom
cdcabrera:20251124-memo-callbacks
Nov 24, 2025
Merged

feat: memo cache expire callbacks#17
cdcabrera merged 2 commits into
patternfly:mainfrom
cdcabrera:20251124-memo-callbacks

Conversation

@cdcabrera

Copy link
Copy Markdown
Member

What is it?

  • feat: memo cache expire callbacks
    • caching, update typings, adds 2 callbacks, onCacheExpire, onCacheRollout
    • helpers, refactor generateHash, add hashNormalizeValue, isPlainObject

Notes

  • adds 2 callbacks to the memo func, one for "on cache expire" and the other for when the cache reaches its limit and removes/replaces items.
    • onCacheExpire will only fire if the expire option is set
  • the onCacheRollout callback supports upcoming work for feat: support http transport #1
  • expands the generateHash string conversions for types

* caching, update typings, adds 2 callbacks, onCacheExpire, onCacheRollout
* helpers, refactor generateHash, add hashNormalizeValue, isPlainObject
@cdcabrera
cdcabrera merged commit c9e4838 into patternfly:main Nov 24, 2025
3 checks passed
@cdcabrera cdcabrera mentioned this pull request Dec 1, 2025
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