@ConditionalOnProperty(prefix="spring.redis",
value="host")
public class LazyRedisTemplate<K,V>
extends org.springframework.data.redis.core.RedisTemplate<K,V>
| Modifier and Type | Field and Description |
|---|---|
protected Map<Integer,org.springframework.data.redis.connection.RedisConnectionFactory> |
redisConnectionFactoryMap |
| Constructor and Description |
|---|
LazyRedisTemplate(org.springframework.data.redis.connection.RedisConnectionFactory redisConnectionFactory,
org.springframework.boot.autoconfigure.data.redis.RedisProperties redisProperties) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.data.redis.connection.RedisConnectionFactory |
getConnectionFactory() |
org.springframework.data.redis.connection.RedisConnectionFactory |
getConnectionFactory(int database) |
Integer |
getDyDatabase() |
void |
reset()
重置
|
void |
setDyDatabase(Integer dyDatabase) |
afterPropertiesSet, boundGeoOps, boundHashOps, boundListOps, boundSetOps, boundStreamOps, boundValueOps, boundZSetOps, convertAndSend, copy, countExistingKeys, createRedisConnectionProxy, delete, delete, discard, dump, exec, exec, execRaw, execute, execute, execute, execute, execute, execute, executePipelined, executePipelined, executePipelined, executePipelined, executeWithStickyConnection, expire, expireAt, getClientList, getDefaultSerializer, getExpire, getExpire, getHashKeySerializer, getHashValueSerializer, getKeySerializer, getStringSerializer, getValueSerializer, hasKey, isEnableDefaultSerializer, isExposeConnection, keys, killClient, move, multi, opsForCluster, opsForGeo, opsForHash, opsForHyperLogLog, opsForList, opsForSet, opsForStream, opsForStream, opsForValue, opsForZSet, persist, postProcessResult, preProcessConnection, randomKey, rename, renameIfAbsent, restore, scan, setBeanClassLoader, setDefaultSerializer, setEnableDefaultSerializer, setEnableTransactionSupport, setExposeConnection, setHashKeySerializer, setHashValueSerializer, setKeySerializer, setScriptExecutor, setStringSerializer, setValueSerializer, slaveOf, slaveOfNoOne, sort, sort, sort, sort, sort, type, unlink, unlink, unwatch, watch, watchgetRequiredConnectionFactory, setConnectionFactorypublic LazyRedisTemplate(org.springframework.data.redis.connection.RedisConnectionFactory redisConnectionFactory,
org.springframework.boot.autoconfigure.data.redis.RedisProperties redisProperties)
public org.springframework.data.redis.connection.RedisConnectionFactory getConnectionFactory()
getConnectionFactory in class org.springframework.data.redis.core.RedisAccessorpublic org.springframework.data.redis.connection.RedisConnectionFactory getConnectionFactory(int database)
public Integer getDyDatabase()
public void setDyDatabase(Integer dyDatabase)
public void reset()
Copyright © 2022. All rights reserved.