{"id":17383307,"url":"https://github.com/lamerman/cpp-lru-cache","last_synced_at":"2025-04-06T03:10:30.337Z","repository":{"id":44729887,"uuid":"10819799","full_name":"lamerman/cpp-lru-cache","owner":"lamerman","description":"Simple and reliable LRU cache for c++ based on hashmap and linkedlist","archived":false,"fork":false,"pushed_at":"2020-07-29T12:53:18.000Z","size":244,"stargazers_count":374,"open_issues_count":9,"forks_count":111,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-03-30T02:07:36.310Z","etag":null,"topics":["c-plus-plus","lru-cache"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lamerman.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":"2013-06-20T12:57:51.000Z","updated_at":"2025-03-28T04:54:41.000Z","dependencies_parsed_at":"2022-09-23T04:24:51.847Z","dependency_job_id":null,"html_url":"https://github.com/lamerman/cpp-lru-cache","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/lamerman%2Fcpp-lru-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamerman%2Fcpp-lru-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamerman%2Fcpp-lru-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamerman%2Fcpp-lru-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lamerman","download_url":"https://codeload.github.com/lamerman/cpp-lru-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247427006,"owners_count":20937201,"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":["c-plus-plus","lru-cache"],"created_at":"2024-10-16T07:41:14.597Z","updated_at":"2025-04-06T03:10:30.293Z","avatar_url":"https://github.com/lamerman.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"cpp-lru-cache\n=============\n\nSimple and reliable LRU (Least Recently Used) cache for c++ based on hashmap and linkedlist. The library is header only, simple test and example are included.\nIt includes standard components and very little own logics that guarantees reliability.\n\nExample:\n\n```\n/**Creates cache with maximum size of three. When the \n   size in achieved every next element will replace the \n   least recently used one */\ncache::lru_cache\u003cstd::string, std::string\u003e cache(3);\n\ncache.put(\"one\", \"one\");\ncache.put(\"two\", \"two\");\n\nconst std::string\u0026 from_cache = cache.get(\"two\")\n\n```\n\nHow to run tests:\n\n```\nmkdir build\ncd build\ncmake ..\nmake check\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamerman%2Fcpp-lru-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flamerman%2Fcpp-lru-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamerman%2Fcpp-lru-cache/lists"}