| Server IP : 185.208.173.17 / Your IP : 87.236.161.98 Web Server : Microsoft-IIS/10.0 System : Windows NT SRV8576125506 10.0 build 26100 (Windows Server 2016) AMD64 User : IUSR ( 0) PHP Version : 7.4.13 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/parsmega.nuxt/node_modules/simple-lru-cache/ |
Upload File : |
node-simple-lru-cache
=====================
It's a very simple and extremely fast lru cache for node.js.
This cache will priorize the lastest used keys over the least used keys,
so when a new key is added if the cache is full, the least used key will be removed
## Instalation
npm install simple-lru-cache
## Usage
var SimpleCache = require("simple-lru-cache")
var cache = new SimpleCache({"maxSize":1000})
//Add an Objet
cache.set("hello","world")
//Get an Object
cache.get("hello")
//Delete an Object
cache.del("hello")
//Reset cache
cache.reset()
## Tests
npm install
npm test
## Benchmark against lru-cache
make bench