ttl-mem-cache
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -91,2 +91,7 @@ 'use strict'; | ||
clear() { | ||
this.store.clear(); | ||
this.emit('clear'); | ||
} | ||
_write(obj, enc, next) { | ||
@@ -93,0 +98,0 @@ if (obj.key && obj.value) { |
{ | ||
"name": "ttl-mem-cache", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "A in memory time to live cache with streaming support.", | ||
@@ -5,0 +5,0 @@ "main": "lib/cache.js", |
@@ -176,3 +176,9 @@ # ttl-mem-cache | ||
### .clear() | ||
Clears the entire cache. All items will be deleted. | ||
## Events | ||
@@ -213,4 +219,8 @@ | ||
### clear | ||
When the cache is cleared. | ||
## Streams | ||
@@ -217,0 +227,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
26677
170
350