{"id":24773961,"url":"https://github.com/kilemonn/dcache","last_synced_at":"2026-05-09T14:42:58.082Z","repository":{"id":274635229,"uuid":"908464521","full_name":"Kilemonn/DCache","owner":"Kilemonn","description":"A dynamically configured multi-storage-medium backed caching framework for Spring.","archived":false,"fork":false,"pushed_at":"2025-01-28T14:06:09.000Z","size":186,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T14:26:16.943Z","etag":null,"topics":["cache","cachemanager","configuration-management","dcache","java","jitpack","kotlin","spring"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/Kilemonn.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}},"created_at":"2024-12-26T06:20:32.000Z","updated_at":"2025-01-28T14:06:13.000Z","dependencies_parsed_at":"2025-01-28T14:37:03.634Z","dependency_job_id":null,"html_url":"https://github.com/Kilemonn/DCache","commit_stats":null,"previous_names":["kilemonn/dcache"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kilemonn%2FDCache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kilemonn%2FDCache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kilemonn%2FDCache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kilemonn%2FDCache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kilemonn","download_url":"https://codeload.github.com/Kilemonn/DCache/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245175358,"owners_count":20572781,"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":["cache","cachemanager","configuration-management","dcache","java","jitpack","kotlin","spring"],"created_at":"2025-01-29T05:20:14.804Z","updated_at":"2026-05-09T14:42:58.046Z","avatar_url":"https://github.com/Kilemonn.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DCache\n[![CI Build](https://github.com/Kilemonn/DCache/actions/workflows/gradle.yml/badge.svg)](https://github.com/Kilemonn/DCache/actions/workflows/gradle.yml) [![Coverage](.github/badges/jacoco.svg)](https://github.com/Kilemonn/DCache/actions/workflows/gradle.yml)\n\n## Overview\nDCache is a property driven caching framework that allows you to configure multi-storage-medium backed caching framework for Spring.\nAllowing you to simply define your preferred cache ID, backing mechanism, key and value types and just autowiring in the cache and using it.\n\n## Quick Start\n\nBelow are some quick start configuration snippets and matching code snippets.\n\n### Example in [DCache-Example](https://github.com/Kilemonn/DCache-Example).\n\n### More detailed documentation can be found in the [Wiki](https://github.com/Kilemonn/DCache/wiki)!\nIncluding remote cache configuration and fallback cache configuration.\n\n### Including as a dependency\n\nThis can be included by making sure that you have [JitPack](https://jitpack.io) setup as a dependency repository within your project.\nYou can refer to the hosted versions of this library at [DCache](https://jitpack.io/#Kilemonn/DCache).\n\nHere is an example in Gradle to include the dependency:\n```groovy\nimplementation(\"com.github.Kilemonn:dcache:0.1.0\")\n```\n\n### Defining cache instances\n\nThe cache instances are dynamically configured via the application properties.\nThe expected format is: `dcache.cache.\u003ccache-id\u003e.\u003cproperty\u003e=\u003cvalue\u003e` where `cache-id` is an arbitrary id that you decide.\n\nFor example defining an in memory cache with String as the key and String as the value, requires the following properties:\n```properties\ndcache.cache.my-in-memory-cache.type=IN_MEMORY\ndcache.cache.my-in-memory-cache.key_class=java.lang.String\ndcache.cache.my-in-memory-cache.value_class=java.lang.String\n```\n\nIn your application code you can auto wire this cache using the following code:\n```java\npublic class YourClass {\n    @Autowired\n    @Qualifier(\"my-in-memory-cache\")\n    private DCache\u003cString, String\u003e cache;\n}\n```\n\n### Wiring in the cache manager\n\nAll the constructed caches are stored in the DCacheManager. This can be wired in as required.\nThe manager can be used to retrieve multiple cache instances by their ID.\nFor completeness see below:\n\n```java\npublic class YourClass {\n    @Autowired\n    private DCacheManager cacheManager;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkilemonn%2Fdcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkilemonn%2Fdcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkilemonn%2Fdcache/lists"}