Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/e0ipso/keyv-null

A null pattern implementation of Keyv
https://github.com/e0ipso/keyv-null

Last synced: 6 days ago
JSON representation

A null pattern implementation of Keyv

Awesome Lists containing this project

README

        

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:

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

Contributors

Contributors




Mateu Aguiló Bosch


License


keyv-null is MIT licensed.