Skip to content

Cache key serialization doesn't process js Date #499

@SQReder

Description

@SQReder

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions