|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.poscoict.glueframework.dao.redis.GlueRedisDao
public class GlueRedisDao

Redis와 연동하기 위한 Dao Class
| Constructor Summary | |
|---|---|
GlueRedisDao()
|
|
| Method Summary | |
|---|---|
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 |
setSerializer(org.springframework.data.redis.serializer.RedisSerializer<?> serializer)
setter method for DI. |
long |
size(String key)
해당 데이터를 Row 수. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GlueRedisDao()
| Method Detail |
|---|
public void setConnectionFactory(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory)
RedisConnectionFactory - public void setSerializer(org.springframework.data.redis.serializer.RedisSerializer<?> serializer)
RedisSerializer -
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.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 GlueGenericRedisDaoString - key Redis에서 확인할 데이터의 Key
public void delete(String key)
delete in interface GlueGenericRedisDaoString - key Redis에서 삭제할 데이터의 Keypublic long size(String key)
size in interface GlueGenericRedisDaoString - key Redis에서 가져올 데이터의 Key
public Object opsValueGetObject(String key)
opsValueGetObject in interface GlueGenericRedisDaoString - key Redis에서 가져올 데이터의 Key
public void opsValueSetObject(String key,
Object value)
opsValueSetObject in interface GlueGenericRedisDaoString - key Redis에 저장할 데이터의 KeyObject - value Redis에 저장할 데이타public List<Object> opsListGetList(String key)
opsListGetList in interface GlueGenericRedisDaoString - key Redis에서 가져올 데이터의 Key
public List<Object> opsListGetList(String key,
long startIndex,
long endIndex)
opsListGetList in interface GlueGenericRedisDaoString - key Redis에서 가져올 데이터의 Keylong - startIndex Redis에서 가져올 데이터의 시작 Indexlong - endIndex Redis에서 가져올 데이터의 마지막 Index
public long opsListAddObject(String key,
Object value)
opsListAddObject in interface GlueGenericRedisDaoString - key Redis 데이터의 KeyObject - value Redis에 Add 데이타
public long opsListAddListAll(String key,
List<Object> value)
opsListAddListAll in interface GlueGenericRedisDaoString - key Redis 데이터의 KeyList< - Object > value Redis에 저장할 데이타
public Set<Object> opsSetGetSet(String key)
opsSetGetSet in interface GlueGenericRedisDaoString - key Redis에서 가져올 데이터의 Key
public long opsSetAddObject(String key,
Object value)
opsSetAddObject in interface GlueGenericRedisDaoString - key Redis 데이터의 KeyObject - value Redis에 저장할 데이타
public long opsSetAddSet(String key,
Set<Object> value)
opsSetAddSet in interface GlueGenericRedisDaoString - key Redis 데이터의 KeyObject - value Redis에 저장할 데이타
public Set<Object> opsZSetGetSet(String key)
opsZSetGetSet in interface GlueGenericRedisDaoString - key Redis에서 가져올 데이터의 Key
public Set<Object> opsZSetGetSet(String key,
long startIndex,
long endIndex)
opsZSetGetSet in interface GlueGenericRedisDaoString - key Redis에서 가져올 데이터의 Keylong - startIndex Redis에서 가져올 데이터의 시작 Indexlong - endIndex Redis에서 가져올 데이터의 마지막 Index
public Set<Object> opsZSetGetSetByScore(String key,
double startScore,
double endScore)
opsZSetGetSetByScore in interface GlueGenericRedisDaoString - key Redis에서 가져올 데이터의 Keylong - startIndex Redis에서 가져올 데이터의 시작 Scorelong - endIndex Redis에서 가져올 데이터의 마지막 Score
public boolean opsZSetAddObject(String key,
Object value,
double score)
opsZSetAddObject in interface GlueGenericRedisDaoString - key Redis 데이터의 KeyObject - value Redis에 저장할 데이타double - score Redis에 저장할 데이타의 Score
public double opsZSetGetScore(String key,
Object value)
opsZSetGetScore in interface GlueGenericRedisDaoString - key Redis 데이터의 KeyObject - value Redis에서 가져올 데이타
public long opsZSetRank(String key,
Object value)
opsZSetRank in interface GlueGenericRedisDaoString - key Redis 데이터의 KeyObject - value Redis에서 가져올 데이타
public long opsZSetRemoveByScore(String key,
double startScore,
double endScore)
opsZSetRemoveByScore in interface GlueGenericRedisDaoString - key Redis 데이터의 Keydouble - startScore Redis에서 삭제할 데이타 범위의 시작 Scoredouble - endScore Redis에서 삭제할 데이타 범위의 마지막 Score
public Map<String,Object> opsHashGetMap(String key)
opsHashGetMap in interface GlueGenericRedisDaoString - key Redis에서 가져올 데이터의 Key
public Object opsHashGetObject(String key,
String hashkey)
opsHashGetObject in interface GlueGenericRedisDaoString - key Redis에서 가져올 데이터의 KeyString - hashkey Hash데이터의 Key
public void opsHashAddObject(String key,
String hashkey,
Object value)
opsHashAddObject in interface GlueGenericRedisDaoString - key Redis에서 가져올 데이터의 KeyString - hashkey Hash데이터의 KeyObject - value Hash데이터에 저장할 값
public void opsHashAddMap(String key,
Map<String,Object> value)
opsHashAddMap in interface GlueGenericRedisDaoString - key Redis에서 저장할 데이터의 KeyMap - value 저장할 map데이터public Set<String> opsHashKeys(String key)
opsHashKeys in interface GlueGenericRedisDaoString - key Redis에서 가져올 데이터의 Key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||