Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache key serialization doesn't process js Date #499

Open
SQReder opened this issue Aug 19, 2024 · 0 comments
Open

Cache key serialization doesn't process js Date #499

SQReder opened this issue Aug 19, 2024 · 0 comments
Labels
scope:core type:bug Something isn't working
Milestone

Comments

@SQReder
Copy link
Contributor

SQReder commented Aug 19, 2024

Cache key serialization transform js Date objects as {}
Applicable for both humanReadableKeys flag states

cache(cachedQuery, {
  adapter: inMemoryCache({ observability: { hit, miss } }),
  staleAfter: "1m",
  humanReadableKeys: true,
});

cachedQuery.start(new Date(100))
cachedQuery.start(new Date(200)) // return cached result of query above

image

@igorkamyshev igorkamyshev added type:bug Something isn't working scope:core labels Aug 19, 2024
@igorkamyshev igorkamyshev added this to the v1.0 milestone Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope:core type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants