Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const myCache = new Cache<{ id: string }, MyClass>((obj) => {
return Cache.hash([obj.id]);
});
expect(myCache.has({ id: "007" })).is.false;
super((obj) => {
return Cache.hash([obj.Name]);
});
}
super((obj) => {
return Cache.hash([obj.QueryId, obj.QuerySet]);
});
}