Skip to content

mscdex/lrused

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An LRU cache for node.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published