File tree Expand file tree Collapse file tree 5 files changed +9
-11
lines changed
main/java/io/github/suppie/spring/cache
test/java/io/github/suppie/spring/cache Expand file tree Collapse file tree 5 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ This version does not allow setting most of the local cache properties in favor
14
14
<dependency >
15
15
<groupId >io.github.suppierk</groupId >
16
16
<artifactId >spring-boot-multilevel-cache-starter</artifactId >
17
- <version >3.3.5 .0</version >
17
+ <version >3.4.0 .0</version >
18
18
</dependency >
19
19
```
20
20
21
21
### Gradle
22
22
``` groovy
23
- implementation 'io.github.suppierk:spring-boot-multilevel-cache-starter:3.3.5 .0'
23
+ implementation 'io.github.suppierk:spring-boot-multilevel-cache-starter:3.4.0 .0'
24
24
```
25
25
26
26
## Use cases
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ plugins {
9
9
id ' java-library'
10
10
11
11
// Core frameworks
12
- id ' org.springframework.boot' version ' 3.3.5 '
12
+ id ' org.springframework.boot' version ' 3.4.0 '
13
13
id ' io.spring.dependency-management' version ' 1.1.6'
14
14
15
15
// Publishing
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ SONATYPE_AUTOMATIC_RELEASE=true
27
27
28
28
GROUP =io.github.suppierk
29
29
POM_ARTIFACT_ID =spring-boot-multilevel-cache-starter
30
- VERSION_NAME =3.3.5 .0
30
+ VERSION_NAME =3.4.0 .0
31
31
POM_PACKAGING =jar
32
32
33
33
POM_NAME =Spring Boot Multilevel Cache Starter
Original file line number Diff line number Diff line change @@ -61,9 +61,7 @@ public class MultiLevelCacheConfigurationProperties {
61
61
*/
62
62
public RedisCacheConfiguration toRedisCacheConfiguration () {
63
63
RedisCacheConfiguration configuration =
64
- RedisCacheConfiguration .defaultCacheConfig ()
65
- .disableCachingNullValues ()
66
- .entryTtl (timeToLive );
64
+ RedisCacheConfiguration .defaultCacheConfig ().entryTtl (timeToLive );
67
65
68
66
if (useKeyPrefix ) {
69
67
configuration .prefixCacheNameWith (keyPrefix );
Original file line number Diff line number Diff line change 41
41
import org .springframework .boot .autoconfigure .cache .CacheAutoConfiguration ;
42
42
import org .springframework .boot .autoconfigure .data .redis .RedisAutoConfiguration ;
43
43
import org .springframework .boot .test .context .SpringBootTest ;
44
- import org .springframework .boot .test .mock .mockito .MockBean ;
45
44
import org .springframework .cache .Cache ;
46
45
import org .springframework .data .redis .connection .RedisConnection ;
47
46
import org .springframework .data .redis .connection .RedisConnectionFactory ;
48
47
import org .springframework .data .redis .listener .RedisMessageListenerContainer ;
49
48
import org .springframework .test .context .ActiveProfiles ;
49
+ import org .springframework .test .context .bean .override .mockito .MockitoBean ;
50
50
51
51
@ ActiveProfiles ("test" )
52
52
@ SpringBootTest (
@@ -61,10 +61,10 @@ class MultiLevelCacheTest {
61
61
62
62
@ Autowired MultiLevelCacheManager cacheManager ;
63
63
64
- @ MockBean RedisMessageListenerContainer redisMessageListenerContainer ;
64
+ @ MockitoBean RedisMessageListenerContainer redisMessageListenerContainer ;
65
65
66
- @ MockBean RedisConnection redisConnection ;
67
- @ MockBean RedisConnectionFactory redisConnectionFactory ;
66
+ @ MockitoBean RedisConnection redisConnection ;
67
+ @ MockitoBean RedisConnectionFactory redisConnectionFactory ;
68
68
69
69
@ ParameterizedTest
70
70
@ MethodSource ("operations" )
You can’t perform that action at this time.
0 commit comments