Polishing.
Switch to Spring Framework duration formatting. Favour expireAfter with string parameter over the seconds based variant. Deprecate the existing expireAfterSeconds attribute of the Indexed annotation. Consider property value syntax when parsing timeout expressions. Remove DurationStyle (package visible). Update documentation. Original Pull Request: #4114
This commit is contained in:
committed by
Christoph Strobl
parent
197998f7cb
commit
ecc3f8f2fa
@@ -201,3 +201,9 @@ template.createCollection(Measurement.class);
|
||||
|
||||
The snippets above can easily be transferred to the reactive API offering the very same methods.
|
||||
Make sure to properly _subscribe_ to the returned publishers.
|
||||
|
||||
[TIP]
|
||||
====
|
||||
You can use the `@TimeSeries#expireAfter` option to have MongoDB automatically remove expired buckets.
|
||||
The attribute allows different timeout formats like `10s`, `3h`,... as well as expression (`#{@mySpringBean.timeout}`) and property placeholder (`${my.property.timeout}`) syntax.
|
||||
====
|
||||
|
||||
Reference in New Issue
Block a user