You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/antora/modules/ROOT/pages/redis/transactions.adoc
+4-7
Original file line number
Diff line number
Diff line change
@@ -25,9 +25,8 @@ System.out.println("Number of items added to set: " + txResults.get(0));
25
25
`RedisTemplate` uses its value, hash key, and hash value serializers to deserialize all results of `exec` before returning.
26
26
There is an additional `exec` method that lets you pass a custom serializer for transaction results.
27
27
28
-
It is worth mentioning that if between the commands multi() and exec() a query timeout exception happens (e.g. in case
29
-
Redis is not available to respond fast) then the connection may get stuck in a transactional state. To prevent
30
-
such situation you have to control the transaction state:
28
+
It is worth mentioning that in case between `multi()` and `exec()` an exception happens (e.g. a timeout exception in case Redis does not respond within the timeout) then the connection may get stuck in a transactional state.
29
+
To prevent such a situation need have to discard the transactional state to clear the connection:
0 commit comments