开发者社区> 问答> 正文

Redis 链路支持(2)


  1. 同时激活对应的 profile:[backcolor=transparent] [backcolor=transparent]<activeProfiles>
  2. [backcolor=transparent]     [backcolor=transparent]<activeProfile>[backcolor=transparent]edas.oss.repo[backcolor=transparent]</activeProfile>
  3. [backcolor=transparent] [backcolor=transparent]</activeProfiles>

在项目的 Maven 的 pom.xml 文件中,添加依赖。
  1. [backcolor=transparent]<dependency>
  2. [backcolor=transparent]  [backcolor=transparent]<groupId>[backcolor=transparent]com.alibaba.middleware[backcolor=transparent]</groupId>
  3. [backcolor=transparent]  [backcolor=transparent]<artifactId>[backcolor=transparent]spring-data-redis[backcolor=transparent]</artifactId>
  4. [backcolor=transparent]  [backcolor=transparent]<version>[backcolor=transparent]1.7.4.RELEASE[backcolor=transparent]</version>
  5. [backcolor=transparent]</dependency>


Redis 命令覆盖情况


以下是 spring-data-redis 对 Redis 命令的覆盖情况,以及各自的 EagleEye trace 日志支持情况。

Key 类型操作

数据结构/对象操作spring-data-redis 方法EDAS 版本是否支持 EagleEye 链路备注
KeyDELRedisOperations.deleteY
DUMPRedisOperations.dumpY
EXISTSRedisOperations.hasKeyY
EXPIRERedisOperations.expireY
EXPIREATRedisOperations.expireAtY
KEYSRedisOperations.keysY
MIGRATE不支持
MOVERedisOperations.moveY
OBJECT不支持
PERSISTRedisOperations.persistY
PEXPIRERedisOperations.expireY
PEXPIREATRedisOperations.expireAtY
PTTLRedisOperations.getExpireY
RANDOMKEYRedisOperations.randomKeyY
RENAMERedisOperations.renameYkey: oldKey:${oldKey};newKey:${newKey}
RENAMENXRedisOperations.renameIfAbsentY
RESTORERedisOperations.restoreY
SORTRedisKeyCommands.sortYkey:query:${SortQuery}
TTLRedisOperations.getExpireY
TYPERedisOperations.typeY
SCANRedisKeyCommands.scan[backcolor=transparent]N 


String 类型操作

数据结构/对象操作spring-data-redis方法EDAS 版本是否支持 EagleEye 链路备注
StringAPPENDValueOperations.appendY
BITCOUNT不支持
BITOP不支持
BITFIELD不支持
DECRValueOperations.incrementY
DECRBYValueOperations.incrementY
GETValueOperations.getY
GETBITValueOperations.getBitY
GETRANGEValueOperations.getY
GETSETValueOperations.getAndSetY
INCRValueOperations.incrementY
INCRBYValueOperations.incrementY
INCRBYFLOATValueOperations.incrementY
MGETValueOperations.multiGetY
MSETValueOperations.multiSetY
MSETNXValueOperations.multiSetIfAbsentY
PSETEXValueOperations.setY
SETValueOperations.setY
SETBITValueOperations.setBitY
SETEXValueOperations.setY
SETNXValueOperations.setIfAbsentY
SETRANGEValueOperations.setY
STRLENValueOperations.sizeY 


Hash 类型操作

数据结构/对象操作spring-data-redis方法EDAS 版本是否支持 EagleEye 链路备注
HashHDELHashOperations.deleteY
HEXISTSHashOperations.hasKeyY
HGETHashOperations.getY
HGETALLHashOperations.entriesY
HINCRBYHashOperations.incrementY
HINCRBYFLOATHashOperations.incrementY
HKEYSHashOperations.keysY
HLENHashOperations.sizeY
HMGETHashOperations.multiGetY
HMSETHashOperations.putAllY
HSETHashOperations.putY
HSETNXHashOperations.putIfAbsentY
HVALSHashOperations.valuesY
HSCANHashOperations.sanY
HSTRLEN不支持 


List 类型操作

数据结构/对象操作spring-data-redis方法EDAS 版本是否支持EagleEye链路备注
ListBLPOPListOperations.leftPopY
BRPOPListOperations.rightPopY
BRPOPLPUSHListOperations.rightPopAndLeftPushYkey:sourceKey:${sourceKey};destKey:${destKey}
LINDEXListOperations.indexY
LINSERTListOperations.leftPushY
LLENListOperations.sizeY
LPOPListOperations.leftPopY
LPUSHListOperations.leftPushY
LPUSHXListOperations.leftPushIfPresentY
LRANGEListOperations.rangeY
LREMListOperations.removeY
LSETListOperations.setY
LTRIMListOperations.trimY
RPOPListOperations.rightPopY
RPOPLPUSHListOperations.rightPopAndLeftPushYkey:sourceKey:${sourceKey};destKey:${destKey}
RPUSHListOperations.rightPushY
RPUSHXListOperations.rightPushIfPresentY 


Set 类型操作

数据结构/对象操作spring-data-redis方法EDAS 版本是否支持 EagleEye 链路备注
SetSADDSetOpertions.addY
SCARDSetOpertions.sizeY
SDIFFSetOpertions.differenceY
SDIFFSTORESetOpertions.differenceAndStoreY
SINTERSetOpertions.intersectY
SINTERSTORESetOpertions.intersectAndStoreY
SISMEMBERSetOpertions.isMemberY
SMEMBERSSetOpertions.membersY
SMOVESetOpertions.moveY
SPOPSetOpertions.popY
SRANDMEMBERSetOpertions.randomMember randomMembers distinctRandomMembersY
SREMSetOpertions.removeY
SUNIONSetOpertions.unionY
SUNIONSTORESetOpertions.unionAndStoreY
SSCANSetOpertions.scanY 


SortedSet 类型操作

数据结构/对象操作spring-data-redis方法EDAS 版本是否支持 EagleEye 链路备注
SortedSetZADDZSetOperations.addY
ZCARDZSetOperations.size/zCardY
ZCOUNTZSetOperations.countY
ZINCRBYZSetOperations.incrementScoreY
ZRANGEZSetOperYations.range rangeWithScoresY
ZRANGEBYSCOREZSetOperations.rangeByScore rangeByScoreWithScoresY
ZRANKZSetOperations.rankY
ZREMZSetOperations.removeY
ZREMRANGEBYRANKZSetOperations.removeRangeY
ZREMRANGEBYSCOREZSetOperations.removeRangeByScoreY
ZREVRANGEZSetOperations.reverseRange reverseRangeWithScoresY
ZREVRANGEBYSCOREZSetOperations.reverseRangeByScore reverseRangeByScoreWithScoresY
ZREVRANKZSetOperations.reverseRankY
ZSCOREZSetOperations.scoreY
ZUNIONSTOREZSetOperations.unionAndStoreY
ZINTERSTOREZSetOperations.intersectAndStoreY
ZSCANZSetOperations.scanY
ZRANGEBYLEXZSetOperations.rangeByLexY
ZLEXCOUNT不支持
ZREMRANGEBYLEX不支持 


HyperLogLog 操作

数据结构/对象操作spring-data-redis方法EDAS 版本是否支持 EagleEye 链路备注
HyperLogLogPFADDHyperLogLogOperations.addY
PFCOUNTHyperLogLogOperations.sizeY
PFMERGEHyperLogLogOperations.unionYkey:dest:${destination}


Pub/Sub(发布/订阅)操作

数据结构/对象操作spring-data-redis方法EDAS 版本是否支持 EagleEye 链路备注
Pub/SubPSUBSCRIBE不支持
PUBLISHRedisOperations.convertAndSendYkey: msg:${msg}
PUBSUBRedisMessageListenerContainer .setMessageListeners .addMessageListener[backcolor=transparent]N
PUNSUBSCRIBE不支持
UNSUBSCRIBE不支持 


Transaction(事务)操作

数据结构/对象操作spring-data-redis方法EDAS 版本是否支持 EagleEye 链路备注
TransactionDISCARDRedisOperations.discardY
EXECRedisOperations.execYkey: execRaw
MULTIRedisOperations.multiY
UNWATCHRedisOperations.unwatchY
WATCHRedisOperations.watchY 


Script(脚本)操作

数据结构/对象操作spring-data-redis方法EDAS 版本是否支持 EagleEye 链路备注
ScriptEVALScriptExecutor.executeYkey: 空
EVALSHAScriptExecutor.executeYkey: 空
SCRIPT EXISTSRedisScriptingCommands.scriptExists[backcolor=transparent]N
SCRIPT FLUSHRedisScriptingCommands.scriptFlush[backcolor=transparent]N
SCRIPT KILLRedisScriptingCommands.scriptKill[backcolor=transparent]N
SCRIPT LOADRedisScriptingCommands.scriptLoad[backcolor=transparent]N

展开
收起
猫饭先生 2017-10-26 10:32:45 2302 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
Redis在唯品会的应用实践——架构演进与功能定制 立即下载
微博的Redis定制之路 立即下载
云数据库Redis版的开源之路 立即下载