程序包 cn.gybyt.config
类 RedisConfig
- java.lang.Object
-
- cn.gybyt.config.RedisConfig
-
@Configuration @ConditionalOnClass(org.springframework.data.redis.connection.RedisConnectionFactory.class) @ConditionalOnProperty(prefix="gybyt", name="enable-cache", havingValue="true", matchIfMissing=true) public class RedisConfig extends Objectredis配置
-
-
构造器概要
构造器 构造器 说明 RedisConfig()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.springframework.cache.CacheManagergybytRedisCacheManager(org.springframework.data.redis.core.RedisTemplate<String,Object> redisTemplate)注入RedisCacheManage对象org.springframework.data.redis.core.RedisTemplate<String,String>gybytRedisStringTemplate(org.springframework.data.redis.connection.RedisConnectionFactory factory)注入RedisTemplate对象org.springframework.data.redis.core.RedisTemplate<String,Object>gybytRedisTemplate(org.springframework.data.redis.connection.RedisConnectionFactory factory)注入RedisTemplate对象
-
-
-
方法详细资料
-
gybytRedisTemplate
@Bean public org.springframework.data.redis.core.RedisTemplate<String,Object> gybytRedisTemplate(org.springframework.data.redis.connection.RedisConnectionFactory factory)
注入RedisTemplate对象- 参数:
factory-- 返回:
-
gybytRedisStringTemplate
@Bean public org.springframework.data.redis.core.RedisTemplate<String,String> gybytRedisStringTemplate(org.springframework.data.redis.connection.RedisConnectionFactory factory)
注入RedisTemplate对象- 参数:
factory-- 返回:
-
-