An open API service indexing awesome lists of open source software.

https://github.com/exbotanical/tenure

Manageable LRU in-memory cache instance for fast lookups and configurable eviction policies
https://github.com/exbotanical/tenure

cache-policy cache-replacement doubly-linked-list hashmap in-memory-caching lru-cache lru-replacement-algorithm

Last synced: 4 months ago
JSON representation

Manageable LRU in-memory cache instance for fast lookups and configurable eviction policies

Awesome Lists containing this project

README

        

{{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}}