An in-memory LRU back-end for Keyv.
npm install keyv-nullThis project is part of the Keyv suite.
In order to use LRU as your store in Keyv you will need to:
Install this module in your project:
npm install keyv-null
This module is based on the tiny-lru
module. This is one of the best performing libraries for LRU storages.
Create your Keyv object by executing:
``js``
const options = {
max: 1000,
notify: false,
ttl: 0,
expire: 0,
};
const keyvNull = new KeyvNull(options);
See tiny-lru to learn about the
available options.
keyv-null is MIT licensed.