Skip to content

Commit

Permalink
Fix typo in reference cache example code.
Browse files Browse the repository at this point in the history
Fixed minor typo on example code `build()` to `builder()`

Closes #3064
  • Loading branch information
seate authored and mp911de committed Jan 15, 2025
1 parent 9cef8ae commit 904968d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/antora/modules/ROOT/pages/redis/redis-cache.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ It is possible to opt in to the locking behavior as follows:
[source,java]
----
RedisCacheManager cacheManager = RedisCacheManager
.build(RedisCacheWriter.lockingRedisCacheWriter(connectionFactory))
.builder(RedisCacheWriter.lockingRedisCacheWriter(connectionFactory))
.cacheDefaults(RedisCacheConfiguration.defaultCacheConfig())
...
----
Expand Down Expand Up @@ -77,7 +77,7 @@ The `SCAN` strategy requires a batch size to avoid excessive Redis command round
[source,java]
----
RedisCacheManager cacheManager = RedisCacheManager
.build(RedisCacheWriter.nonLockingRedisCacheWriter(connectionFactory, BatchStrategies.scan(1000)))
.builder(RedisCacheWriter.nonLockingRedisCacheWriter(connectionFactory, BatchStrategies.scan(1000)))
.cacheDefaults(RedisCacheConfiguration.defaultCacheConfig())
...
----
Expand Down

0 comments on commit 904968d

Please sign in to comment.