Closed anasmithiam closed 9 years ago
So, it's correct the use of new CacheFactory(...)?
No, it's not. Follow the documentation:
var myCache = CacheFactory('myCache', {
maxAge: 60000,
// ...
});
If jshint doesn't like that, then you can do:
var myCache = CacheFactory.createCache('myCache', {
maxAge: 60000,
// ...
});
Hello, I've tried to create a cache using new operator. Something like
It seems that everything it's ok but the documentation doesn't use the operator 'new' when calling CacheFactory constructor (neither mentioning it). So, it's correct the use of
new CacheFactory(...)
?