ramu11 opened a new pull request, #2046: URL: https://github.com/apache/camel-spring-boot/pull/2046
Here is a concise version of the pull request description: ### Description This PR implements **CAMEL-24757**, adding a Spring Cache-backed `KeyValueRepository` adapter for `camel-spring-boot` (`SpringCacheKeyValueRepository`). ### Key Changes * **Auto-Configuration:** Registers automatically via `@ConditionalOnBean(CacheManager.class)` and `@ConditionalOnMissingBean(KeyValueRepository.class)`. * **Universal Backends:** Enables any Spring Boot-supported cache provider (Caffeine, Redis/Lettuce, Ehcache, etc.) to act as a Camel state store without extra dependencies. * **Design & Constraints:** * `storeName` maps 1:1 to Spring Cache names via `CacheManager.getCache(storeName)`. * TTL arguments store without expiration and trigger a one-time warning log. * CAS operations delegate to `Cache.putIfAbsent()` (provider-dependent atomicity). * `keys()` and `size()` throw `UnsupportedOperationException`. * **Testing & Docs:** Verified with a comprehensive test suite (210/210 passing) and documented in `spring-boot.adoc`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
