{"id":15406795,"url":"https://github.com/dannyben/filecache","last_synced_at":"2025-12-30T16:39:13.423Z","repository":{"id":21684970,"uuid":"25006217","full_name":"DannyBen/filecache","owner":"DannyBen","description":"Go File Cache","archived":false,"fork":false,"pushed_at":"2014-10-18T17:50:30.000Z","size":160,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-19T15:53:36.125Z","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/DannyBen.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":"2014-10-09T19:58:55.000Z","updated_at":"2023-07-03T18:03:43.000Z","dependencies_parsed_at":"2022-08-18T06:21:45.822Z","dependency_job_id":null,"html_url":"https://github.com/DannyBen/filecache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DannyBen%2Ffilecache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DannyBen%2Ffilecache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DannyBen%2Ffilecache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DannyBen%2Ffilecache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DannyBen","download_url":"https://codeload.github.com/DannyBen/filecache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241367915,"owners_count":19951444,"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-01T16:25:25.298Z","updated_at":"2025-12-30T16:39:13.392Z","avatar_url":"https://github.com/DannyBen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Go File Cache\n=============\n\n[![Build Status](https://travis-ci.org/DannyBen/filecache.svg?branch=master)](https://travis-ci.org/DannyBen/filecache) [![GoDoc](https://godoc.org/github.com/DannyBen/filecache?status.png)](http://godoc.org/github.com/DannyBen/filecache)\n\n\nThis package provides easy to use, file system cache functions.\n\nFull documentation is at:\n[godoc.org/github.com/DannyBen/filecache](http://godoc.org/github.com/DannyBen/filecache)\n\nInstall\n-------\n\n\t$ go get github.com/DannyBen/filecache\n\nUsage\n-----\n\nGet the cache handler and set a cache directory and the requested\ncache life, in minutes:\n\t\n\thandler := filecache.Handler{\"./cache\", 60}\n\nStore data in the cache by providing a string key to the `Set` method\nand `[]byte` data. The key's md5 checksum will be used as the filename.\n\n\tdata := []byte(\"Joey doesn't share food\")\n\thandler.Set(\"testkey\", data)\n\nRetrieve data from the cache:\n\t\n\tr := handler.Get(\"testkey\")\n\tif r == nil {\n\t\tfmt.Println(\"Cache has expired\")\n\t} else  {\n\t\tfmt.Println(string(r))\n\t}\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdannyben%2Ffilecache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdannyben%2Ffilecache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdannyben%2Ffilecache/lists"}