Customize cache key function
See original GitHub issueFeature 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:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@P4sca1
generateCacheKey
I did #348 & #351🎉 This issue has been resolved in version 5.5.0 🎉
The release is available on:
Your semantic-release bot 📦🚀