
public class GlueRedisDao extends Object implements GlueGenericRedisDao
| Constructor and Description | 
|---|
GlueRedisDao()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
afterPropertiesSet()
Properties Set후 초기화 작업 
 | 
void | 
delete(String key)
해당 데이터를 삭제한다. 
 | 
org.springframework.data.redis.connection.DataType | 
getDataType(String key)
해당 데이터의 타입을 반환한다. 
 | 
org.springframework.data.redis.core.HashOperations<String,String,Object> | 
getOpsForHash()
Hash타입 데이터의 Operation 클래스를 반환한다. 
 | 
org.springframework.data.redis.core.ListOperations<String,Object> | 
getOpsForList()
List타입 데이터의 Operation 클래스를 반환한다. 
 | 
org.springframework.data.redis.core.SetOperations<String,Object> | 
getOpsForSet()
Set타입 데이터의 Operation 클래스를 반환한다. 
 | 
org.springframework.data.redis.core.ValueOperations<String,Object> | 
getOpsForValue()
String 타입 데이터의 Operation 클래스를 반환한다. 
 | 
org.springframework.data.redis.core.ZSetOperations<String,Object> | 
getOpsForZSet()
Sotred Set타입 데이터의 Operation 클래스를 반환한다. 
 | 
void | 
opsHashAddMap(String key,
             Map<String,Object> value)
Redis의 Hash타입의 데이터에 해당 Map을 저장한다. 
 | 
void | 
opsHashAddObject(String key,
                String hashkey,
                Object value)
Redis의 Hash타입의 데이터에 해당 데이터를 저장한다. 
 | 
Map<String,Object> | 
opsHashGetMap(String key)
Redis에서 Hash타입의 데이터를 가져온다. 
 | 
Object | 
opsHashGetObject(String key,
                String hashkey)
Redis의 Hash타입의 데이터에서 해당 Key에 해당하는 데이터를 반환한다. 
 | 
Set<String> | 
opsHashKeys(String key)
Redis의 Hash타입의 데이터에서 Key값을 반환한다. 
 | 
long | 
opsListAddListAll(String key,
                 List<Object> value)
Redis에 List타입의 데이터를 저장한다. 
 | 
long | 
opsListAddObject(String key,
                Object value)
Redis에서 List타입의 데이터에 해당 값을 Add한다. 
 | 
List<Object> | 
opsListGetList(String key)
Redis에서 List타입의 데이터를 가져온다. 
 | 
List<Object> | 
opsListGetList(String key,
              long startIndex,
              long endIndex)
Redis에서 List타입의 데이터를 지정한 Row만 가져온다. 
 | 
long | 
opsSetAddObject(String key,
               Object value)
Redis에서 Set타입의 데이터에 해당 값을 Add한다. 
 | 
long | 
opsSetAddSet(String key,
            Set<Object> value)
Redis에서 Set타입의 데이터에 해당 값을 Add한다. 
 | 
Set<Object> | 
opsSetGetSet(String key)
Redis에서 Set타입의 데이터를 가져온다. 
 | 
Object | 
opsValueGetObject(String key)
Redis에서 String타입의 데이터를 가져온다. 
 | 
void | 
opsValueSetObject(String key,
                 Object value)
Redis에 String타입의 데이터를 저장한다. 
 | 
boolean | 
opsZSetAddObject(String key,
                Object value,
                double score)
Redis에서 Sorted Set타입의 데이터에 해당 값을 Add한다. 
 | 
double | 
opsZSetGetScore(String key,
               Object value)
Redis에서 Sorted Set타입의 데이터의 Score를 반환한다. 
 | 
Set<Object> | 
opsZSetGetSet(String key)
Redis에서 Sorted Set타입의 데이터를 가져온다. 
 | 
Set<Object> | 
opsZSetGetSet(String key,
             long startIndex,
             long endIndex)
Redis에서 Sorted Set타입의 데이터를 지정된 Index의 데이터만 가져온다. 
 | 
Set<Object> | 
opsZSetGetSetByScore(String key,
                    double startScore,
                    double endScore)
Redis에서 Sorted Set타입의 데이터를 지정된 Score의 데이터만 가져온다. 
 | 
long | 
opsZSetRank(String key,
           Object value)
Redis에서 Sorted Set타입의 데이터의 순위를 반환한다. 
 | 
long | 
opsZSetRemoveByScore(String key,
                    double startScore,
                    double endScore)
Redis에서 Sorted Set타입의 데이터에서 해당 범위의 Score를 가진 데이터를 삭제한다. 
 | 
void | 
setConnectionFactory(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory)
setter method for DI. 
 | 
void | 
setKeySerializer(org.springframework.data.redis.serializer.RedisSerializer<?> serializer)
setter method for DI. 
 | 
void | 
setSerializer(org.springframework.data.redis.serializer.RedisSerializer<?> serializer)
setter method for DI. 
 | 
void | 
setValueSerializer(org.springframework.data.redis.serializer.RedisSerializer<?> serializer)
setter method for DI. 
 | 
long | 
size(String key)
해당 데이터를 Row 수. 
 | 
public void setConnectionFactory(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory)
connectionFactory - public void setSerializer(org.springframework.data.redis.serializer.RedisSerializer<?> serializer)
serializer - public void setKeySerializer(org.springframework.data.redis.serializer.RedisSerializer<?> serializer)
serializer - public void setValueSerializer(org.springframework.data.redis.serializer.RedisSerializer<?> serializer)
serializer - public void afterPropertiesSet()
                        throws Exception
afterPropertiesSet in interface InitializingBeanExceptionpublic org.springframework.data.redis.core.ValueOperations<String,Object> getOpsForValue()
getOpsForValue in interface GlueGenericRedisDaopublic org.springframework.data.redis.core.ListOperations<String,Object> getOpsForList()
getOpsForList in interface GlueGenericRedisDaopublic org.springframework.data.redis.core.SetOperations<String,Object> getOpsForSet()
getOpsForSet in interface GlueGenericRedisDaopublic org.springframework.data.redis.core.ZSetOperations<String,Object> getOpsForZSet()
getOpsForZSet in interface GlueGenericRedisDaopublic org.springframework.data.redis.core.HashOperations<String,String,Object> getOpsForHash()
getOpsForHash in interface GlueGenericRedisDaopublic org.springframework.data.redis.connection.DataType getDataType(String key)
getDataType in interface GlueGenericRedisDaokey - Redis에서 확인할 데이터의 Keypublic void delete(String key)
delete in interface GlueGenericRedisDaokey - Redis에서 삭제할 데이터의 Keypublic long size(String key)
size in interface GlueGenericRedisDaokey - Redis에서 가져올 데이터의 Keypublic Object opsValueGetObject(String key)
opsValueGetObject in interface GlueGenericRedisDaokey - Redis에서 가져올 데이터의 Keypublic void opsValueSetObject(String key, Object value)
opsValueSetObject in interface GlueGenericRedisDaokey - Redis에 저장할 데이터의 Keyvalue - Redis에 저장할 데이타public List<Object> opsListGetList(String key)
opsListGetList in interface GlueGenericRedisDaokey - Redis에서 가져올 데이터의 Keypublic List<Object> opsListGetList(String key, long startIndex, long endIndex)
opsListGetList in interface GlueGenericRedisDaokey - Redis에서 가져올 데이터의 KeystartIndex - Redis에서 가져올 데이터의 시작 IndexendIndex - Redis에서 가져올 데이터의 마지막 Indexpublic long opsListAddObject(String key, Object value)
opsListAddObject in interface GlueGenericRedisDaokey - Redis 데이터의 Keyvalue - Redis에 Add 데이타public long opsListAddListAll(String key, List<Object> value)
opsListAddListAll in interface GlueGenericRedisDaokey - Redis 데이터의 Keyvalue - Redis에 저장할 데이타public Set<Object> opsSetGetSet(String key)
opsSetGetSet in interface GlueGenericRedisDaokey - Redis에서 가져올 데이터의 Keypublic long opsSetAddObject(String key, Object value)
opsSetAddObject in interface GlueGenericRedisDaokey - Redis 데이터의 Keyvalue - Redis에 저장할 데이타public long opsSetAddSet(String key, Set<Object> value)
opsSetAddSet in interface GlueGenericRedisDaokey - Redis 데이터의 Keyvalue - Redis에 저장할 데이타public Set<Object> opsZSetGetSet(String key)
opsZSetGetSet in interface GlueGenericRedisDaokey - Redis에서 가져올 데이터의 Keypublic Set<Object> opsZSetGetSet(String key, long startIndex, long endIndex)
opsZSetGetSet in interface GlueGenericRedisDaokey - Redis에서 가져올 데이터의 KeystartIndex - Redis에서 가져올 데이터의 시작 IndexendIndex - Redis에서 가져올 데이터의 마지막 Indexpublic Set<Object> opsZSetGetSetByScore(String key, double startScore, double endScore)
opsZSetGetSetByScore in interface GlueGenericRedisDaokey - Redis에서 가져올 데이터의 KeystartScore - Redis에서 가져올 데이터의 시작 ScoreendScore - Redis에서 가져올 데이터의 마지막 Scorepublic boolean opsZSetAddObject(String key, Object value, double score)
opsZSetAddObject in interface GlueGenericRedisDaokey - Redis 데이터의 Keyvalue - Redis에 저장할 데이타score - Redis에 저장할 데이타의 Scorepublic double opsZSetGetScore(String key, Object value)
opsZSetGetScore in interface GlueGenericRedisDaokey - Redis 데이터의 Keyvalue - Redis에서 가져올 데이타public long opsZSetRank(String key, Object value)
opsZSetRank in interface GlueGenericRedisDaokey - Redis 데이터의 Keyvalue - Redis에서 가져올 데이타public long opsZSetRemoveByScore(String key, double startScore, double endScore)
opsZSetRemoveByScore in interface GlueGenericRedisDaokey - Redis 데이터의 KeystartScore - Redis에서 삭제할 데이타 범위의 시작 ScoreendScore - Redis에서 삭제할 데이타 범위의 마지막 Scorepublic Map<String,Object> opsHashGetMap(String key)
opsHashGetMap in interface GlueGenericRedisDaokey - Redis에서 가져올 데이터의 Keypublic Object opsHashGetObject(String key, String hashkey)
opsHashGetObject in interface GlueGenericRedisDaokey - Redis에서 가져올 데이터의 Keyhashkey - Hash데이터의 Keypublic void opsHashAddObject(String key, String hashkey, Object value)
opsHashAddObject in interface GlueGenericRedisDaokey - Redis에서 가져올 데이터의 Keyhashkey - Hash데이터의 Keyvalue - Hash데이터에 저장할 값public void opsHashAddMap(String key, Map<String,Object> value)
opsHashAddMap in interface GlueGenericRedisDaokey - Redis에서 저장할 데이터의 Keyvalue - 저장할 map데이터public Set<String> opsHashKeys(String key)
opsHashKeys in interface GlueGenericRedisDaokey - Redis에서 가져올 데이터의 KeyCopyright © 2013–2021 POSCO ICT. All rights reserved.