61 changed files with 194 additions and 91 deletions
@ -0,0 +1,20 @@ |
|||||||
|
/* |
||||||
|
* Copyright 2012-present the original author or authors. |
||||||
|
* |
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
||||||
|
* you may not use this file except in compliance with the License. |
||||||
|
* You may obtain a copy of the License at |
||||||
|
* |
||||||
|
* https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
* |
||||||
|
* Unless required by applicable law or agreed to in writing, software |
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS, |
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||||
|
* See the License for the specific language governing permissions and |
||||||
|
* limitations under the License. |
||||||
|
*/ |
||||||
|
|
||||||
|
/** |
||||||
|
* Auto-configuration base classes for Caching support. |
||||||
|
*/ |
||||||
|
package org.springframework.boot.autoconfigure.cache; |
||||||
0
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/cache/support/MockCachingProvider.java → spring-boot-project/spring-boot-autoconfigure/src/testFixtures/java/org/springframework/boot/autoconfigure/cache/support/MockCachingProvider.java
vendored
0
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/cache/support/MockCachingProvider.java → spring-boot-project/spring-boot-autoconfigure/src/testFixtures/java/org/springframework/boot/autoconfigure/cache/support/MockCachingProvider.java
vendored
@ -0,0 +1,58 @@ |
|||||||
|
/* |
||||||
|
* Copyright 2012-present the original author or authors. |
||||||
|
* |
||||||
|
* Licensed under the Apache License, Version 2.0 (the License); |
||||||
|
* you may not use this file except in compliance with the License. |
||||||
|
* You may obtain a copy of the License at |
||||||
|
* |
||||||
|
* https://www.apache.org/licenses/LICENSE-2.0 |
||||||
|
* |
||||||
|
* Unless required by applicable law or agreed to in writing, software |
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS, |
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||||
|
* See the License for the specific language governing permissions and |
||||||
|
* limitations under the License. |
||||||
|
*/ |
||||||
|
|
||||||
|
|
||||||
|
plugins { |
||||||
|
id "java-library" |
||||||
|
id "org.springframework.boot.auto-configuration" |
||||||
|
id "org.springframework.boot.configuration-properties" |
||||||
|
id "org.springframework.boot.deployed" |
||||||
|
id "org.springframework.boot.optional-dependencies" |
||||||
|
} |
||||||
|
|
||||||
|
description = "Spring Boot Cache" |
||||||
|
|
||||||
|
dependencies { |
||||||
|
api(project(":spring-boot-project:spring-boot")) |
||||||
|
api("org.springframework:spring-context-support") |
||||||
|
|
||||||
|
optional(project(":spring-boot-project:spring-boot-autoconfigure")) |
||||||
|
optional(project(":spring-boot-project:spring-boot-data-couchbase")) |
||||||
|
optional(project(":spring-boot-project:spring-boot-data-redis")) |
||||||
|
optional(project(":spring-boot-project:spring-boot-hazelcast")) |
||||||
|
optional(project(":spring-boot-project:spring-boot-jpa")) |
||||||
|
optional("com.hazelcast:hazelcast-spring") |
||||||
|
optional("org.cache2k:cache2k-spring") |
||||||
|
optional("javax.cache:cache-api") |
||||||
|
optional("org.ehcache:ehcache") { |
||||||
|
artifact { |
||||||
|
classifier = 'jakarta' |
||||||
|
} |
||||||
|
} |
||||||
|
optional("org.hibernate.orm:hibernate-core") |
||||||
|
optional("org.hibernate.orm:hibernate-jcache") |
||||||
|
optional("org.infinispan:infinispan-commons") |
||||||
|
optional("org.infinispan:infinispan-component-annotations") |
||||||
|
optional("org.infinispan:infinispan-core") |
||||||
|
optional("org.infinispan:infinispan-jcache") |
||||||
|
optional("org.infinispan:infinispan-spring6-embedded") |
||||||
|
|
||||||
|
testImplementation(project(":spring-boot-project:spring-boot-test")) |
||||||
|
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support")) |
||||||
|
testImplementation(testFixtures(project(":spring-boot-project:spring-boot-autoconfigure"))) |
||||||
|
|
||||||
|
testRuntimeOnly("ch.qos.logback:logback-classic") |
||||||
|
} |
||||||
4
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/cache/CouchbaseCacheManagerBuilderCustomizer.java → spring-boot-project/spring-boot-cache/src/main/java/org/springframework/boot/cache/autoconfigure/CouchbaseCacheManagerBuilderCustomizer.java
vendored
4
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/cache/CouchbaseCacheManagerBuilderCustomizer.java → spring-boot-project/spring-boot-cache/src/main/java/org/springframework/boot/cache/autoconfigure/CouchbaseCacheManagerBuilderCustomizer.java
vendored
2
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/cache/HazelcastJCacheCustomizationConfiguration.java → spring-boot-project/spring-boot-cache/src/main/java/org/springframework/boot/cache/autoconfigure/HazelcastJCacheCustomizationConfiguration.java
vendored
2
spring-boot-project/spring-boot-autoconfigure-all/src/main/java/org/springframework/boot/autoconfigure/cache/HazelcastJCacheCustomizationConfiguration.java → spring-boot-project/spring-boot-cache/src/main/java/org/springframework/boot/cache/autoconfigure/HazelcastJCacheCustomizationConfiguration.java
vendored
@ -0,0 +1,17 @@ |
|||||||
|
{ |
||||||
|
"groups": [], |
||||||
|
"properties": [], |
||||||
|
"hints": [ |
||||||
|
{ |
||||||
|
"name": "spring.cache.jcache.provider", |
||||||
|
"providers": [ |
||||||
|
{ |
||||||
|
"name": "class-reference", |
||||||
|
"parameters": { |
||||||
|
"target": "javax.cache.spi.CachingProvider" |
||||||
|
} |
||||||
|
} |
||||||
|
] |
||||||
|
} |
||||||
|
] |
||||||
|
} |
||||||
@ -0,0 +1 @@ |
|||||||
|
org.springframework.boot.cache.autoconfigure.CacheAutoConfiguration |
||||||
2
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/cache/AbstractCacheAutoConfigurationTests.java → spring-boot-project/spring-boot-cache/src/test/java/org/springframework/boot/cache/autoconfigure/AbstractCacheAutoConfigurationTests.java
vendored
2
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/cache/AbstractCacheAutoConfigurationTests.java → spring-boot-project/spring-boot-cache/src/test/java/org/springframework/boot/cache/autoconfigure/AbstractCacheAutoConfigurationTests.java
vendored
4
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/cache/EhCache3CacheAutoConfigurationTests.java → spring-boot-project/spring-boot-cache/src/test/java/org/springframework/boot/cache/autoconfigure/EhCache3CacheAutoConfigurationTests.java
vendored
4
spring-boot-project/spring-boot-autoconfigure-all/src/test/java/org/springframework/boot/autoconfigure/cache/EhCache3CacheAutoConfigurationTests.java → spring-boot-project/spring-boot-cache/src/test/java/org/springframework/boot/cache/autoconfigure/EhCache3CacheAutoConfigurationTests.java
vendored
@ -0,0 +1,4 @@ |
|||||||
|
# |
||||||
|
# Test JSR 107 provider for testing purposes only. |
||||||
|
# |
||||||
|
org.springframework.boot.autoconfigure.cache.support.MockCachingProvider |
||||||
@ -0,0 +1,19 @@ |
|||||||
|
<hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-5.0.xsd" |
||||||
|
xmlns="http://www.hazelcast.com/schema/config" |
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
||||||
|
|
||||||
|
<queue name="foobar"/> |
||||||
|
|
||||||
|
<map name="foobar"> |
||||||
|
<time-to-live-seconds>3600</time-to-live-seconds> |
||||||
|
<max-idle-seconds>600</max-idle-seconds> |
||||||
|
</map> |
||||||
|
|
||||||
|
<network> |
||||||
|
<join> |
||||||
|
<auto-detection enabled="false" /> |
||||||
|
<multicast enabled="false"/> |
||||||
|
</join> |
||||||
|
</network> |
||||||
|
|
||||||
|
</hazelcast> |
||||||
@ -1,2 +1,2 @@ |
|||||||
# AutoConfigureCache auto-configuration imports |
# AutoConfigureCache auto-configuration imports |
||||||
org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration |
optional:org.springframework.boot.cache.autoconfigure.CacheAutoConfiguration |
||||||
|
|||||||
Loading…
Reference in new issue