Skip to content

Commit 7f1ee14

Browse files
Update README.md
- Add detail on TTL property;
1 parent cbabe51 commit 7f1ee14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The second way is to use properties to create one or several caches.
5050
#### .properties
5151

5252
```properties
53-
# TTL (in seconds).
53+
# TTL (in seconds). This property is optional, the default value is: 7 days.
5454
spring.cache.mongo.caches[0].ttl =
5555

5656
# MongoDB collection name.
@@ -60,7 +60,7 @@ spring.cache.mongo.caches[0].collectionName =
6060
spring.cache.mongo.caches[0].cacheName =
6161

6262
# Value that indicates if the collection must be flushed when the application starts.
63-
spring.cache.mongo.caches[0].flushOnBoot = false
63+
spring.cache.mongo.caches[0].flushOnBoot =
6464
```
6565

6666
#### YAML

0 commit comments

Comments
 (0)