{"id":13397004,"url":"https://github.com/akyoto/cache","last_synced_at":"2025-04-07T10:22:34.097Z","repository":{"id":51601895,"uuid":"186131639","full_name":"akyoto/cache","owner":"akyoto","description":":handbag: Cache arbitrary data with an expiration time.","archived":false,"fork":false,"pushed_at":"2022-11-20T10:03:19.000Z","size":21,"stargazers_count":186,"open_issues_count":0,"forks_count":22,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-24T18:12:52.566Z","etag":null,"topics":["cache","go"],"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/akyoto.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":"2019-05-11T12:42:45.000Z","updated_at":"2024-11-07T20:52:06.000Z","dependencies_parsed_at":"2022-08-22T00:20:20.532Z","dependency_job_id":null,"html_url":"https://github.com/akyoto/cache","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akyoto%2Fcache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akyoto%2Fcache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akyoto%2Fcache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akyoto%2Fcache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akyoto","download_url":"https://codeload.github.com/akyoto/cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247631942,"owners_count":20970086,"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","go"],"created_at":"2024-07-30T18:01:09.135Z","updated_at":"2025-04-07T10:22:34.059Z","avatar_url":"https://github.com/akyoto.png","language":"Go","funding_links":[],"categories":["Go","Database","Generators","数据库","Uncategorized","数据库  `go语言实现的数据库`"],"sub_categories":["Caches","Advanced Console UIs","缓存","标准 CLI"],"readme":"# cache\n\n[![Godoc][godoc-image]][godoc-url]\n[![Report][report-image]][report-url]\n[![Tests][tests-image]][tests-url]\n[![Coverage][coverage-image]][coverage-url]\n[![Sponsor][sponsor-image]][sponsor-url]\n\nCache arbitrary data with an expiration time.\n\n## Features\n\n* 0 dependencies\n* About 100 lines of code\n* 100% test coverage\n\n## Usage\n\n```go\n// New cache\nc := cache.New(5 * time.Minute)\n\n// Put something into the cache\nc.Set(\"a\", \"b\", 1 * time.Minute)\n\n// Read from the cache\nobj, found := c.Get(\"a\")\n\n// Convert the type\nfmt.Println(obj.(string))\n```\n\n## Benchmarks\n\n```text\nBenchmarkGet-12         300000000                3.88 ns/op            0 B/op          0 allocs/op\nBenchmarkSet-12         10000000               183 ns/op              48 B/op          2 allocs/op\nBenchmarkNew-12         10000000               112 ns/op             352 B/op          5 allocs/op\n```\n\n## Style\n\nPlease take a look at the [style guidelines](https://github.com/akyoto/quality/blob/master/STYLE.md) if you'd like to make a pull request.\n\n## Sponsors\n\n| [![Cedric Fung](https://avatars3.githubusercontent.com/u/2269238?s=70\u0026v=4)](https://github.com/cedricfung) | [![Scott Rayapoullé](https://avatars3.githubusercontent.com/u/11772084?s=70\u0026v=4)](https://github.com/soulcramer) | [![Eduard Urbach](https://avatars3.githubusercontent.com/u/438936?s=70\u0026v=4)](https://eduardurbach.com) |\n| --- | --- | --- |\n| [Cedric Fung](https://github.com/cedricfung) | [Scott Rayapoullé](https://github.com/soulcramer) | [Eduard Urbach](https://eduardurbach.com) |\n\nWant to see [your own name here?](https://github.com/users/akyoto/sponsorship)\n\n[godoc-image]: https://godoc.org/github.com/akyoto/cache?status.svg\n[godoc-url]: https://godoc.org/github.com/akyoto/cache\n[report-image]: https://goreportcard.com/badge/github.com/akyoto/cache\n[report-url]: https://goreportcard.com/report/github.com/akyoto/cache\n[tests-image]: https://cloud.drone.io/api/badges/akyoto/cache/status.svg\n[tests-url]: https://cloud.drone.io/akyoto/cache\n[coverage-image]: https://codecov.io/gh/akyoto/cache/graph/badge.svg\n[coverage-url]: https://codecov.io/gh/akyoto/cache\n[sponsor-image]: https://img.shields.io/badge/github-donate-green.svg\n[sponsor-url]: https://github.com/users/akyoto/sponsorship\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakyoto%2Fcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakyoto%2Fcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakyoto%2Fcache/lists"}