Comparing version 0.0.1 to 0.1.0
{ | ||
"name": "bluecache", | ||
"description": "lru-cache via bluebird", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"author": "AgileMD <hello@agilemd.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -7,2 +7,6 @@ bluecache | ||
<a href="http://promisesaplus.com/"> | ||
<img src="http://promisesaplus.com/assets/logo-small.png" alt="Promises/A+ logo" title="Promises/A+ 1.0 compliant" align="right" /> | ||
</a> | ||
### Motivation | ||
@@ -18,4 +22,4 @@ | ||
var options = { | ||
max: 500, | ||
maxAge: 1000 * 60 * 60 | ||
max: 500, | ||
maxAge: 1000 * 60 * 60 | ||
}; | ||
@@ -26,8 +30,8 @@ | ||
cache.set("key", "value") | ||
cache.get("key").then(function (value) { | ||
console.log("key => ", value); // "key => value" | ||
}); | ||
cache.reset(); | ||
.then(function () { | ||
return cache.get("key") | ||
}) | ||
.then(function (_value) { | ||
console.log("key => ", _value); // "key => value" | ||
}); | ||
``` | ||
@@ -34,0 +38,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
14263
148
0