{"id":20517186,"url":"https://github.com/iprit/lru","last_synced_at":"2026-04-20T02:05:20.835Z","repository":{"id":73267789,"uuid":"195674547","full_name":"IPRIT/lru","owner":"IPRIT","description":"A simple zero-dependency JavaScript O(1) LRU cache","archived":false,"fork":false,"pushed_at":"2019-07-07T17:05:57.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-25T15:21:47.178Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IPRIT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-07T16:39:27.000Z","updated_at":"2019-10-31T20:38:51.000Z","dependencies_parsed_at":"2023-02-26T11:30:50.058Z","dependency_job_id":null,"html_url":"https://github.com/IPRIT/lru","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"ae4edd4ee763e7e74daf200adda10f251af1ca88"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IPRIT%2Flru","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IPRIT%2Flru/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IPRIT%2Flru/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IPRIT%2Flru/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IPRIT","download_url":"https://codeload.github.com/IPRIT/lru/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242120913,"owners_count":20075012,"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":[],"created_at":"2024-11-15T21:34:15.446Z","updated_at":"2026-04-20T02:05:20.807Z","avatar_url":"https://github.com/IPRIT.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A simple zero-dependency JavaScript O(1) LRU cache\n\n```js\nconst LRU = require( 'lru-simple' );\n\nconst lru = new LRU( 2 ); // 2 - max cache size\n\nlru.add('a', 1);\nlru.add('b', { test: 2 });\nlru.add('c', 3);\n\nlru.get('a'); // undefined (expired)\nlru.get('b'); // { test: 2 }\nlru.get('c'); // 3\n\nlru.add('b', 4); // updates 'b' value\nlru.get('b'); // 4\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiprit%2Flru","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiprit%2Flru","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiprit%2Flru/lists"}