Skip to content

Simple LRUCache Implementation in JavaScript (<300 Bytes) and TypeScript

License

Notifications You must be signed in to change notification settings

pujansrt/lrucache-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LRU Cache in JS

Very Simple LRUCache Implementation in JavaScript and TypeScript

Use

const cache = new LRUCache(3);
cache.add(1);
cache.add(2);
cache.add(3);
cache.add(4);
console.log(cache.getItems()); // [2, 3, 4]

About

Simple LRUCache Implementation in JavaScript (<300 Bytes) and TypeScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published