{"id":25526143,"url":"https://github.com/exbotanical/tenure","last_synced_at":"2025-10-17T23:54:03.579Z","repository":{"id":57376709,"uuid":"374035132","full_name":"exbotanical/tenure","owner":"exbotanical","description":"Manageable LRU in-memory cache instance for fast lookups and configurable eviction policies","archived":false,"fork":false,"pushed_at":"2021-06-13T06:10:02.000Z","size":385,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-10T07:17:03.959Z","etag":null,"topics":["cache-policy","cache-replacement","doubly-linked-list","hashmap","in-memory-caching","lru-cache","lru-replacement-algorithm"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/tenure","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/exbotanical.png","metadata":{"files":{"readme":"README.hbs","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-05T06:09:32.000Z","updated_at":"2021-06-13T06:10:05.000Z","dependencies_parsed_at":"2022-08-29T19:41:47.885Z","dependency_job_id":null,"html_url":"https://github.com/exbotanical/tenure","commit_stats":null,"previous_names":["matthewzito/tenure"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exbotanical%2Ftenure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exbotanical%2Ftenure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exbotanical%2Ftenure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exbotanical%2Ftenure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exbotanical","download_url":"https://codeload.github.com/exbotanical/tenure/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239735258,"owners_count":19688262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cache-policy","cache-replacement","doubly-linked-list","hashmap","in-memory-caching","lru-cache","lru-replacement-algorithm"],"created_at":"2025-02-19T21:16:49.439Z","updated_at":"2025-10-17T23:54:03.515Z","avatar_url":"https://github.com/exbotanical.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"{{optionSet \"global-index-format\" \"dl\"~}}\n[![Build\nStatus](https://travis-ci.com/MatthewZito/tenure.svg?branch=master)](https://travis-ci.com/MatthewZito/tenure)\n[![npm version](https://badge.fury.io/js/tenure.svg)](https://badge.fury.io/js/tenure)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n# Tenure | Manageable LRU caching\n\n`Tenure` is a manageable LRU cache instance that uses hashmap lookups and an Open Doubly Linked List to enact the\n[Least-Recently Used algorithm](https://en.wikipedia.org/wiki/Cache_replacement_policies#Least_recently_used_(LRU))\n\n## Algorithm\n\n![LRU Cache Algorithm](https://github.com/matthewzito/tenure/blob/master/doc/lru.png)\n\n## Installation\n\n```bash\nnpm install tenure\n```\n\nOR\n\n```bash\nyarn add tenure\n```\n\n\n## Supported Environments\n\n`Tenure` currently supports UMD, CommonJS (node versions \u003e= 10), and ESM build-targets\n\n## API Reference\n\n{{\u003emain}}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexbotanical%2Ftenure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexbotanical%2Ftenure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexbotanical%2Ftenure/lists"}