Redisson官方文档 - 11. Redis命令和Redisson对象匹配列表

本文涉及的产品
云数据库 Tair(兼容Redis),内存型 2GB
Redis 开源版,标准版 2GB
推荐场景:
搭建游戏排行榜
简介: Redis命令和Redisson对象内部操作的对照表。
Redis命令 Redisson对象方法
AUTH Config.setPassword()
BITCOUNT RBitSet.cardinality()
RBitSet.cardinalityAsync()
RBitSetReactive.cardinality()
BITOP RBitSet.or()
RBitSet.orAsync()
RBitSetReactive.or()
RBitSet.and()
RBitSet.andAsync()
RBitSetReactive.and()
RBitSet.not()
RBitSet.xor()
RBitSet.xorAsync()
RBitSetReactive.xor()
BITPOS RBitSet.length()
RBitSet.lengthAsync()
RBitSetReactive.length()
BLPOP RBlockingQueue.take()
RBlockingQueue.takeAsync()
RBlockingQueueReactive.take()
RBlockingQueue.poll()
RBlockingQueue.pollAsync()
RBlockingQueueReactive.poll()
RBlockingQueue.pollFromAny()
RBlockingQueue.pollFromAnyAsync()
RBlockingQueueReactive.pollFromAny()
BRPOP RBlockingDeque.takeLast()
RBlockingDeque.takeLastAsync()
RBlockingDequeReactive.takeLast()
BRPOPLPUSH RBlockingQueue.pollLastAndOfferFirstTo()
RBlockingQueue.pollLastAndOfferFirstToAsync()
RBlockingQueueReactive.pollLastAndOfferFirstTo()
CLIENT SETNAME Config.setClientName()
CLUSTER INFO ClusterNode.info()
CLUSTER KEYSLOT RKeys.getSlot()
RKeys.getSlotAsync()
RKeysReactive.getSlot()
CLUSTER NODES 在ClusterConnectionManager里使用
DBSIZE RKeys.count()
RKeys.countAsync()
RKeysReactive.count()
DECR RAtomicLong.decrementAndGet()
RAtomicLong.decrementAndGetAsync()
RAtomicLongReactive.decrementAndGetAsync()
DEL RObject.delete()
RObject.deleteAsync()
RObjectReactive.delete()
RKeys.delete()
RKeys.deleteAsync()
STRLEN RBucket.size()
RBucket.sizeAsync()
RBucketReactive.size()
EVAL RScript.eval()
RScript.evalAsync()
RScriptReactive.eval()
CLIENT REPLY RBatch.executeSkipResult()
EVALSHA RScript.evalSha()
RScript.evalShaAsync()
RScriptReactive.evalSha()
EXISTS RObject.isExists()
RObject.isExistsAsync()
RObjectReactive.isExists()
FLUSHALL RKeys.flushall()
RKeys.flushallAsync()
RKeysReactive.flushall()
FLUSHDB RKeys.flushdb()
RKeys.flushdbAsync()
RKeysReactive.flushdb()
GEOADD RGeo.add()
RGeo.addAsync()
RGeoReactive.add()
GEODIST RGeo.dist()
RGeo.distAsync()
RGeoReactive.dist()
GEOHASH RGeo.hash()
RGeo.hashAsync()
RGeoReactive.hash()
GEOPOS RGeo.pos()
RGeo.posAsync()
RGeoReactive.pos()
GEORADIUS RGeo.radius()
RGeo.radiusAsync()
RGeoReactive.radius()
RGeo.radiusWithDistance()
RGeo.radiusWithDistanceAsync()
RGeoReactive.radiusWithDistance()
RGeo.radiusWithPosition()
RGeo.radiusWithPositionAsync()
RGeoReactive.radiusWithPosition()
GEORADIUSBYMEMBER RGeo.radius()
RGeo.radiusAsync()
RGeoReactive.radius()
RGeo.radiusWithDistance()
RGeo.radiusWithDistanceAsync()
RGeoReactive.radiusWithDistance()
RGeo.radiusWithPosition()
RGeo.radiusWithPositionAsync()
RGeoReactive.radiusWithPosition()
GET RBucket.get()
RBucket.getAsync()
RBucketReactive.get()
GETBIT RBitSet.get()
RBitSet.getAsync()
RBitSetReactive.get()
GETSET RBucket.getAndSet()
RBucket.getAndSetAsync()
RBucketReactive.getAndSet()
RAtomicLong.getAndSet()
RAtomicLong.getAndSetAsync()
RAtomicLongReactive.getAndSet()
RAtomicDouble.getAndSet()
RAtomicDouble.getAndSetAsync()
RAtomicDoubleReactive.getAndSet()
HDEL RMap.fastRemove()
RMap.fastRemoveAsync()
RMapReactive.fastRemove()
HEXISTS RMap.containsKey()
RMap.containsKeyAsync()
RMapReactive.containsKey()
HGET RMap.get()
RMap.getAsync()
RMapReactive.get()
HSTRLEN RMap.valueSize()
RMap.valueSizeAsync()
RMapReactive.valueSize()
HGETALL RMap.readAllEntrySet()
RMap.readAllEntrySetAsync()
RMapReactive.readAllEntrySet()
HINCRBY RMap.addAndGet()
RMap.addAndGetAsync()
RMapReactive.addAndGet()
HINCRBYFLOAT RMap.addAndGet()
RMap.addAndGetAsync()
RMapReactive.addAndGet()
HKEYS RMap.readAllKeySet()
RMap.readAllKeySetAsync()
RMapReactive.readAllKeySet()
HLEN RMap.size()
RMap.sizeAsync()
RMapReactive.size()
HMGET RMap.getAll()
RMap.getAllAsync()
RMapReactive.getAll()
HMSET RMap.putAll()
RMap.putAllAsync()
RMapReactive.putAll()
HSET RMap.put()
RMap.putAsync()
RMapReactive.put()
HSETNX RMap.fastPutIfAbsent()
RMap.fastPutIfAbsentAsync
RMapReactive.fastPutIfAbsent()
HVALS RMap.readAllValues()
RMap.readAllValuesAsync()
RMapReactive.readAllValues()
INCR RAtomicLong.incrementAndGet()
RAtomicLong.incrementAndGetAsync()
RAtomicLongReactive.incrementAndGet()
INCRBY RAtomicLong.addAndGet()
RAtomicLong.addAndGetAsync()
RAtomicLongReactive.addAndGet()
KEYS RKeys.findKeysByPattern()
RKeys.findKeysByPatternAsync()
RKeysReactive.findKeysByPattern()
RedissonClient.findBuckets()
LINDEX RList.get()
RList.getAsync()
RListReactive.get()
LLEN RList.size()
RList.sizeAsync()
RListReactive.Size()
LPOP RQueue.poll()
RQueue.pollAsync()
RQueueReactive.poll()
LPUSH RDeque.addFirst()
RDeque.addFirstAsync()
RDequeReactive.addFirst()
RDeque.offerFirst()
RDeque.offerFirstAsync()
RDequeReactive.offerFirst()
LRANGE RList.readAll()
RList.readAllAsync()
RListReactive.readAll()
LREM RList.fastRemove()
RList.fastRemoveAsync()
RList.remove()
RList.removeAsync()
RListReactive.remove()
RDeque.removeFirstOccurrence()
RDeque.removeFirstOccurrenceAsync()
RDequeReactive.removeFirstOccurrence()
RDeque.removeLastOccurrence()
RDeque.removeLastOccurrenceAsync()
RDequeReactive.removeLastOccurrence()
LSET RList.fastSet()
RList.fastSetAsync()
RListReactive.fastSet()
LTRIM RList.trim()
RList.trimAsync()
RListReactive.trim()
LINSERT RList.addBefore()
RList.addBeforeAsync()
RList.addAfter()
RList.addAfterAsync()
RListReactive.addBefore()
RListReactive.addAfter()
MGET RedissonClient.loadBucketValues()
MIGRATE RObject.migrate()
RObject.migrateAsync()
MOVE RObject.move()
RObject.moveAsync()
MSET RedissonClient.saveBuckets()
PERSIST RExpirable.clearExpire()
RExpirable.clearExpireAsync()
RExpirableReactive.clearExpire()
PEXPIRE RExpirable.expire()
RExpirable.expireAsync()
RExpirableReactive.expire()
PEXPIREAT RExpirable.expireAt()
RExpirable.expireAtAsync()
RExpirableReactive.expireAt()
PFADD RHyperLogLog.add()
RHyperLogLog.addAsync()
RHyperLogLogReactive.add()
RHyperLogLog.addAll()
RHyperLogLog.addAllAsync()
RHyperLogLogReactive.addAll()
PFCOUNT RHyperLogLog.count()
RHyperLogLog.countAsync()
RHyperLogLogReactive.count()
RHyperLogLog.countWith()
RHyperLogLog.countWithAsync()
RHyperLogLogReactive.countWith()
PFMERGE RHyperLogLog.mergeWith()
RHyperLogLog.mergeWithAsync()
RHyperLogLogReactive.mergeWith()
PING Node.ping()
NodesGroup.pingAll()
PSUBSCRIBE RPatternTopic.addListener()
PTTL RExpirable.remainTimeToLive()
RExpirable.remainTimeToLiveAsync()
RExpirableReactive.remainTimeToLive()
PUBLISH RTopic.publish
PUNSUBSCRIBE RPatternTopic.removeListener()
RANDOMKEY RKeys.randomKey()
RKeys.randomKeyAsync()
RKeysReactive.randomKey()
RENAME RObject.rename()
RObject.renameAsync()
RObjectReactive.rename()
RENAMENX RObject.renamenx()
RObject.renamenxAsync()
RObjectReactive.renamenx()
RPOP RDeque.pollLast()
RDeque.pollLastAsync()
RDequeReactive.pollLast()
RDeque.removeLast()
RDeque.removeLastAsync()
RDequeReactive.removeLast()
RPOPLPUSH RDeque.pollLastAndOfferFirstTo()
RDeque.pollLastAndOfferFirstToAsync()
RPUSH RList.add()
RList.addAsync()
RListReactive.add()
SADD RSet.add()
RSet.addAsync()
RSetReactive.add()
SCARD RSet.size()
RSet.sizeAsync()
RSetReactive.size()
SCRIPT EXISTS RScript.scriptExists()
RScript.scriptExistsAsync()
RScriptReactive.scriptExists()
SCRIPT FLUSH RScript.scriptFlush()
RScript.scriptFlushAsync()
RScriptReactive.scriptFlush()
SCRIPT KILL RScript.scriptKill()
RScript.scriptKillAsync()
RScriptReactive.scriptKill()
SCRIPT LOAD RScript.scriptLoad()
RScript.scriptLoadAsync()
RScriptReactive.scriptLoad()
SDIFFSTORE RSet.diff()
RSet.diffAsync()
RSetReactive.diff()
SELECT Config.setDatabase()
SET RBucket.set()
RBucket.setAsync()
RBucketReactive.set()
SETBIT RBitSet.set()
RBitSet.setAsync()
RBitSet.clear()
RBitSet.clearAsync()
SETEX RBucket.set()
RBucket.setAsync()
RBucketReactive.set()
SETNX RBucket.trySet()
RBucket.trySetAsync()
RBucketReactive.trySet()
SISMEMBER RSet.contains()
RSet.containsAsync()
RSetReactive.contains()
SINTERSTORE RSet.intersection()
RSet.intersectionAsync()
RSetReactive.intersection()
SINTER RSet.readIntersection()
RSet.readIntersectionAsync()
RSetReactive.readIntersection()
SMEMBERS RSet.readAll()
RSet.readAllAsync()
RSetReactive.readAll()
SMOVE RSet.move()
RSet.moveAsync()
RSetReactive.move()
SPOP RSet.removeRandom()
RSet.removeRandomAsync()
RSetReactive.removeRandom()
SREM RSet.remove()
RSet.removeAsync()
RSetReactive.remove()
SUBSCRIBE RTopic.addListener()
RTopicReactive.addListener()
SUNION RSet.readUnion()
RSet.readUnionAsync()
RSetReactive.readUnion()
SUNIONSTORE RSet.union()
RSet.unionAsync()
RSetReactive.union()
TTL RExpirable.remainTimeToLive()
RExpirable.remainTimeToLiveAsync()
RExpirableReactive.remainTimeToLive()
UNSUBSCRIBE RTopic.removeListener()
RTopicReactive.removeListener()
WAIT RBatch.syncSlaves
RBatchReactive.syncSlaves()
ZADD RScoredSortedSet.add()
RScoredSortedSet.addAsync()
RScoredSortedSetReactive.add()
ZCARD RScoredSortedSet.size()
RScoredSortedSet.sizeAsync()
RScoredSortedSetReactive.size()
ZCOUNT RScoredSortedSet.count()
RScoredSortedSet.countAsync()
ZINCRBY RScoredSortedSet.addScore()
RScoredSortedSet.addScoreAsync()
RScoredSortedSetReactive.addScore()
ZLEXCOUNT RLexSortedSet.lexCount()
RLexSortedSet.lexCountAsync()
RLexSortedSetReactive.lexCount()
RLexSortedSet.lexCountHead()
RLexSortedSet.lexCountHeadAsync()
RLexSortedSetReactive.lexCountHead()
RLexSortedSet.lexCountTail()
RLexSortedSet.lexCountTailAsync()
RLexSortedSetReactive.lexCountTail()
ZRANGE RScoredSortedSet.valueRange()
RScoredSortedSet.valueRangeAsync()
RScoredSortedSetReactive.valueRange()
ZREVRANGE RScoredSortedSet.valueRangeReversed()
RScoredSortedSet.valueRangeReversedAsync()
RScoredSortedSetReactive.valueRangeReversed()
ZUNIONSTORE RScoredSortedSet.union()
RScoredSortedSet.unionAsync()
RScoredSortedSetReactive.union()
ZINTERSTORE RScoredSortedSet.intersection()
RScoredSortedSet.intersectionAsync()
RScoredSortedSetReactive.intersection()
ZRANGEBYLEX RLexSortedSet.lexRange()
RLexSortedSet.lexRangeAsync()
RLexSortedSetReactive.lexRange()
RLexSortedSet.lexRangeHead()
RLexSortedSet.lexRangeHeadAsync()
RLexSortedSetReactive.lexRangeHead()
RLexSortedSet.lexRangeTail()
RLexSortedSet.lexRangeTailAsync()
RLexSortedSetReactive.lexRangeTail()
ZRANGEBYSCORE RScoredSortedSet.valueRange()
RScoredSortedSet.valueRangeAsync()
RScoredSortedSetReactive.valueRange()
RScoredSortedSet.entryRange()
RScoredSortedSet.entryRangeAsync()
RScoredSortedSetReactive.entryRange()
TIME RedissonClient.getNodesGroup().getNode().time()
RedissonClient.getClusterNodesGroup().getNode().time()
ZRANK RScoredSortedSet.rank()
RScoredSortedSet.rankAsync()
RScoredSortedSetReactive.rank()
ZREM RScoredSortedSet.remove()
RScoredSortedSet.removeAsync()
RScoredSortedSetReactive.remove()
RScoredSortedSet.removeAll()
RScoredSortedSet.removeAllAsync()
RScoredSortedSetReactive.removeAll()
ZREMRANGEBYLEX RLexSortedSet.removeRangeByLex()
RLexSortedSet.removeRangeByLexAsync()
RLexSortedSetReactive.removeRangeByLex()
RLexSortedSet.removeRangeHeadByLex()
RLexSortedSet.removeRangeHeadByLexAsync()
RLexSortedSetReactive.removeRangeHeadByLex()
RLexSortedSet.removeRangeTailByLex()
RLexSortedSet.removeRangeTailByLexAsync()
RLexSortedSetReactive.removeRangeTailByLex()
ZREMRANGEBYLEX RScoredSortedSet.removeRangeByRank()
RScoredSortedSet.removeRangeByRankAsync()
RScoredSortedSetReactive.removeRangeByRank()
ZREMRANGEBYSCORE RScoredSortedSet.removeRangeByScore()
RScoredSortedSet.removeRangeByScoreAsync()
RScoredSortedSetReactive.removeRangeByScore()
ZREVRANGEBYSCORE RScoredSortedSet.entryRangeReversed()
RScoredSortedSet.entryRangeReversedAsync()
RScoredSortedSetReactive.entryRangeReversed()
RScoredSortedSet.valueRangeReversed()
RScoredSortedSet.valueRangeReversedAsync()
RScoredSortedSetReactive.valueRangeReversed()
ZREVRANK RScoredSortedSet.revRank()
RScoredSortedSet.revRankAsync()
RScoredSortedSetReactive.revRank()
ZSCORE RScoredSortedSet.getScore()
RScoredSortedSet.getScoreAsync()
RScoredSortedSetReactive.getScore()
SCAN RKeys.getKeys()
RKeysReactive.getKeys()
SSCAN RSet.iterator()
RSetReactive.iterator()
HSCAN RMap.keySet().iterator()
RMap.values().iterator()
RMap.entrySet().iterator()
RMapReactive.keyIterator()
RMapReactive.valueIterator()
RMapReactive.entryIterator()
ZSCAN RScoredSortedSet.iterator()
RScoredSortedSetReactive.iterator()
相关实践学习
基于Redis实现在线游戏积分排行榜
本场景将介绍如何基于Redis数据库实现在线游戏中的游戏玩家积分排行榜功能。
云数据库 Redis 版使用教程
云数据库Redis版是兼容Redis协议标准的、提供持久化的内存数据库服务,基于高可靠双机热备架构及可无缝扩展的集群架构,满足高读写性能场景及容量需弹性变配的业务需求。 产品详情:https://www.aliyun.com/product/kvstore     ------------------------------------------------------------------------- 阿里云数据库体验:数据库上云实战 开发者云会免费提供一台带自建MySQL的源数据库 ECS 实例和一台目标数据库 RDS实例。跟着指引,您可以一步步实现将ECS自建数据库迁移到目标数据库RDS。 点击下方链接,领取免费ECS&RDS资源,30分钟完成数据库上云实战!https://developer.aliyun.com/adc/scenario/51eefbd1894e42f6bb9acacadd3f9121?spm=a2c6h.13788135.J_3257954370.9.4ba85f24utseFl
目录
相关文章
|
2月前
|
缓存 NoSQL Java
大数据-50 Redis 分布式锁 乐观锁 Watch SETNX Lua Redisson分布式锁 Java实现分布式锁
大数据-50 Redis 分布式锁 乐观锁 Watch SETNX Lua Redisson分布式锁 Java实现分布式锁
61 3
大数据-50 Redis 分布式锁 乐观锁 Watch SETNX Lua Redisson分布式锁 Java实现分布式锁
|
2月前
|
存储 消息中间件 NoSQL
Redis 数据结构与对象
【10月更文挑战第15天】在实际应用中,需要根据具体的业务需求和数据特点来选择合适的数据结构,并合理地设计数据模型,以充分发挥 Redis 的优势。
55 8
|
2月前
|
NoSQL 关系型数据库 MySQL
Redis 列表(List)
10月更文挑战第16天
22 2
|
20天前
|
存储 NoSQL Java
Redis命令:列表模糊删除详解
通过本文的介绍,我们详细探讨了如何在Redis中实现列表的模糊删除。虽然Redis没有直接提供模糊删除命令,但可以通过组合使用 `LRANGE`和 `LREM`命令,并在客户端代码中进行模糊匹配,来实现这一功能。希望本文能帮助你在实际应用中更有效地操作Redis列表。
32 0
|
2月前
|
缓存 NoSQL 测试技术
Redis如何解决频繁的命令往返造成的性能瓶颈!
Redis如何解决频繁的命令往返造成的性能瓶颈!
|
2月前
|
存储 分布式计算 NoSQL
大数据-40 Redis 类型集合 string list set sorted hash 指令列表 执行结果 附截图
大数据-40 Redis 类型集合 string list set sorted hash 指令列表 执行结果 附截图
27 3
|
28天前
|
存储 NoSQL Redis
Redis常见面试题:ZSet底层数据结构,SDS、压缩列表ZipList、跳表SkipList
String类型底层数据结构,List类型全面解析,ZSet底层数据结构;简单动态字符串SDS、压缩列表ZipList、哈希表、跳表SkipList、整数数组IntSet
|
2月前
|
NoSQL Redis 数据安全/隐私保护
Redis 命令
10月更文挑战第15天
28 0
|
2月前
|
消息中间件 缓存 NoSQL
Redis 是一个高性能的键值对存储系统,常用于缓存、消息队列和会话管理等场景。
【10月更文挑战第4天】Redis 是一个高性能的键值对存储系统,常用于缓存、消息队列和会话管理等场景。随着数据增长,有时需要将 Redis 数据导出以进行分析、备份或迁移。本文详细介绍几种导出方法:1)使用 Redis 命令与重定向;2)利用 Redis 的 RDB 和 AOF 持久化功能;3)借助第三方工具如 `redis-dump`。每种方法均附有示例代码,帮助你轻松完成数据导出任务。无论数据量大小,总有一款适合你。
78 6
下一篇
无影云桌面