{"id":19140654,"url":"https://github.com/palexdev/imcache","last_synced_at":"2026-06-17T03:32:18.982Z","repository":{"id":253012578,"uuid":"841413530","full_name":"palexdev/ImCache","owner":"palexdev","description":"A small and simple library for downloading and caching images","archived":false,"fork":false,"pushed_at":"2025-10-16T10:26:54.000Z","size":227,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-08T09:02:50.328Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/palexdev.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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-08-12T11:06:30.000Z","updated_at":"2025-10-16T10:25:33.000Z","dependencies_parsed_at":"2024-08-18T23:23:31.280Z","dependency_job_id":"71a056b3-1293-413d-90ae-166df454513d","html_url":"https://github.com/palexdev/ImCache","commit_stats":null,"previous_names":["palexdev/imcache"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/palexdev/ImCache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palexdev%2FImCache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palexdev%2FImCache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palexdev%2FImCache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palexdev%2FImCache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/palexdev","download_url":"https://codeload.github.com/palexdev/ImCache/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palexdev%2FImCache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34433085,"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-17T02:00:05.408Z","response_time":127,"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":[],"created_at":"2024-11-09T07:18:20.840Z","updated_at":"2026-06-17T03:32:18.969Z","avatar_url":"https://github.com/palexdev.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[//]: @formatter:off\n# ImCache\n\n**ImCache** is a lightweight Java library for fetching and caching images from any URL (whether it's a local\nfile, a web resource, or a custom protocol). It supports in-memory and on-disk caching strategies, as well as optional\nimage transformations prior to caching.\n\n---\n\n## ✨ Features\n\n- 🔗 Fetch images from local or remote URLs\n- 🧠 `MemoryCache`: fast in-memory caching with optional disk sync\n- 💾 `DiskCache`: persistent storage for long-term caching\n- ♻️ Auto-eviction based on capacity (default: 100 items)\n- 🖼️ Supports custom image transformations\n\n---\n\n## 📦 Installation\n\n### Gradle\n\n```groovy\ndependencies {\n    implementation 'io.github.palexdev:imcache:21.4.0'\n}\n```\n\n### Maven\n\n```xml\n\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.palexdev\u003c/groupId\u003e\n    \u003cartifactId\u003eimcache\u003c/artifactId\u003e\n    \u003cversion\u003e21.4.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## 🚀 Getting Started\n\nHere's a generic quick example of how to use ImCache:\n\n```java\nImCache.instance()       // You can also create new instances, constructor is public\n    .cacheConfig(() -\u003e{/*Cache configuration*/})\n    .storeStrategy(...)  // Cache original or transformed image\n    .request(myResource) // Can be a URL, file, string...\n    .transform(...)      // Here you can specify what transform to apply to the image\n    .execute(callback);  // Or executeAsync(...) if you want to load in the background. The callback is optional!\n```\n\n## 📝 Documentation\n\nYou can read the documentation [here](https://javadoc.io/doc/io.github.palexdev/imcache).\n\n## ©️ License\n\nDistributed under the GNU LGPLv3 License. See LICENSE for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalexdev%2Fimcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpalexdev%2Fimcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalexdev%2Fimcache/lists"}