{"id":20135961,"url":"https://github.com/scacap/fifocache","last_synced_at":"2025-07-19T20:38:23.476Z","repository":{"id":91171259,"uuid":"121179802","full_name":"ScaCap/FIFOCache","owner":"ScaCap","description":"A first-in first-out file cache that uses your app's internal cache directory","archived":false,"fork":false,"pushed_at":"2024-02-06T07:55:24.000Z","size":149,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-01-13T09:38:09.588Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ScaCap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"publiccode":null,"codemeta":null}},"created_at":"2018-02-11T23:56:32.000Z","updated_at":"2023-12-21T15:05:21.000Z","dependencies_parsed_at":"2023-12-19T21:31:20.942Z","dependency_job_id":"3b71d31e-5f39-4d3e-9731-c5f68df8db19","html_url":"https://github.com/ScaCap/FIFOCache","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaCap%2FFIFOCache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaCap%2FFIFOCache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaCap%2FFIFOCache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaCap%2FFIFOCache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScaCap","download_url":"https://codeload.github.com/ScaCap/FIFOCache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241582522,"owners_count":19985846,"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-11-13T21:17:10.459Z","updated_at":"2025-03-02T22:41:38.535Z","avatar_url":"https://github.com/ScaCap.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FIFOCache\n\nA first-in first-out file cache that uses your app's internal cache directory. More details [here](https://engineering.scalable.capital/2018/02/20/fifocache-a-self-managing-cache-for-android.html).\n\n## Usage\n\n```\npublic class MainActivity extends AppCompatActivity {\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        //...\n        FIFOCache cache = new FIFOCache(this);\n\t\t\n        InputStream inputStream = getAssets().open(\"sample.pdf\");\n        long size = getAssets().openFd(\"sample.pdf\").getLength();\n        cache.cache(inputStream, \"sample\", size);\n        //...\n        File cachedFile = cache.retrieve(\"sample\");\n    }\n}\n```\n\n## Installation\n\n``` groovy\nrepositories {\n    maven { url \"https://jitpack.io\" }\n}\n\n\ndependencies {\n    implementation \"com.github.ScaCap:FIFOCache:1.0.0\"\n}\n```\n\n## License\n\nFIFOCache is Open Source software released under the [Apache 2.0 license](http://www.apache.org/licenses/LICENSE-2.0.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscacap%2Ffifocache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscacap%2Ffifocache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscacap%2Ffifocache/lists"}