Skip to content

Commit

Permalink
Update spec/src/main/asciidoc/chapters/api/template.adoc
Browse files Browse the repository at this point in the history
Co-authored-by: Nathan Rauh <nathan.rauh@us.ibm.com>
  • Loading branch information
otaviojava and njr-11 authored Feb 25, 2024
1 parent 2aecebb commit 31999f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/src/main/asciidoc/chapters/api/template.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ For Java developers, TTL support is essential for managing data lifecycle and op

While TTL support is valuable, not all NoSQL databases provide native support for TTL. In cases where TTL is not supported, attempting to set a TTL on data may result in an `UnsupportedOperationException` being thrown by the Jakarta NoSQL provider.

Additionally, some NoSQL providers may have limitations on the granularity of TTL values, such as supporting only TTL values specified in certain units (e.g., hours) or rounding TTL values to the nearest supported unit. In such cases, attempting to set a TTL value that does not align with the provider's limitations may result in unexpected behavior or zero TTL being applied.
Additionally, some NoSQL providers may have limitations on the granularity of TTL values, such as supporting only TTL values specified in certain units (e.g., hours) or rounding TTL values to the nearest supported unit. In such cases, attempting to set a TTL value that does not align with the provider's limitations may result in unexpected behavior or no TTL being applied.

For example, suppose a NoSQL database only supports TTL values specified in hours. If a developer attempts to set a TTL of 10 seconds, the Jakarta NoSQL provider may throw an UnsupportedOperationException. Similarly, if the developer attempts to set a TTL of 3660 seconds (which is more than one hour), the TTL value may be rounded to the nearest supported unit (i.e., one hour) by the provider.

Expand Down

0 comments on commit 31999f0

Please sign in to comment.