
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Implements an LRU cache.
var lruly = require('lruly');
var cache = lruly();
cache.add('foo', 'hello world');
$ npm install -g lruly
$ component install cfddream/lruly
Create the LRU cache and set maxEntries
,
if maxEntries
is zero, the cache has no limit:
var cache = lruly(8964);
Add a entiry:
cache.add('module', { version: '0.0.1', name: 'lruly' });
Get the entry's value:
cache.get('module'); // { version: '0.0.1', name: 'lruly' }
Remove the entry by key:
cache.on('evicted', function (key, value) { /* do something */ });
cache.remove('module');
Get the number of entries in the cache:
cache.len();
Clean the cache:
cache.clean();
To run the test suite first invoke the following command within the repo, installing the development dependencies:
$ npm install
then run the tests:
$ make test
FAQs
lruly implements an LRU cache.
We found that lruly demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.