|
||||||||||
| 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 | |||||||||