Skip to content

e0ipso/keyv-null

Repository files navigation

Keyv - Null Keyv logo

This project is part of the Keyv suite.

Travis Coverage

Installation

In order to use Keyv NULL as your store in Keyv you will need to:

Install

Install this module in your project:


npm install keyv-null

Features

This module is useful when you want to skip caching. You can use `KeyvNull` in your local development and swap it out in production. This will allow you to keep the same objects without actually caching.

Usage

Create your Keyv object by executing:

const keyv = process.env.NODE_ENV === 'production'
  ? new KeyvLru(options)
  : new KeyvNull(options);

Contributors

Contributors
Mateu Aguiló Bosch

License

keyv-null is MIT licensed.