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

memoize-cache

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

memoize-cache - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

10

cache.js

@@ -14,3 +14,3 @@ var md5omatic = require('md5-o-matic');

this._getCacheKey = key || function () { return '_default'; };
this._taskToComplete = [];
this._tasksToComplete = [];
}

@@ -29,3 +29,3 @@

var task = this.cacheManager.setAsync(k, output);
this._taskToComplete.push(task);
this._tasksToComplete.push(task);
};

@@ -37,5 +37,7 @@

Promise.all(this._taskToComplete)
var tasksToComplete = this._tasksToComplete;
this._tasksToComplete = [];
Promise.all(tasksToComplete)
.then(function () {
that._taskToComplete = [];
return that.cacheManager.getAsync(key);

@@ -42,0 +44,0 @@ })

2

package.json
{
"name": "memoize-cache",
"version": "1.0.0",
"version": "1.0.1",
"description": "A cache support for memoized functions",

@@ -5,0 +5,0 @@ "main": "index.js",

memoize-cache
=============
[![Build Status](https://travis-ci.org/sithmel/memoize-cache.svg?branch=master)](https://travis-ci.org/sithmel/memoize-cache)
A configurable cache support for functions (https://www.npmjs.com/package/async-deco). It contains 2 different implementations.

@@ -4,0 +6,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