-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.hbs
35 lines (22 loc) · 951 Bytes
/
README.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{{optionSet "global-index-format" "dl"~}}
[![Build
Status](https://travis-ci.com/MatthewZito/tenure.svg?branch=master)](https://travis-ci.com/MatthewZito/tenure)
[![npm version](https://badge.fury.io/js/tenure.svg)](https://badge.fury.io/js/tenure)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
# Tenure | Manageable LRU caching
`Tenure` is a manageable LRU cache instance that uses hashmap lookups and an Open Doubly Linked List to enact the
[Least-Recently Used algorithm](https://en.wikipedia.org/wiki/Cache_replacement_policies#Least_recently_used_(LRU))
## Algorithm
![LRU Cache Algorithm](https://github.com/matthewzito/tenure/blob/master/doc/lru.png)
## Installation
```bash
npm install tenure
```
OR
```bash
yarn add tenure
```
## Supported Environments
`Tenure` currently supports UMD, CommonJS (node versions >= 10), and ESM build-targets
## API Reference
{{>main}}