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

cache-conf

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-conf - npm Package Compare versions

Comparing version 0.4.1 to 0.5.0

6

index.js

@@ -22,4 +22,6 @@ 'use strict';

get(key) {
if (this.isExpired(key)) {
get(key, options) {
options = options || {};
if (options.ignoreMaxAge !== true && this.isExpired(key)) {
super.delete(key);

@@ -26,0 +28,0 @@ return;

{
"name": "cache-conf",
"version": "0.4.1",
"version": "0.5.0",
"description": "Simple cache config handling for your app or module",

@@ -42,3 +42,3 @@ "license": "MIT",

"dependencies": {
"conf": "^0.11.2",
"conf": "^0.12.0",
"pkg-up": "^1.0.0"

@@ -45,0 +45,0 @@ },

@@ -49,2 +49,15 @@ # cache-conf [![Build Status](https://travis-ci.org/SamVerschueren/cache-conf.svg?branch=master)](https://travis-ci.org/SamVerschueren/cache-conf)

#### get(key, [options])
Get an item.
##### options
###### ignoreMaxAge
Type: `boolean`<br>
Default: `false`
Get the item for the `key` provided without taking the `maxAge` of the item into account.
#### set(key, value, [options])

@@ -51,0 +64,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