You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

lru-cache-node

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lru-cache-node - npm Package Compare versions

Comparing version

to
1.1.0

LICENSE

8

package.json
{
"name": "lru-cache-node",
"version": "1.0.1",
"version": "1.1.0",
"description": "A lighting fast cache manager for node with least-recently-used policy.",
"main": "src/index.js",
"scripts": {
"test": "ava -s"
"test": "nyc ava",
"report-coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov"
},

@@ -21,3 +22,4 @@ "repository": {

"devDependencies": {
"ava": "1.0.0-beta.4"
"ava": "1.0.0-beta.4",
"nyc": "^15.0.0"
},

@@ -24,0 +26,0 @@ "files": [

@@ -1,2 +0,5 @@

# lru-cache-node
# lru-cache-node
[![Build Status](https://travis-ci.org/arbazsiddiqui/lru-cache-node.svg?branch=master)](https://travis-ci.org/arbazsiddiqui/lru-cache-node)
[![codecov](https://codecov.io/gh/arbazsiddiqui/lru-cache-node/branch/master/graph/badge.svg)](https://codecov.io/gh/arbazsiddiqui/lru-cache-node)
[![npm](https://img.shields.io/npm/dt/lru-cache-node.svg)](https://npmjs.com/package/lru-cache-node)

@@ -125,2 +128,6 @@ > A lighting fast cache manager for node with least-recently-used policy.

### has(key)
Alias for `contains` function.
### getSize()

@@ -152,3 +159,3 @@

Takes a function and iterates over all the keys in the cache, in order of recent-ness. Callback takes `key`, `value` and `index` as params.
Takes a function and iterates over all the keys in the cache, in order of recentness. Callback takes `key`, `value` and `index` as params.
```js

@@ -167,2 +174,2 @@ let cache = new Cache();

*/
```
```

@@ -104,2 +104,6 @@ class Cache {

has(key) {
return this.contains(key);
}
forEach(callback) {

@@ -155,2 +159,2 @@ let node = this.head;

module.exports = Cache;
module.exports = Cache;