Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/e0ipso/keyv-null
- Owner: e0ipso
- Created: 2018-07-13T15:35:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T07:44:00.000Z (almost 2 years ago)
- Last Synced: 2024-11-28T19:18:22.187Z (29 days ago)
- Language: JavaScript
- Size: 1.91 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Keyv - Null
This project is part of the Keyv suite.
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.