{"id":18789231,"url":"https://github.com/dsiner/cache","last_synced_at":"2026-01-25T13:01:41.420Z","repository":{"id":202173132,"uuid":"107938061","full_name":"Dsiner/Cache","owner":"Dsiner","description":"Cache ——Level 3 cache(memory, sdcard, network), abstract asynchronous time-consuming operation for any object, main thread callback, chained call. Get the first frame of the video, audio duration, imageloader, image compress; 3级缓存（内存, 本地, 网络）, 针对任意对象，抽象异步耗时操作，主线程回调，链式调用. 获取视频第一帧/缩略图，音频时长, 图片加载，图片压缩等","archived":false,"fork":false,"pushed_at":"2021-08-10T08:36:51.000Z","size":928,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-21T13:14:35.440Z","etag":null,"topics":["cache","cache-control","cache-storage","duration","imagecompress","imageloader","thumbnail"],"latest_commit_sha":null,"homepage":"","language":null,"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/Dsiner.png","metadata":{"files":{"readme":"README-zh.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}},"created_at":"2017-10-23T05:58:13.000Z","updated_at":"2021-08-10T08:36:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"13790fee-3be0-432f-9118-17f0cf1bcb19","html_url":"https://github.com/Dsiner/Cache","commit_stats":null,"previous_names":["dsiner/cache"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Dsiner/Cache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dsiner%2FCache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dsiner%2FCache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dsiner%2FCache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dsiner%2FCache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dsiner","download_url":"https://codeload.github.com/Dsiner/Cache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dsiner%2FCache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28753411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T10:25:12.305Z","status":"ssl_error","status_checked_at":"2026-01-25T10:25:11.933Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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","cache-control","cache-storage","duration","imagecompress","imageloader","thumbnail"],"created_at":"2024-11-07T21:07:00.145Z","updated_at":"2026-01-25T13:01:41.403Z","avatar_url":"https://github.com/Dsiner.png","language":null,"readme":"# Cache for Android\n\n[![License](https://img.shields.io/badge/license-Apache%202-green.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n[![API](https://img.shields.io/badge/API-10%2B-green.svg?style=flat)](https://android-arsenal.com/api?level=10)\n\n\u003e 3级缓存（ `内存`, `本地`, `网络` ） ——针对任意对象，抽象异步耗时操作，主线程回调，链式调用\n\n## Demo\n\u003cp\u003e\n   \u003cimg src=\"https://github.com/Dsiner/Resouce/blob/master/lib/Cache/cache.png\" width=\"320\" alt=\"Screenshot\"/\u003e\n\u003c/p\u003e\n\n## Implementation list\n- [x] `FrameCache` - 获取本地或网络视频第一帧和时长\n- [x] `DurationCache` - 获取本地或网络音频时长\n- [x] `ImageCache` - 获取本地或网络图片\n\n## Usage\n```java\n        FrameCache.with(context).load(url).placeholder(R.color.colorAccent).into(view);\n        DurationCache.with(context).load(url).placeholder(0L).into(view);\n        ImageCache.with(context).load(url).into(ivImage);\n        ...\n```\n\nMore usage see [Demo](app/src/main/java/com/d/cache/MainActivity.java)\n\n## Licence\n\n```txt\nCopyright 2017 D\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsiner%2Fcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsiner%2Fcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsiner%2Fcache/lists"}