{"id":17766692,"url":"https://github.com/floatdrop/fifo","last_synced_at":"2025-07-09T22:42:28.141Z","repository":{"id":42631677,"uuid":"474914527","full_name":"floatdrop/fifo","owner":"floatdrop","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-30T08:27:08.000Z","size":9,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-14T01:31:43.681Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/floatdrop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-28T08:35:48.000Z","updated_at":"2023-09-02T19:05:25.000Z","dependencies_parsed_at":"2022-08-26T14:31:25.275Z","dependency_job_id":null,"html_url":"https://github.com/floatdrop/fifo","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Ffifo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Ffifo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Ffifo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Ffifo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/floatdrop","download_url":"https://codeload.github.com/floatdrop/fifo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246651511,"owners_count":20811991,"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-26T20:34:19.032Z","updated_at":"2025-04-01T13:45:24.376Z","avatar_url":"https://github.com/floatdrop.png","language":"Go","readme":"# fifo\n[![Go Reference](https://pkg.go.dev/badge/github.com/floatdrop/fifo.svg)](https://pkg.go.dev/github.com/floatdrop/fifo)\n[![CI](https://github.com/floatdrop/fifo/actions/workflows/ci.yml/badge.svg)](https://github.com/floatdrop/fifo/actions/workflows/ci.yml)\n![Coverage](https://img.shields.io/badge/Coverage-100.0%25-brightgreen)\n[![Go Report Card](https://goreportcard.com/badge/github.com/floatdrop/fifo)](https://goreportcard.com/report/github.com/floatdrop/fifo)\n\nThread safe GoLang fixed size FIFO with O(1) `Get`.\n\n## Example\n\n```go\nimport (\n\t\"fmt\"\n\n\t\"github.com/floatdrop/fifo\"\n)\n\nfunc main() {\n\tcache := fifo.New[string, int](256)\n\n\tcache.Push(\"Hello\", 5)\n\n\tif e := cache.Get(\"Hello\"); e != nil {\n\t\tfmt.Println(*e)\n\t\t// Output: 5\n\t}\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Ffifo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloatdrop%2Ffifo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Ffifo/lists"}