You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However I wonder how the cache work behind the scene?
Does it cache every loopback get request?
Does it invalidate cache every loopback post/patch request?
Do you try to update the cache instead of invalidate them for each post/patch request?
Please feel free to tell me If anything weird with my questions,
The text was updated successfully, but these errors were encountered:
Oh hey! Sorry about the delay I don't have notifications setup for this repo. Is this still something you're looking to use or you've found something else?
I went through your sample code and it's really good for me:
`
var cache = require('loopback-rediscache-models')(
{
app: app,
models: ['Customer']
});
Then in the models you want to use cache
var cache = require('loopback-rediscache-models')();
cache.findObj('Customer', 'id', 1).then(function (customer)
{
console.log(customer);
});
`
However I wonder how the cache work behind the scene?
Does it cache every loopback get request?
Does it invalidate cache every loopback post/patch request?
Do you try to update the cache instead of invalidate them for each post/patch request?
Please feel free to tell me If anything weird with my questions,
The text was updated successfully, but these errors were encountered: