{"id":37192588,"url":"https://github.com/m7shapan/lfu-redis","last_synced_at":"2026-01-14T22:20:51.184Z","repository":{"id":57576042,"uuid":"356721991","full_name":"m7shapan/lfu-redis","owner":"m7shapan","description":"LFU Redis implements LFU Cache algorithm using Redis as data storage","archived":false,"fork":false,"pushed_at":"2021-04-11T01:02:46.000Z","size":7,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T10:16:57.799Z","etag":null,"topics":["cache","lfu-cache","redis"],"latest_commit_sha":null,"homepage":"","language":"Go","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/m7shapan.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":"2021-04-10T23:33:24.000Z","updated_at":"2022-11-10T09:31:54.000Z","dependencies_parsed_at":"2022-08-28T21:11:44.235Z","dependency_job_id":null,"html_url":"https://github.com/m7shapan/lfu-redis","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/m7shapan/lfu-redis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m7shapan%2Flfu-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m7shapan%2Flfu-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m7shapan%2Flfu-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m7shapan%2Flfu-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m7shapan","download_url":"https://codeload.github.com/m7shapan/lfu-redis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m7shapan%2Flfu-redis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28436283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T21:32:52.117Z","status":"ssl_error","status_checked_at":"2026-01-14T21:32:33.442Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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","redis"],"created_at":"2026-01-14T22:20:50.640Z","updated_at":"2026-01-14T22:20:51.159Z","avatar_url":"https://github.com/m7shapan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LFU Redis cache library for Golang\nLFU Redis implements LFU Cache algorithm using Redis as data storage\n\nLFU Redis Package gives you control over Cache Capacity in case you're using multipurpose Redis instance and avoid using eviction policy\n\n## Installation \n```bash\ngo get -u github.com/m7shapan/lfu-redis\n```\n\n## Quickstart\n```go\npackage lfu_test\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/go-redis/redis/v8\"\n\t\"github.com/m7shapan/lfu-redis\"\n)\n\nfunc ExampleUsage() {\n\tredisClient := redis.NewClient(\u0026redis.Options{})\n\n\tcache := lfu.New(10000, redisClient)\n\n\terr := cache.Put(\"key\", \"value\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tvalue, err := cache.Get(\"key\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Println(value)\n\t// Output: value\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm7shapan%2Flfu-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm7shapan%2Flfu-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm7shapan%2Flfu-redis/lists"}