{"id":36975118,"url":"https://github.com/asyncth/wtinylfu","last_synced_at":"2026-01-13T22:03:18.943Z","repository":{"id":243397415,"uuid":"497272566","full_name":"asyncth/wtinylfu","owner":"asyncth","description":"An implementation of W-TinyLFU cache in Rust","archived":false,"fork":false,"pushed_at":"2024-07-25T14:20:21.000Z","size":16,"stargazers_count":4,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-07-25T16:18:29.187Z","etag":null,"topics":["cache","lfu-cache","rust","tinylfu"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/asyncth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2022-05-28T09:30:29.000Z","updated_at":"2024-07-25T14:13:53.000Z","dependencies_parsed_at":"2024-06-08T16:16:28.180Z","dependency_job_id":null,"html_url":"https://github.com/asyncth/wtinylfu","commit_stats":null,"previous_names":["asyncth/wtinylfu"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/asyncth/wtinylfu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asyncth%2Fwtinylfu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asyncth%2Fwtinylfu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asyncth%2Fwtinylfu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asyncth%2Fwtinylfu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asyncth","download_url":"https://codeload.github.com/asyncth/wtinylfu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asyncth%2Fwtinylfu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28400626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","lfu-cache","rust","tinylfu"],"created_at":"2026-01-13T22:03:18.886Z","updated_at":"2026-01-13T22:03:18.939Z","avatar_url":"https://github.com/asyncth.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!IMPORTANT]\n\u003e Given that this library is rarely updated and is quite barebones,\n\u003e consider using [Moka](https://crates.io/crates/moka) or\n\u003e [Mini Moka](https://crates.io/crates/mini-moka) for caching. Strictly\n\u003e speaking, the README claims that these libraries do not currently\n\u003e implement W-TinyLFU, but rather use TinyLFU alone, but it probably\n\u003e should be good enough anyway.\n\n# An implementation of W-TinyLFU cache\n\nImplements W-TinyLFU cache as proposed in \"TinyLFU: A Highly Efficient\nCache Admission Policy\" paper using only safe Rust. The API of this\ncrate is meant to be similar to the API of `lru` crate.\n\n# Example usage\n\n```rust\nuse wtinylfu::WTinyLfuCache;\n\nfn main() {\n    let mut cache = WTinyLfuCache::new(2, 10);\n    cache.push(1, \"one\");\n    cache.push(2, \"two\");\n    assert_eq!(cache.get(\u00261), Some(\u0026\"one\"));\n    assert_eq!(cache.get(\u00262), Some(\u0026\"two\"));\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasyncth%2Fwtinylfu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasyncth%2Fwtinylfu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasyncth%2Fwtinylfu/lists"}