{"id":13411800,"url":"https://github.com/yuseferi/gocache","last_synced_at":"2026-01-24T15:37:02.184Z","repository":{"id":174058926,"uuid":"651704901","full_name":"yuseferi/gocache","owner":"yuseferi","description":"Gocache is an in-memory key:value store/cache (similar to Memcached) library for Go, suitable for single-machine applications. it is safe with concorent go routine access.","archived":false,"fork":false,"pushed_at":"2025-12-18T15:58:46.000Z","size":29,"stargazers_count":17,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-18T16:43:26.510Z","etag":null,"topics":["cache","go-parallel-caching","gocache","golang","parallel-cache"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yuseferi.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-09T21:33:06.000Z","updated_at":"2026-01-04T20:58:45.000Z","dependencies_parsed_at":"2023-12-21T01:11:34.627Z","dependency_job_id":"29577cbd-f2d3-4f0a-a75a-fb7665ddc799","html_url":"https://github.com/yuseferi/gocache","commit_stats":null,"previous_names":["yuseferi/gocache"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/yuseferi/gocache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuseferi%2Fgocache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuseferi%2Fgocache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuseferi%2Fgocache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuseferi%2Fgocache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuseferi","download_url":"https://codeload.github.com/yuseferi/gocache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuseferi%2Fgocache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28730323,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"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","go-parallel-caching","gocache","golang","parallel-cache"],"created_at":"2024-07-30T20:01:17.048Z","updated_at":"2026-01-24T15:37:02.180Z","avatar_url":"https://github.com/yuseferi.png","language":"Go","funding_links":[],"categories":["Database","Data Integration Frameworks","数据库"],"sub_categories":["Caches","缓存"],"readme":"# gocache (basic go in-memory caching)\n[![codecov](https://codecov.io/github/yuseferi/gocache/graph/badge.svg?token=98CX2MN5XF)](https://codecov.io/github/yuseferi/gocache)\n[![CodeQL](https://github.com/yuseferi/gocache/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/yuseferi/gocache/actions/workflows/github-code-scanning/codeql)\n[![Check \u0026 Build](https://github.com/yuseferi/gocache/actions/workflows/ci.yml/badge.svg)](https://github.com/yuseferi/gocache/actions/workflows/ci.yml)\n[![License: AGPL v3](https://img.shields.io/badge/License-AGPL_v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)\n![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/yuseferi/gocache)\n\ngocache is a data race-free cache implementation in Go, providing efficient caching capabilities for your applications.\n\n#### for V1 you can read [this](https://github.com/yuseferi/gocache/tree/v1) \n### Installation\n\n```shell\n  go get -u github.com/yuseferi/gocache/v2\n```\n\n### Usage:\n\n\n```Go\ncache := gocache.NewCache[string](time.Minute * 2) // with 2 minutes interval cleaning expired items\ncache.Set(\"key\", \"value\", time.Minute) // set cache \nvalue, found := cache.Get(\"key\") // retrive cache data \ncache.Delete(\"key\") // delete specific key manually\ncache.Clear() // clear all cache items ( purge)\nsize := cache.Size() // get cache size\n```\n\n\n### Contributing\nWe strongly believe in open-source ❤️😊. Please feel free to contribute by raising issues and submitting pull requests to make gocache even better!\n\n\nReleased under the [GNU GENERAL PUBLIC LICENSE](LICENSE).\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuseferi%2Fgocache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuseferi%2Fgocache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuseferi%2Fgocache/lists"}