lrused

0.0.1 • Public • Published

Description

A simple and efficient LRU cache for node.js.

Installation

npm install lrused

API

  • (constructor)(< integer >capacity) - Creates and returns a new LRU cache instance with the given maximum capacity.

  • get(< mixed >key) - mixed - Returns the cached data identified by key and refreshes the cache entry.

  • set(< mixed >key, < mixed >value) - (void) - Adds or updates and refreshes the cache entry identified by key with the given value.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    0

Package Sidebar

Install

npm i lrused

Weekly Downloads

0

Version

0.0.1

License

none

Unpacked Size

3.81 kB

Total Files

7

Last publish

Collaborators

  • mscdex