Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ttl-mem-cache

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ttl-mem-cache - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

5

lib/cache.js

@@ -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) {

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc