We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Warp data with circular structure return an error which is OK: "TypeError: Converting circular structure to JSON"
"TypeError: Converting circular structure to JSON"
But afterwards any request to the cache will no response anything and got stuck.
const cacheManager = require( 'cache-manager'); const cache = cacheManager.caching({ ttl: 10 * 60, // 10 minutes store: require('cache-manager-redis') }); const data = { foo: 'bar' }; data.data = data; // circular structure cache.set('key', data, (err, result) => { console.error(err); // TypeError: Converting circular structure to JSON cache.get('key', (err, res) => { console.log(err, res); // never called! }); });
The text was updated successfully, but these errors were encountered:
This is probably related to usage of JSON.stringify. We should add this as a test case and fix.
Sorry, something went wrong.
No branches or pull requests
Warp data with circular structure return an error which is OK:
"TypeError: Converting circular structure to JSON"
But afterwards any request to the cache will no response anything and got stuck.
The text was updated successfully, but these errors were encountered: