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
- Host: GitHub
- URL: https://github.com/exbotanical/tenure
- Owner: exbotanical
- License: mit
- Created: 2021-06-05T06:09:32.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-13T06:10:02.000Z (about 4 years ago)
- Last Synced: 2025-02-10T07:17:03.959Z (5 months ago)
- Topics: cache-policy, cache-replacement, doubly-linked-list, hashmap, in-memory-caching, lru-cache, lru-replacement-algorithm
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/tenure
- Size: 376 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.hbs
- License: LICENSE
Awesome Lists containing this project
README
{{optionSet "global-index-format" "dl"~}}
[](https://travis-ci.com/MatthewZito/tenure)
[](https://badge.fury.io/js/tenure)
[](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

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