
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 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 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¿¡¼ °¡Á®¿Ã µ¥ÀÌÅÍÀÇ KeystartIndex - Redis¿¡¼ °¡Á®¿Ã µ¥ÀÌÅÍÀÇ ½ÃÀÛ ScoreendIndex - 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–2020 POSCO ICT. All rights reserved.