{"id":25842759,"url":"https://github.com/nir3x/filecache","last_synced_at":"2026-06-12T15:31:02.647Z","repository":{"id":220063180,"uuid":"749012480","full_name":"NIR3X/filecache","owner":"NIR3X","description":"FileCache - Efficient Go File Caching","archived":false,"fork":false,"pushed_at":"2024-02-16T04:02:42.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-27T09:35:23.060Z","etag":null,"topics":["caching","file-cache","file-management","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NIR3X.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-01-27T10:25:29.000Z","updated_at":"2024-02-18T07:46:10.000Z","dependencies_parsed_at":"2024-02-06T23:30:44.924Z","dependency_job_id":null,"html_url":"https://github.com/NIR3X/filecache","commit_stats":null,"previous_names":["nir3x/filecache"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NIR3X/filecache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NIR3X%2Ffilecache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NIR3X%2Ffilecache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NIR3X%2Ffilecache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NIR3X%2Ffilecache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NIR3X","download_url":"https://codeload.github.com/NIR3X/filecache/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NIR3X%2Ffilecache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34251774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["caching","file-cache","file-management","go","golang"],"created_at":"2025-03-01T06:31:36.377Z","updated_at":"2026-06-12T15:31:02.621Z","avatar_url":"https://github.com/NIR3X.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FileCache - Efficient Go File Caching\n\nFileCache is a Go module that provides a simple file caching mechanism. It allows you to efficiently manage and retrieve files, with the option to cache them in memory or use a streaming approach for large files.\n\n## Features\n\n- In-memory caching of small files.\n- Streaming for large files to avoid excessive memory usage.\n- Efficient file updates and deletions.\n\n## Installation\n\n```bash\ngo get -u github.com/NIR3X/filecache\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/NIR3X/filecache\"\n)\n\nfunc main() {\n\t// Create a new FileCache instance with a specified maximum cache size\n\tf := filecache.NewFileCache(2 * 1024 * 1024)\n\n\t// Update the cache with a file\n\terr := f.Update(\"/path/to/your/file.txt\")\n\tif err != nil {\n\t\tfmt.Println(\"Error:\", err)\n\t\treturn\n\t}\n\n\t// Get a reader for the file from the cache\n\treader, writer, err := f.Get(\"/path/to/your/file.txt\")\n\tif err != nil {\n\t\tfmt.Println(\"Error:\", err)\n\t\treturn\n\t}\n\n\t// Use the reader to read the file content\n\n\t// Remember to close the writer if it's not nil\n\n\t// ...\n\n\t// Delete a file from the cache\n\tf.Delete(\"/path/to/your/file.txt\")\n}\n```\n\n## License\n\n[![GNU AGPLv3 Image](https://www.gnu.org/graphics/agplv3-155x51.png)](https://www.gnu.org/licenses/agpl-3.0.html)\n\nThis program is Free Software: You can use, study share and improve it at your\nwill. Specifically you can redistribute and/or modify it under the terms of the\n[GNU Affero General Public License](https://www.gnu.org/licenses/agpl-3.0.html) as\npublished by the Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnir3x%2Ffilecache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnir3x%2Ffilecache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnir3x%2Ffilecache/lists"}