@Component public class EntityRedisComponent extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
org.springframework.data.redis.core.RedisTemplate |
redisTemplate |
| 构造器和说明 |
|---|
EntityRedisComponent() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected <T> RedisReader |
getBaseRedisReader(Class<T> clazz) |
protected <T> RedisReader |
getBaseRedisReader(String entityType) |
protected <T> BaseRedisService |
getBaseRedisService(Class<T> clazz) |
protected <T> BaseRedisService |
getBaseRedisService(String simpleName) |
protected <T> RedisWriter |
getBaseRedisWriter(Class<T> clazz) |
protected <T> RedisWriter |
getBaseRedisWriter(String entityType) |
protected <T> T |
getEntity(Long id,
Class<T> clazz) |
protected <T> T |
getEntity(String entityKey,
Class<T> clazz) |
protected <T> List<BaseEntity> |
getEntityList(Class<T> clazz) |
protected <T> T |
readEntity(String entityKey,
Class<T> clazz) |
protected <T> Map<String,Object> |
readHashMap(String entityKey,
Class<T> clazz) |
protected void |
writeEntity(BaseEntity entity) |
@Autowired public org.springframework.data.redis.core.RedisTemplate redisTemplate
protected <T> T readEntity(String entityKey, Class<T> clazz) throws IOException
IOExceptionprotected void writeEntity(BaseEntity entity)
protected <T> List<BaseEntity> getEntityList(Class<T> clazz)
protected <T> BaseRedisService getBaseRedisService(Class<T> clazz)
protected <T> BaseRedisService getBaseRedisService(String simpleName)
protected <T> RedisReader getBaseRedisReader(Class<T> clazz)
protected <T> RedisReader getBaseRedisReader(String entityType)
protected <T> RedisWriter getBaseRedisWriter(String entityType)
protected <T> RedisWriter getBaseRedisWriter(Class<T> clazz)
Copyright © 2023. All rights reserved.