{"id":16834672,"url":"https://github.com/mscdex/lrused","last_synced_at":"2025-04-11T04:35:01.469Z","repository":{"id":227584332,"uuid":"771864786","full_name":"mscdex/lrused","owner":"mscdex","description":"An LRU cache for node.js","archived":false,"fork":false,"pushed_at":"2024-03-14T05:03:18.000Z","size":4,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-18T09:04:52.739Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mscdex.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-14T05:01:58.000Z","updated_at":"2024-03-18T12:13:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"8cc148ea-e765-4153-931e-36f857e1a988","html_url":"https://github.com/mscdex/lrused","commit_stats":null,"previous_names":["mscdex/lrused"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscdex%2Flrused","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscdex%2Flrused/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscdex%2Flrused/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscdex%2Flrused/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mscdex","download_url":"https://codeload.github.com/mscdex/lrused/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247726589,"owners_count":20985935,"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-10-13T12:07:18.766Z","updated_at":"2025-04-11T04:35:01.437Z","avatar_url":"https://github.com/mscdex.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\n\nA simple and efficient LRU cache for [node.js](http://nodejs.org/).\n\n## Installation\n\n    npm install lrused\n\n## API\n\n* **(constructor)**(\u003c _integer_ \u003ecapacity) - Creates and returns a new LRU cache instance with the given maximum capacity.\n\n* **get**(\u003c _mixed_ \u003ekey) - _mixed_ - Returns the cached data identified by `key` and refreshes the cache entry.\n\n* **set**(\u003c _mixed_ \u003ekey, \u003c _mixed_ \u003evalue) - _(void)_ - Adds or updates and refreshes the cache entry identified by `key` with the given `value`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmscdex%2Flrused","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmscdex%2Flrused","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmscdex%2Flrused/lists"}