public class RedisHelper extends Object
| 构造器和说明 |
|---|
RedisHelper(org.springframework.data.redis.connection.RedisConnectionFactory factory,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> org.springframework.data.redis.core.RedisTemplate<String,T> |
template()
创建泛型template
|
static <T> org.springframework.data.redis.core.RedisTemplate<String,T> |
template(Class<T> clazz)
创建泛型template
|
static <T> org.springframework.data.redis.core.RedisTemplate<String,T> |
template(Type type)
创建泛型template
|
public RedisHelper(org.springframework.data.redis.connection.RedisConnectionFactory factory,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public static <T> org.springframework.data.redis.core.RedisTemplate<String,T> template(Class<T> clazz)
T - 定义泛型clazz - 泛型类public static <T> org.springframework.data.redis.core.RedisTemplate<String,T> template()
T - 定义泛型Copyright © 2021. All rights reserved.