{"id":16356945,"url":"https://github.com/previousdeveloper/java-distributed-data-cache","last_synced_at":"2025-07-27T03:07:03.590Z","repository":{"id":148582034,"uuid":"251259850","full_name":"previousdeveloper/java-distributed-data-cache","owner":"previousdeveloper","description":"Spring Boot, Quarkus Distributed Cache project implements (property-based) configuring of multiple backend providers","archived":false,"fork":false,"pushed_at":"2020-06-08T12:33:35.000Z","size":102,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-08T10:03:27.223Z","etag":null,"topics":["cache","distributed","spring","spring-boot"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/previousdeveloper.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-03-30T09:31:38.000Z","updated_at":"2024-04-24T05:28:38.000Z","dependencies_parsed_at":"2023-05-20T14:45:21.033Z","dependency_job_id":null,"html_url":"https://github.com/previousdeveloper/java-distributed-data-cache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/previousdeveloper/java-distributed-data-cache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/previousdeveloper%2Fjava-distributed-data-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/previousdeveloper%2Fjava-distributed-data-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/previousdeveloper%2Fjava-distributed-data-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/previousdeveloper%2Fjava-distributed-data-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/previousdeveloper","download_url":"https://codeload.github.com/previousdeveloper/java-distributed-data-cache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/previousdeveloper%2Fjava-distributed-data-cache/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267293761,"owners_count":24065321,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"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":["cache","distributed","spring","spring-boot"],"created_at":"2024-10-11T01:44:36.751Z","updated_at":"2025-07-27T03:07:03.581Z","avatar_url":"https://github.com/previousdeveloper.png","language":null,"readme":"# Spring Boot Distributed Cache\n\nSpring Boot Distributed Cache project implements (property-based) configuring of multiple backend providers.\n\nIt works best with [Spring Boot](https://github.com/spring-projects/spring-boot), implementing [auto-configuration](https://github.com/previousdeveloper/spring-boot-distributed-data-cache) mechanism.\n\n\n## Spring Boot Starter\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.trendyol\u003c/groupId\u003e\n    \u003cartifactId\u003edistributed-data-cache-spring-boot-starter\u003c/artifactId\u003e\n    \u003cversion\u003e0.0.1-SNAPSHOT\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Quarkus Starter\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.trendyol\u003c/groupId\u003e\n    \u003cartifactId\u003edistributed-data-cache-quarkus-core\u003c/artifactId\u003e\n    \u003cversion\u003e0.0.1-SNAPSHOT\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Getting Started\n\n```java\n    @RestController\n    public class WelcomeResource {\n    \n    \t@Value(\"${welcome.message}\")\n    \tprivate String welcomeMessage;\n\n        @ResponseCache\n    \t@GetMapping(\"/welcome\")\n    \tpublic String retrieveWelcomeMessage() {\n    \t\treturn welcomeMessage;\n    \t}\n    \n    \t@Autowired\n    \tprivate BasicConfiguration configuration;\n    \n    \t@ResponseCache\n    \t@RequestMapping(\"/dynamic-configuration\")\n    \tpublic Map\u003cString, Object\u003e dynamicConfiguration() {\n    \t\tMap\u003cString, Object\u003e map = new HashMap\u003c\u003e();\n    \t\tmap.put(\"message\", configuration.getMessage());\n    \t\tmap.put(\"number\", configuration.getNumber());\n    \t\tmap.put(\"key\", configuration.isValue());\n    \t\treturn map;\n    \t}\n    }\n```\nResponseCache annonation automatically caches your response to backend provider.\n\n```java\n//Cache if response header hash this key\n@ResponseCache(responseHeaderName=\"bla\")\n\n//Cache if enabled\n@ResponseCache(enabled=true)\n\n//Cache expire time\n@ResponseCache(expireInMinutes=10)\n```\n\n### Configuration Properties\n\n- Couchase Provider\n```\ndistributed:\n  cache:\n    enabled: true\n    platform: couchbase\n    couchbase:\n      bootstrapHosts: \"localhost\"\n      username: \"bucketusername\"\n      password: \"bucketpassword\"\n      bucket: \"buckname\"\n```\n\n- Redis Provider\n```\ndistributed:\n  cache:\n    enabled: true\n    platform: redis\n    redis:\n      url: \"localhost\"\n      username: \"username\"\n      password: \"password\"\n```\n\n\n- Http Backend Provider\n```\ndistributed:\n  cache:\n    enabled: true\n    url: \"http://localhost:8083/config/age\"\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreviousdeveloper%2Fjava-distributed-data-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpreviousdeveloper%2Fjava-distributed-data-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreviousdeveloper%2Fjava-distributed-data-cache/lists"}