Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
58bcf0cea2 | |||
bf2d3f661e |
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartcache",
|
"name": "@pushrocks/smartcache",
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartcache",
|
"name": "@pushrocks/smartcache",
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "cache things in smart ways",
|
"description": "cache things in smart ways",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
@@ -8,7 +8,7 @@ export class SmartCache {
|
|||||||
let callStack: string = new plugins.smarterror.SmartError('').cleanFullStack;
|
let callStack: string = new plugins.smarterror.SmartError('').cleanFullStack;
|
||||||
let callHash = plugins.nodehash.sha256FromStringSync(callStack);
|
let callHash = plugins.nodehash.sha256FromStringSync(callStack);
|
||||||
|
|
||||||
console.log(callHash);
|
// console.log(callHash);
|
||||||
if (
|
if (
|
||||||
this._cacheManager.cacheExists(callHash) &&
|
this._cacheManager.cacheExists(callHash) &&
|
||||||
(await this._cacheManager.waitForCacheReady(callHash)) &&
|
(await this._cacheManager.waitForCacheReady(callHash)) &&
|
||||||
|
Reference in New Issue
Block a user