springboot 的 RedisTemplate 的 execute 和 executePipelined 功能的区别
execute
以下是 springboot 官网原文:
Redis provides support for transactions through the multi
, exec
, and discard
commands. These operations are available on RedisTemplate
, however RedisTemplate
is not guaranteed to execute all operations in the transaction using the same connection.
Spring Data Redis provides the SessionCallback
interface for use when multiple operations need to be performed with the same connection
,