{"id":16439936,"url":"https://github.com/meckodo/lfu-o1","last_synced_at":"2025-10-27T03:31:04.408Z","repository":{"id":57290059,"uuid":"119232274","full_name":"MeCKodo/LFU-O1","owner":"MeCKodo","description":"implement LFU O(1) time","archived":false,"fork":false,"pushed_at":"2018-01-30T04:00:09.000Z","size":125,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T01:41:30.428Z","etag":null,"topics":["cache","cachemanager","lfu"],"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/MeCKodo.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}},"created_at":"2018-01-28T05:55:25.000Z","updated_at":"2024-10-04T14:32:59.000Z","dependencies_parsed_at":"2022-08-25T05:20:15.694Z","dependency_job_id":null,"html_url":"https://github.com/MeCKodo/LFU-O1","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeCKodo%2FLFU-O1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeCKodo%2FLFU-O1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeCKodo%2FLFU-O1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MeCKodo%2FLFU-O1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MeCKodo","download_url":"https://codeload.github.com/MeCKodo/LFU-O1/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238431543,"owners_count":19471408,"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","cachemanager","lfu"],"created_at":"2024-10-11T09:10:45.524Z","updated_at":"2025-10-27T03:31:04.050Z","avatar_url":"https://github.com/MeCKodo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LFU-O1\n[![CircleCI](https://img.shields.io/circleci/project/github/MeCKodo/LFU-O1.svg)](https://circleci.com/gh/MeCKodo/wechat-colorpicker) [![npm](https://img.shields.io/npm/dt/lfu-o1.svg)](https://www.npmjs.com/package/lfu-o1) [![npm](https://img.shields.io/npm/v/lfu-o1.svg)](https://www.npmjs.com/package/lfu-o1)\n\u003e Implement LFU O(1) time\n\n## Install\n\n\u003e npm install lfu-o1 -S\n\n## How to use\n\n```javascript\nconst cache = new LFUCache(2);\n\ncache.put(1, 1);\ncache.put(2, 2);\n\ncache.get(1); // 1\ncache.get(2); // 2\ncache.get(2); // 2\n\ncache.put(3, 3); // remove 1\n\ncache.get(1); // -1\ncache.get(3); // 3\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeckodo%2Flfu-o1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeckodo%2Flfu-o1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeckodo%2Flfu-o1/lists"}