File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 241
241
>> > pipe.get(" key" )
242
242
>> > response = pipe.execute()
243
243
244
- As you see there's no need to explicitly send MULTI/EXEC commands to control context start/end
245
- ClusterPipeline will take care of it.
244
+ As you see there's no need to explicitly send ` MULTI/EXEC ` commands to control context start/end
245
+ ` ClusterPipeline ` will take care of it.
246
246
247
247
To ensure that different keys will be mapped to a same hash slot on the server side
248
248
prepend your keys with the same hash tag, the technique that allows you to control
249
- keys distribution. More information `here <https://redis.io/docs/latest/operate/oss_and_stack/reference/cluster-spec/#hash-tags >`_
249
+ keys distribution.
250
+ More information `here <https://redis.io/docs/latest/operate/oss_and_stack/reference/cluster-spec/#hash-tags >`_
250
251
251
252
.. code :: python
252
253
@@ -261,7 +262,7 @@ CAS Transactions
261
262
~~~~~~~~~~~~~~~~~~~~~~~~
262
263
263
264
If you want to apply optimistic locking for certain keys, you have to execute
264
- WATCH command in transactional context. WATCH command follows the same limitations
265
+ ` WATCH ` command in transactional context. ` WATCH ` command follows the same limitations
265
266
as any other multi key command - all keys should be mapped to the same hash slot.
266
267
267
268
However, the difference between CAS transaction and normal one is that you have to
You can’t perform that action at this time.
0 commit comments