node-persist
Advanced tools
Comparing version 2.0.7 to 2.0.8
{ | ||
"name": "node-persist", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"description": "Super-easy (and fast) persistent data structures in Node.js, modeled after HTML5 localStorage", | ||
@@ -5,0 +5,0 @@ "main": "./src/node-persist.js", |
@@ -27,7 +27,5 @@ # node-persist | ||
//you must first call storage.initSync | ||
storage.init( /* options ... */ ); | ||
//then start using it | ||
storage.setItem('name','yourname') | ||
storage.init( /* options ... */ ).then(function() { | ||
//then start using it | ||
storage.setItem('name','yourname') | ||
.then(function() { | ||
@@ -41,4 +39,4 @@ | ||
}) | ||
}); | ||
``` | ||
@@ -45,0 +43,0 @@ |
@@ -668,2 +668,3 @@ /* | ||
this._persistInterval = setInterval(persistFunction || this.persist.bind(this), this.options.interval); | ||
this._persistInterval.unref(); | ||
}, | ||
@@ -678,2 +679,3 @@ | ||
this._expiredKeysInterval = setInterval(this.removeExpiredItems.bind(this), this.options.expiredInterval); | ||
this._expiredKeysInterval.unref(); | ||
}, | ||
@@ -680,0 +682,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49846
1014
294