🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

cache-io

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cache-io - npm Package Compare versions

Comparing version

to
1.0.5

10

index.js

@@ -68,2 +68,6 @@ 'use strict';

params.expires *= 1000;
if (typeof params.value === 'function') {
params.value = params.value();
}

@@ -91,3 +95,3 @@ var store = this.storage[key] = {

*/
get (key,params) {
get (key,params = {}) {
if (typeof key === 'object') {

@@ -112,2 +116,6 @@ params = key;

}
if (!('value' in params)) {
return null;
}

@@ -114,0 +122,0 @@ return this.set(key,params);

2

package.json
{
"name": "cache-io",
"version": "1.0.4",
"version": "1.0.5",
"description": "Simple memory cache for node js",

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

@@ -69,2 +69,4 @@ [![Logo cache-io](https://github.com/negezor/cache-io/blob/master/LogoCacheIo.png?raw=true)](https://www.npmjs.com/package/cache-io)

Если передать функцию вызывается при необходимости установить кэш
##### expires

@@ -71,0 +73,0 @@ Тип: `integer`