question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Customize cache key function

See original GitHub issue

Feature request

Is your feature request related to a problem? Please describe

The current hash() function doesn’t work for all objects. In my case I have instances of sequelize models which causes hash() to crash when using cache: 'strict'.

Describe the solution you’d like

Customize the generateCacheKey

Describe alternatives you’ve considered

Submitting issue or fixing the hash library

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
KATTcommented, May 25, 2019

@P4sca1

  • To address the debugging nightmare I created PR #350
  • For specifying your own generateCacheKey I did #348 & #351
0reactions
maticzavcommented, Jun 19, 2019

🎉 This issue has been resolved in version 5.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

@jest/create-cache-key-function - npm
This module creates a function which is used for generating cache keys used by code transformers in Jest.. Latest version: 29.3.1, ...
Read more >
Custom cache keys - Apollo GraphQL Docs
The normalized cache computes a cache key for each object that is stored in the cache. With Apollo iOS, you can customize the...
Read more >
Customize cache keys | Cloud CDN
Under Cache key, select Custom. Select the Protocol, Host, and Query string checkboxes. Leave the Query string parameters field blank.
Read more >
Manipulating the cache key | Fastly Help Guides
You can set the cache key explicitly (including attaching conditions) by adding a request setting via the Settings page in the configuration ...
Read more >
@jest/create-cache-key-function | Yarn - Package Manager
This module creates a function which is used for generating cache keys used by code transformers in Jest.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found