public final class RedisConnectionUtils extends Object
限定符和类型 | 方法和说明 |
---|---|
static RedisConnection |
bindConnection(RedisConnectionFactory factory) |
static RedisConnection |
bindConnection(RedisConnectionFactory factory,
boolean enableTransactionSupport) |
static RedisConnection |
getConnection(RedisConnectionFactory factory) |
static RedisConnection |
getConnection(RedisConnectionFactory factory,
boolean enableTransactionSupport) |
static RedisMode |
getRedisMode(RedisConnection connection)
根据连接器获取 Redis 模式
|
static boolean |
isConnectionTransactional(RedisConnectionFactory factory,
RedisConnection connection) |
static void |
releaseConnection(RedisConnectionFactory factory,
RedisConnection connection,
boolean transactionSupport) |
static void |
unbindConnection(RedisConnectionFactory factory) |
public static RedisMode getRedisMode(RedisConnection connection)
connection
- 连接器public static RedisConnection bindConnection(RedisConnectionFactory factory)
public static RedisConnection bindConnection(RedisConnectionFactory factory, boolean enableTransactionSupport)
public static RedisConnection getConnection(RedisConnectionFactory factory)
public static RedisConnection getConnection(RedisConnectionFactory factory, boolean enableTransactionSupport)
public static boolean isConnectionTransactional(RedisConnectionFactory factory, RedisConnection connection)
public static void releaseConnection(RedisConnectionFactory factory, @Nullable RedisConnection connection, boolean transactionSupport)
public static void unbindConnection(RedisConnectionFactory factory)
Copyright © 2022 buession.com Inc.. All rights reserved.