Comparing version 4.2.3 to 4.3.0
@@ -0,1 +1,7 @@ | ||
### 4.3.0 | ||
* feat: expose `cache.unset` - **[@fdegiuli](https://github.com/fdegiuli)** [#31](https://github.com/groupon/node-cached/pull/31) | ||
- [`4e296af`](https://github.com/groupon/node-cached/commit/4e296afed9ce305ed27f94fb9d0e011a01d0bd87) **feat:** expose `cache.unset` | ||
### 4.2.3 | ||
@@ -2,0 +8,0 @@ |
@@ -130,2 +130,12 @@ /* | ||
Cache.prototype.unset = function unset(rawKey, cb) { | ||
var key = this.applyPrefix(rawKey); | ||
return this._unset(key).nodeify(cb); | ||
}; | ||
Cache.prototype._unset = function _unset(key) { | ||
return this._applyTimeout(this.backend.unset(key)); | ||
}; | ||
module.exports = Cache; |
{ | ||
"name": "cached", | ||
"version": "4.2.3", | ||
"version": "4.3.0", | ||
"description": "Simple access to a cache", | ||
@@ -5,0 +5,0 @@ "license": "BSD-3-Clause", |
@@ -205,1 +205,6 @@ # cached | ||
Which should be a smaller number than the number of concurrent requests in most cases. | ||
### Cache.unset(key, cb) -> Promise | ||
Cache delete operation. | ||
`key` has to be a string. |
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
34976
559
210