This documentation is not maintained. Please refer to doc.castsoftware.com/technologies to find the latest updates.

CAST supports Redis via its com.castsoftware.nosqljava extension. Details about the support provided for Java source code is discussed below.

Supported Libraries

LibraryVersionSupported
JedisUp to: 4.3.2

JedisPoolUp to: 4.3.2

JedisSentinePoolUp to: 4.3.2

JedisCommandsUp to: 4.3.2

JedisTransactionsUp to: 4.3.2

JedisTransactionBaseUp to: 4.3.2

LettuceUp to: 6.2.2

RedisClientUp to: 6.2.2

RedisCommandsUp to: 6.2.2

RedisAsyncCommandsUp to: 6.2.2

Supported Operations

Operation

Scenario

Methods Supported

InsertJedis Base Commands

redis.clients.jedis.Jedis.copy

redis.clients.jedis.Jedis.expire

redis.clients.jedis.Jedis.expireAt

redis.clients.jedis.Jedis.geoadd

redis.clients.jedis.Jedis.geosearchStore

redis.clients.jedis.Jedis.geosearchStoreStoreDist

redis.clients.jedis.Jedis.hmset

redis.clients.jedis.Jedis.hset

redis.clients.jedis.Jedis.hsetnx

redis.clients.jedis.Jedis.linsert

redis.clients.jedis.Jedis.lpush

redis.clients.jedis.Jedis.lpushx

redis.clients.jedis.Jedis.lset

redis.clients.jedis.Jedis.rpush

redis.clients.jedis.Jedis.rpushx

redis.clients.jedis.Jedis.blmove

redis.clients.jedis.Jedis.brpoplpush

redis.clients.jedis.Jedis.lmove

redis.clients.jedis.Jedis.rpoplpush

redis.clients.jedis.Jedis.append

redis.clients.jedis.Jedis.getSet

redis.clients.jedis.Jedis.set

redis.clients.jedis.Jedis.psetex

redis.clients.jedis.Jedis.setbit

redis.clients.jedis.Jedis.setex

redis.clients.jedis.Jedis.setnx

redis.clients.jedis.Jedis.setrange

redis.clients.jedis.Jedis.setGet

redis.clients.jedis.Jedis.sadd

redis.clients.jedis.Jedis.sdiffstore

redis.clients.jedis.Jedis.sinterstore

redis.clients.jedis.Jedis.sunionstore

redis.clients.jedis.Jedis.smove

redis.clients.jedis.Jedis.zadd

redis.clients.jedis.Jedis.zdiffStore

redis.clients.jedis.Jedis.zinterstore

redis.clients.jedis.Jedis.zunionstore

InsertJedis Transaction Commands

redis.clients.jedis.TransactionBase.copy

redis.clients.jedis.TransactionBase.expire

redis.clients.jedis.TransactionBase.expireAt

redis.clients.jedis.TransactionBase.geoadd

redis.clients.jedis.TransactionBase.geosearchStore

redis.clients.jedis.TransactionBase.geosearchStoreStoreDist

redis.clients.jedis.TransactionBase.hmset

redis.clients.jedis.TransactionBase.hset

redis.clients.jedis.TransactionBase.hsetnx

redis.clients.jedis.TransactionBase.linsert

redis.clients.jedis.TransactionBase.lpush

redis.clients.jedis.TransactionBase.lpushx

redis.clients.jedis.TransactionBase.lset

redis.clients.jedis.TransactionBase.rpush

redis.clients.jedis.TransactionBase.rpushx

redis.clients.jedis.TransactionBase.blmove

redis.clients.jedis.TransactionBase.brpoplpush

redis.clients.jedis.TransactionBase.lmove

redis.clients.jedis.TransactionBase.rpoplpush

redis.clients.jedis.TransactionBase.append

redis.clients.jedis.TransactionBase.getSet

redis.clients.jedis.TransactionBase.set

redis.clients.jedis.TransactionBase.psetex

redis.clients.jedis.TransactionBase.setbit

redis.clients.jedis.TransactionBase.setex

redis.clients.jedis.TransactionBase.setnx

redis.clients.jedis.TransactionBase.setrange

redis.clients.jedis.TransactionBase.setGet

redis.clients.jedis.TransactionBase.sadd

redis.clients.jedis.TransactionBase.sdiffstore

redis.clients.jedis.TransactionBase.sinterstore

redis.clients.jedis.TransactionBase.sunionstore

redis.clients.jedis.TransactionBase.smove

redis.clients.jedis.TransactionBase.zadd

redis.clients.jedis.TransactionBase.zdiffStore

redis.clients.jedis.TransactionBase.zinterstore

redis.clients.jedis.TransactionBase.zunionstore

InsertJedisCommands Commands

redis.clients.jedis.commands.KeyCommands.copy

redis.clients.jedis.commands.KeyCommands.expire

redis.clients.jedis.commands.KeyCommands.expireAt

redis.clients.jedis.commands.GeoCommands.geoadd

redis.clients.jedis.commands.GeoCommands.geosearchStore

redis.clients.jedis.commands.GeoCommands.geosearchStoreStoreDist

redis.clients.jedis.commands.HashCommands.hmset

redis.clients.jedis.commands.HashCommands.hset

redis.clients.jedis.commands.HashCommands.hsetnx

redis.clients.jedis.commands.ListCommands.linsert

redis.clients.jedis.commands.ListCommands.lpush

redis.clients.jedis.commands.ListCommands.lpushx

redis.clients.jedis.commands.ListCommands.lset

redis.clients.jedis.commands.ListCommands.rpush

redis.clients.jedis.commands.ListCommands.rpushx

redis.clients.jedis.commands.ListCommands.blmove

redis.clients.jedis.commands.ListCommands.brpoplpush

redis.clients.jedis.commands.ListCommands.lmove

redis.clients.jedis.commands.ListCommands.rpoplpush

redis.clients.jedis.commands.StringCommands.append

redis.clients.jedis.commands.StringCommands.getSet

redis.clients.jedis.commands.StringCommands.set

redis.clients.jedis.commands.StringCommands.psetex

redis.clients.jedis.commands.StringCommands.setbit

redis.clients.jedis.commands.StringCommands.setex

redis.clients.jedis.commands.StringCommands.setnx

redis.clients.jedis.commands.StringCommands.setrange

redis.clients.jedis.commands.StringCommands.setGet

redis.clients.jedis.commands.SetCommands.sadd

redis.clients.jedis.commands.SetCommands.sdiffstore

redis.clients.jedis.commands.SetCommands.sinterstore

redis.clients.jedis.commands.SetCommands.sunionstore

redis.clients.jedis.commands.SetCommands.smove

redis.clients.jedis.commands.SortedSetCommands.zadd

redis.clients.jedis.commands.SortedSetCommands.zdiffStore

redis.clients.jedis.commands.SortedSetCommands.zinterstore

redis.clients.jedis.commands.SortedSetCommands.zunionstore

InsertLettuce Commands

io.lettuce.core.api.sync.RedisSetCommands.smove

io.lettuce.core.api.async.RedisSetAsyncCommands.smove

io.lettuce.core.api.sync.RedisListCommands.blmove

io.lettuce.core.api.sync.RedisListCommands.lmove

io.lettuce.core.api.sync.RedisListCommands.rpoplpush

io.lettuce.core.api.async.RedisListAsyncCommands.blmove

io.lettuce.core.api.async.RedisListAsyncCommands.lmove

io.lettuce.core.api.async.RedisListAsyncCommands.rpoplpush

io.lettuce.core.api.sync.RedisListCommands.brpoplpush

io.lettuce.core.api.async.RedisListAsyncCommands.brpoplpush

io.lettuce.core.api.sync.RedisStringCommands.bitopAnd

io.lettuce.core.api.sync.RedisStringCommands.bitopNot

io.lettuce.core.api.sync.RedisStringCommands.bitopOr

io.lettuce.core.api.sync.RedisStringCommands.bitopXor

io.lettuce.core.api.async.RedisStringAsyncCommands.bitopAnd

io.lettuce.core.api.async.RedisStringAsyncCommands.bitopNot

io.lettuce.core.api.async.RedisStringAsyncCommands.bitopOr

io.lettuce.core.api.async.RedisStringAsyncCommands.bitopXor

io.lettuce.core.api.sync.RedisStringCommands.setGet

io.lettuce.core.api.sync.RedisStringCommands.getset

io.lettuce.core.api.async.RedisStringAsyncCommands.setGet

io.lettuce.core.api.async.RedisStringAsyncCommands.getset

io.lettuce.core.api.sync.RedisGeoCommands.geosearchstore

io.lettuce.core.api.async.RedisGeoAsyncCommands.geosearchstore

io.lettuce.core.api.sync.RedisGeoCommands.geoadd

io.lettuce.core.api.async.RedisGeoAsyncCommands.geoadd

io.lettuce.core.api.sync.RedisHashCommands.hmset

io.lettuce.core.api.sync.RedisHashCommands.hset

io.lettuce.core.api.sync.RedisHashCommands.hsetnx

io.lettuce.core.api.async.RedisHashAsyncCommands.hmset

io.lettuce.core.api.async.RedisHashAsyncCommands.hset

io.lettuce.core.api.async.RedisHashAsyncCommands.hsetnx

io.lettuce.core.api.sync.RedisStringCommands.append

io.lettuce.core.api.sync.RedisStringCommands.psetex

io.lettuce.core.api.sync.RedisStringCommands.set

io.lettuce.core.api.sync.RedisStringCommands.setbit

io.lettuce.core.api.sync.RedisStringCommands.setex

io.lettuce.core.api.sync.RedisStringCommands.setnx

io.lettuce.core.api.sync.RedisStringCommands.setrange

io.lettuce.core.api.sync.RedisStringCommands.mset

io.lettuce.core.api.sync.RedisStringCommands.msetnx

io.lettuce.core.api.async.RedisStringAsyncCommands.append

io.lettuce.core.api.async.RedisStringAsyncCommands.psetex

io.lettuce.core.api.async.RedisStringAsyncCommands.set

io.lettuce.core.api.async.RedisStringAsyncCommands.setbit

io.lettuce.core.api.async.RedisStringAsyncCommands.setex

io.lettuce.core.api.async.RedisStringAsyncCommands.setnx

io.lettuce.core.api.async.RedisStringAsyncCommands.setrange

io.lettuce.core.api.async.RedisStringAsyncCommands.mset

io.lettuce.core.api.async.RedisStringAsyncCommands.msetnx

io.lettuce.core.api.sync.RedisSetCommands.sadd

io.lettuce.core.api.async.RedisSetAsyncCommands.sadd

io.lettuce.core.api.sync.RedisListCommands.linsert

io.lettuce.core.api.sync.RedisListCommands.lpush

io.lettuce.core.api.sync.RedisListCommands.lpushx

io.lettuce.core.api.sync.RedisListCommands.lset

io.lettuce.core.api.sync.RedisListCommands.rpush

io.lettuce.core.api.sync.RedisListCommands.rpushx

io.lettuce.core.api.async.RedisListAsyncCommands.linsert

io.lettuce.core.api.async.RedisListAsyncCommands.lpush

io.lettuce.core.api.async.RedisListAsyncCommands.lpushx

io.lettuce.core.api.async.RedisListAsyncCommands.lset

io.lettuce.core.api.async.RedisListAsyncCommands.rpush

io.lettuce.core.api.async.RedisListAsyncCommands.rpushx

io.lettuce.core.api.sync.RedisSetCommands.sdiffstore

io.lettuce.core.api.sync.RedisSetCommands.sinterstore

io.lettuce.core.api.sync.RedisSetCommands.sunionstore

io.lettuce.core.api.async.RedisSetAsyncCommands.sdiffstore

io.lettuce.core.api.async.RedisSetAsyncCommands.sinterstore

io.lettuce.core.api.async.RedisSetAsyncCommands.sunionstore

SelectJedis Base Commands

redis.clients.jedis.Jedis.scan

redis.clients.jedis.Jedis.keys

redis.clients.jedis.Jedis.exists

redis.clients.jedis.Jedis.sort

redis.clients.jedis.Jedis.expireTime

redis.clients.jedis.Jedis.geodist

redis.clients.jedis.Jedis.geohash

redis.clients.jedis.Jedis.geopos

redis.clients.jedis.Jedis.georadius

redis.clients.jedis.Jedis.georadiusByMember

redis.clients.jedis.Jedis.georadiusByMemberReadonly

redis.clients.jedis.Jedis.georadiusReadonly

redis.clients.jedis.Jedis.geosearch

redis.clients.jedis.Jedis.hexists

redis.clients.jedis.Jedis.hget

redis.clients.jedis.Jedis.hgetAll

redis.clients.jedis.Jedis.hkeys

redis.clients.jedis.Jedis.hlen

redis.clients.jedis.Jedis.hmget

redis.clients.jedis.Jedis.hrandfield

redis.clients.jedis.Jedis.hrandfieldWithValues

redis.clients.jedis.Jedis.hscan

redis.clients.jedis.Jedis.hstrlen

redis.clients.jedis.Jedis.hvals

redis.clients.jedis.Jedis.lindex

redis.clients.jedis.Jedis.llen

redis.clients.jedis.Jedis.lpos

redis.clients.jedis.Jedis.lrange

redis.clients.jedis.Jedis.bitfield

redis.clients.jedis.Jedis.bitfieldReadonly

redis.clients.jedis.Jedis.bitpos

redis.clients.jedis.Jedis.bitcount

redis.clients.jedis.Jedis.getbit

redis.clients.jedis.Jedis.getSet

redis.clients.jedis.Jedis.getDel

redis.clients.jedis.Jedis.getrange

redis.clients.jedis.Jedis.getEx

redis.clients.jedis.Jedis.get

redis.clients.jedis.Jedis.strlen

redis.clients.jedis.Jedis.setGet

redis.clients.jedis.Jedis.scard

redis.clients.jedis.Jedis.sismember

redis.clients.jedis.Jedis.smismember

redis.clients.jedis.Jedis.srandmember

redis.clients.jedis.Jedis.sscan

redis.clients.jedis.Jedis.zscore

redis.clients.jedis.Jedis.zcount

redis.clients.jedis.Jedis.zlexcount

redis.clients.jedis.Jedis.zmscore

redis.clients.jedis.Jedis.zrandmember

redis.clients.jedis.Jedis.zrandmemberWithScores

redis.clients.jedis.Jedis.zrange

redis.clients.jedis.Jedis.zrangeByLex

redis.clients.jedis.Jedis.zrangeByScore

redis.clients.jedis.Jedis.zrangeByScoreWithScores

redis.clients.jedis.Jedis.zrangeWithScores

redis.clients.jedis.Jedis.zrank

redis.clients.jedis.Jedis.zrevrange

redis.clients.jedis.Jedis.zrevrangeByLex

redis.clients.jedis.Jedis.zrevrangeByScore

redis.clients.jedis.Jedis.zrevrangeByScoreWithScores

redis.clients.jedis.Jedis.zrevrangeWithScores

redis.clients.jedis.Jedis.zrevrank

redis.clients.jedis.Jedis.zscan

redis.clients.jedis.Jedis.sdiff

redis.clients.jedis.Jedis.sinter

redis.clients.jedis.Jedis.sunion

redis.clients.jedis.Jedis.zdiff

redis.clients.jedis.Jedis.zinter

redis.clients.jedis.Jedis.zunion

redis.clients.jedis.Jedis.sdiffstore

redis.clients.jedis.Jedis.sinterstore

redis.clients.jedis.Jedis.sunionstore

redis.clients.jedis.Jedis.zdiffStore

redis.clients.jedis.Jedis.zinterstore

redis.clients.jedis.Jedis.zunionstore

redis.clients.jedis.Jedis.smembers

redis.clients.jedis.Jedis.mget

SelectJedis Transaction Commands

redis.clients.jedis.TransactionBase.scan

redis.clients.jedis.TransactionBase.keys

redis.clients.jedis.TransactionBase.exists

redis.clients.jedis.TransactionBase.sort

redis.clients.jedis.TransactionBase.expireTime

redis.clients.jedis.TransactionBase.geodist

redis.clients.jedis.TransactionBase.geohash

redis.clients.jedis.TransactionBase.geopos

redis.clients.jedis.TransactionBase.georadius

redis.clients.jedis.TransactionBase.georadiusByMember

redis.clients.jedis.TransactionBase.georadiusByMemberReadonly

redis.clients.jedis.TransactionBase.georadiusReadonly

redis.clients.jedis.TransactionBase.geosearch

redis.clients.jedis.TransactionBase.hexists

redis.clients.jedis.TransactionBase.hget

redis.clients.jedis.TransactionBase.hgetAll

redis.clients.jedis.TransactionBase.hkeys

redis.clients.jedis.TransactionBase.hlen

redis.clients.jedis.TransactionBase.hmget

redis.clients.jedis.TransactionBase.hrandfield

redis.clients.jedis.TransactionBase.hrandfieldWithValues

redis.clients.jedis.TransactionBase.hscan

redis.clients.jedis.TransactionBase.hstrlen

redis.clients.jedis.TransactionBase.hvals

redis.clients.jedis.TransactionBase.lindex

redis.clients.jedis.TransactionBase.llen

redis.clients.jedis.TransactionBase.lpos

redis.clients.jedis.TransactionBase.lrange

redis.clients.jedis.TransactionBase.bitfield

redis.clients.jedis.TransactionBase.bitfieldReadonly

redis.clients.jedis.TransactionBase.bitpos

redis.clients.jedis.TransactionBase.bitcount

redis.clients.jedis.TransactionBase.getbit

redis.clients.jedis.TransactionBase.getSet

redis.clients.jedis.TransactionBase.getDel

redis.clients.jedis.TransactionBase.getrange

redis.clients.jedis.TransactionBase.getEx

redis.clients.jedis.TransactionBase.get

redis.clients.jedis.TransactionBase.strlen

redis.clients.jedis.TransactionBase.setGet

redis.clients.jedis.TransactionBase.mget

redis.clients.jedis.TransactionBase.scard

redis.clients.jedis.TransactionBase.sismember

redis.clients.jedis.TransactionBase.smismember

redis.clients.jedis.TransactionBase.srandmember

redis.clients.jedis.TransactionBase.sscan

redis.clients.jedis.TransactionBase.zscore

redis.clients.jedis.TransactionBase.zcount

redis.clients.jedis.TransactionBase.zlexcount

redis.clients.jedis.TransactionBase.zmscore

redis.clients.jedis.TransactionBase.zrandmember

redis.clients.jedis.TransactionBase.zrandmemberWithScores

redis.clients.jedis.TransactionBase.zrange

redis.clients.jedis.TransactionBase.zrangeByLex

redis.clients.jedis.TransactionBase.zrangeByScore

redis.clients.jedis.TransactionBase.zrangeByScoreWithScores

redis.clients.jedis.TransactionBase.zrangeWithScores

redis.clients.jedis.TransactionBase.zrank

redis.clients.jedis.TransactionBase.zrevrange

redis.clients.jedis.TransactionBase.zrevrangeByLex

redis.clients.jedis.TransactionBase.zrevrangeByScore

redis.clients.jedis.TransactionBase.zrevrangeByScoreWithScores

redis.clients.jedis.TransactionBase.zrevrangeWithScores

redis.clients.jedis.TransactionBase.zrevrank

redis.clients.jedis.TransactionBase.zscan

redis.clients.jedis.TransactionBase.sdiff

redis.clients.jedis.TransactionBase.sinter

redis.clients.jedis.TransactionBase.sunion

redis.clients.jedis.TransactionBase.zdiff

redis.clients.jedis.TransactionBase.zinter

redis.clients.jedis.TransactionBase.zunion

redis.clients.jedis.TransactionBase.sdiffstore

redis.clients.jedis.TransactionBase.sinterstore

redis.clients.jedis.TransactionBase.sunionstore

redis.clients.jedis.TransactionBase.zdiffStore

redis.clients.jedis.TransactionBase.zinterstore

redis.clients.jedis.TransactionBase.zunionstore

redis.clients.jedis.TransactionBase.smembers

SelectJedisCommands Commands

redis.clients.jedis.commands.KeyCommands.scan

redis.clients.jedis.commands.KeyCommands.keys

redis.clients.jedis.commands.KeyCommands.exists

redis.clients.jedis.commands.KeyCommands.sort

redis.clients.jedis.commands.KeyCommands.expireTime

redis.clients.jedis.commands.GeoCommands.geodist

redis.clients.jedis.commands.GeoCommands.geohash

redis.clients.jedis.commands.GeoCommands.geopos

redis.clients.jedis.commands.GeoCommands.georadius

redis.clients.jedis.commands.GeoCommands.georadiusByMember

redis.clients.jedis.commands.GeoCommands.georadiusByMemberReadonly

redis.clients.jedis.commands.GeoCommands.georadiusReadonly

redis.clients.jedis.commands.GeoCommands.geosearch

redis.clients.jedis.commands.HashCommands.hexists

redis.clients.jedis.commands.HashCommands.hget

redis.clients.jedis.commands.HashCommands.hgetAll

redis.clients.jedis.commands.HashCommands.hkeys

redis.clients.jedis.commands.HashCommands.hlen

redis.clients.jedis.commands.HashCommands.hmget

redis.clients.jedis.commands.HashCommands.hrandfield

redis.clients.jedis.commands.HashCommands.hrandfieldWithValues

redis.clients.jedis.commands.HashCommands.hscan

redis.clients.jedis.commands.HashCommands.hstrlen

redis.clients.jedis.commands.HashCommands.hvals

redis.clients.jedis.commands.ListCommands.lindex

redis.clients.jedis.commands.ListCommands.llen

redis.clients.jedis.commands.ListCommands.lpos

redis.clients.jedis.commands.ListCommands.lrange

redis.clients.jedis.commands.StringCommands.bitfield

redis.clients.jedis.commands.StringCommands.bitfieldReadonly

redis.clients.jedis.commands.StringCommands.bitpos

redis.clients.jedis.commands.StringCommands.bitcount

redis.clients.jedis.commands.StringCommands.getbit

redis.clients.jedis.commands.StringCommands.getSet

redis.clients.jedis.commands.StringCommands.getDel

redis.clients.jedis.commands.StringCommands.getrange

redis.clients.jedis.commands.StringCommands.getEx

redis.clients.jedis.commands.StringCommands.get

redis.clients.jedis.commands.StringCommands.strlen

redis.clients.jedis.commands.StringCommands.setGet

redis.clients.jedis.commands.StringCommands.mget

redis.clients.jedis.commands.SetCommands.scard

redis.clients.jedis.commands.SetCommands.sismember

redis.clients.jedis.commands.SetCommands.smismember

redis.clients.jedis.commands.SetCommands.srandmember

redis.clients.jedis.commands.SetCommands.sscan

redis.clients.jedis.commands.SetCommands.smembers

redis.clients.jedis.commands.SetCommands.sdiff

redis.clients.jedis.commands.SetCommands.sinter

redis.clients.jedis.commands.SetCommands.sunion

redis.clients.jedis.commands.SetCommands.sdiffstore

redis.clients.jedis.commands.SetCommands.sinterstore

redis.clients.jedis.commands.SetCommands.sunionstore

redis.clients.jedis.commands.SortedSetCommands.zscore

redis.clients.jedis.commands.SortedSetCommands.zcount

redis.clients.jedis.commands.SortedSetCommands.zlexcount

redis.clients.jedis.commands.SortedSetCommands.zmscore

redis.clients.jedis.commands.SortedSetCommands.zrandmember

redis.clients.jedis.commands.SortedSetCommands.zrandmemberWithScores

redis.clients.jedis.commands.SortedSetCommands.zrange

redis.clients.jedis.commands.SortedSetCommands.zrangeByLex

redis.clients.jedis.commands.SortedSetCommands.zrangeByScore

redis.clients.jedis.commands.SortedSetCommands.zrangeByScoreWithScores

redis.clients.jedis.commands.SortedSetCommands.zrangeWithScores

redis.clients.jedis.commands.SortedSetCommands.zrank

redis.clients.jedis.commands.SortedSetCommands.zrevrange

redis.clients.jedis.commands.SortedSetCommands.zrevrangeByLex

redis.clients.jedis.commands.SortedSetCommands.zrevrangeByScore

redis.clients.jedis.commands.SortedSetCommands.zrevrangeByScoreWithScores

redis.clients.jedis.commands.SortedSetCommands.zrevrangeWithScores

redis.clients.jedis.commands.SortedSetCommands.zrevrank

redis.clients.jedis.commands.SortedSetCommands.zscan

redis.clients.jedis.commands.SortedSetCommands.zdiff

redis.clients.jedis.commands.SortedSetCommands.zinter

redis.clients.jedis.commands.SortedSetCommands.zunion

redis.clients.jedis.commands.SortedSetCommands.zdiffStore

redis.clients.jedis.commands.SortedSetCommands.zinterstore

redis.clients.jedis.commands.SortedSetCommands.zunionstore

SelectLettuce Commands

io.lettuce.core.api.sync.RedisStringCommands.getdel

io.lettuce.core.api.async.RedisStringAsyncCommands.getdel

io.lettuce.core.api.sync.RedisStringCommands.bitopAnd

io.lettuce.core.api.sync.RedisStringCommands.bitopNot

io.lettuce.core.api.sync.RedisStringCommands.bitopOr

io.lettuce.core.api.sync.RedisStringCommands.bitopXor

io.lettuce.core.api.async.RedisStringAsyncCommands.bitopAnd

io.lettuce.core.api.async.RedisStringAsyncCommands.bitopNot

io.lettuce.core.api.async.RedisStringAsyncCommands.bitopOr

io.lettuce.core.api.async.RedisStringAsyncCommands.bitopXor

io.lettuce.core.api.sync.RedisStringCommands.bitpos

io.lettuce.core.api.async.RedisStringAsyncCommands.bitpos

io.lettuce.core.api.sync.RedisHashCommands.hexists

io.lettuce.core.api.sync.RedisHashCommands.hget

io.lettuce.core.api.sync.RedisHashCommands.hgetall

io.lettuce.core.api.sync.RedisHashCommands.hkeys

io.lettuce.core.api.sync.RedisHashCommands.hvals

io.lettuce.core.api.sync.RedisHashCommands.hlen

io.lettuce.core.api.sync.RedisHashCommands.hmget

io.lettuce.core.api.sync.RedisHashCommands.hrandfield

io.lettuce.core.api.sync.RedisHashCommands.hrandfieldWithvalues

io.lettuce.core.api.sync.RedisHashCommands.hscan

io.lettuce.core.api.sync.RedisHashCommands.hstrlen

io.lettuce.core.api.async.RedisHashAsyncCommands.hexists

io.lettuce.core.api.async.RedisHashAsyncCommands.hget

io.lettuce.core.api.async.RedisHashAsyncCommands.hgetall

io.lettuce.core.api.async.RedisHashAsyncCommands.hkeys

io.lettuce.core.api.async.RedisHashAsyncCommands.hvals

io.lettuce.core.api.async.RedisHashAsyncCommands.hlen

io.lettuce.core.api.async.RedisHashAsyncCommands.hmget

io.lettuce.core.api.async.RedisHashAsyncCommands.hrandfield

io.lettuce.core.api.async.RedisHashAsyncCommands.hrandfieldWithvalues

io.lettuce.core.api.async.RedisHashAsyncCommands.hscan

io.lettuce.core.api.async.RedisHashAsyncCommands.hstrlen

io.lettuce.core.api.sync.RedisStringCommands.bitcount

io.lettuce.core.api.sync.RedisStringCommands.get

io.lettuce.core.api.sync.RedisStringCommands.getbit

io.lettuce.core.api.sync.RedisStringCommands.getex

io.lettuce.core.api.sync.RedisStringCommands.getrange

io.lettuce.core.api.sync.RedisStringCommands.mget

io.lettuce.core.api.async.RedisStringAsyncCommands.mget

io.lettuce.core.api.sync.RedisStringCommands.strlen

io.lettuce.core.api.sync.RedisStringCommands.setGet

io.lettuce.core.api.sync.RedisStringCommands.getset

io.lettuce.core.api.async.RedisStringAsyncCommands.bitcount

io.lettuce.core.api.async.RedisStringAsyncCommands.get

io.lettuce.core.api.async.RedisStringAsyncCommands.getbit

io.lettuce.core.api.async.RedisStringAsyncCommands.getex

io.lettuce.core.api.async.RedisStringAsyncCommands.getrange

io.lettuce.core.api.async.RedisStringAsyncCommands.strlen

io.lettuce.core.api.async.RedisStringAsyncCommands.setGet

io.lettuce.core.api.async.RedisStringAsyncCommands.getset

io.lettuce.core.api.sync.RedisGeoCommands.geosearchstore

io.lettuce.core.api.async.RedisGeoAsyncCommands.geosearchstore

io.lettuce.core.api.sync.RedisGeoCommands.geodist

io.lettuce.core.api.sync.RedisGeoCommands.geohash

io.lettuce.core.api.sync.RedisGeoCommands.geopos

io.lettuce.core.api.sync.RedisGeoCommands.georadius

io.lettuce.core.api.sync.RedisGeoCommands.georadiusbymember

io.lettuce.core.api.sync.RedisGeoCommands.geosearch

io.lettuce.core.api.async.RedisGeoAsyncCommands.geodist

io.lettuce.core.api.async.RedisGeoAsyncCommands.geohash

io.lettuce.core.api.async.RedisGeoAsyncCommands.geopos

io.lettuce.core.api.async.RedisGeoAsyncCommands.georadius

io.lettuce.core.api.async.RedisGeoAsyncCommands.georadiusbymember

io.lettuce.core.api.async.RedisGeoAsyncCommands.geosearch

io.lettuce.core.api.sync.RedisSetCommands.scard

io.lettuce.core.api.sync.RedisSetCommands.sismember

io.lettuce.core.api.sync.RedisSetCommands.sdiff

io.lettuce.core.api.sync.RedisSetCommands.sinter

io.lettuce.core.api.sync.RedisSetCommands.sunion

io.lettuce.core.api.sync.RedisSetCommands.smembers

io.lettuce.core.api.sync.RedisSetCommands.smismember

io.lettuce.core.api.sync.RedisSetCommands.srandmember

io.lettuce.core.api.sync.RedisSetCommands.sscan

io.lettuce.core.api.async.RedisSetAsyncCommands.scard

io.lettuce.core.api.async.RedisSetAsyncCommands.sismember

io.lettuce.core.api.async.RedisSetAsyncCommands.sdiff

io.lettuce.core.api.async.RedisSetAsyncCommands.sinter

io.lettuce.core.api.async.RedisSetAsyncCommands.sunion

io.lettuce.core.api.async.RedisSetAsyncCommands.smembers

io.lettuce.core.api.async.RedisSetAsyncCommands.smismember

io.lettuce.core.api.async.RedisSetAsyncCommands.srandmember

io.lettuce.core.api.async.RedisSetAsyncCommands.sscan

io.lettuce.core.api.sync.RedisListCommands.lindex

io.lettuce.core.api.sync.RedisListCommands.llen

io.lettuce.core.api.sync.RedisListCommands.lpos

io.lettuce.core.api.sync.RedisListCommands.lrange

io.lettuce.core.api.async.RedisListAsyncCommands.lindex

io.lettuce.core.api.async.RedisListAsyncCommands.llen

io.lettuce.core.api.async.RedisListAsyncCommands.lpos

io.lettuce.core.api.async.RedisListAsyncCommands.lrange

io.lettuce.core.api.sync.RedisSetCommands.sdiffstore

io.lettuce.core.api.sync.RedisSetCommands.sinterstore

io.lettuce.core.api.sync.RedisSetCommands.sunionstore

io.lettuce.core.api.async.RedisSetAsyncCommands.sdiffstore

io.lettuce.core.api.async.RedisSetAsyncCommands.sinterstore

io.lettuce.core.api.async.RedisSetAsyncCommands.sunionstore

DeleteJedis Base Commands

redis.clients.jedis.Jedis.del

redis.clients.jedis.Jedis.hdel

redis.clients.jedis.Jedis.lpop

redis.clients.jedis.Jedis.lrem

redis.clients.jedis.Jedis.ltrim

redis.clients.jedis.Jedis.rpop

redis.clients.jedis.Jedis.blpop

redis.clients.jedis.Jedis.brpop

redis.clients.jedis.Jedis.brpoplpush

redis.clients.jedis.Jedis.lmove

redis.clients.jedis.Jedis.blmove

redis.clients.jedis.Jedis.rpoplpush

redis.clients.jedis.Jedis.lpop

redis.clients.jedis.Jedis.rpop

redis.clients.jedis.Jedis.getDel

redis.clients.jedis.Jedis.spop

redis.clients.jedis.Jedis.srem

redis.clients.jedis.Jedis.smove

redis.clients.jedis.Jedis.bzpopmax

redis.clients.jedis.Jedis.bzpopmin

redis.clients.jedis.Jedis.zpopmax

redis.clients.jedis.Jedis.zpopmin

redis.clients.jedis.Jedis.zrem

redis.clients.jedis.Jedis.zremrangeByLex

redis.clients.jedis.Jedis.zremrangeByRank

redis.clients.jedis.Jedis.zremrangeByScore

DeleteJedis Transaction Commands

redis.clients.jedis.TransactionBase.del

redis.clients.jedis.TransactionBase.hdel

redis.clients.jedis.TransactionBase.lpop

redis.clients.jedis.TransactionBase.lrem

redis.clients.jedis.TransactionBase.ltrim

redis.clients.jedis.TransactionBase.rpop

redis.clients.jedis.TransactionBase.blpop

redis.clients.jedis.TransactionBase.brpop

redis.clients.jedis.TransactionBase.brpoplpush

redis.clients.jedis.TransactionBase.lmove

redis.clients.jedis.TransactionBase.blmove

redis.clients.jedis.TransactionBase.rpoplpush

redis.clients.jedis.TransactionBase.lpop

redis.clients.jedis.TransactionBase.rpop

redis.clients.jedis.TransactionBase.getDel

redis.clients.jedis.TransactionBase.spop

redis.clients.jedis.TransactionBase.srem

redis.clients.jedis.TransactionBase.smove

redis.clients.jedis.TransactionBase.bzpopmax

redis.clients.jedis.TransactionBase.bzpopmin

redis.clients.jedis.TransactionBase.zpopmax

redis.clients.jedis.TransactionBase.zpopmin

redis.clients.jedis.TransactionBase.zrem

redis.clients.jedis.TransactionBase.zremrangeByLex

redis.clients.jedis.TransactionBase.zremrangeByRank

redis.clients.jedis.TransactionBase.zremrangeByScore

DeleteJedisCommands Commands

redis.clients.jedis.commands.KeyCommands.del

redis.clients.jedis.commands.HashCommands.hdel

redis.clients.jedis.commands.ListCommands.lpop

redis.clients.jedis.commands.ListCommands.lrem

redis.clients.jedis.commands.ListCommands.ltrim

redis.clients.jedis.commands.ListCommands.rpop

redis.clients.jedis.commands.ListCommands.blpop

redis.clients.jedis.commands.ListCommands.brpop

redis.clients.jedis.commands.ListCommands.brpoplpush

redis.clients.jedis.commands.ListCommands.lmove

redis.clients.jedis.commands.ListCommands.blmove

redis.clients.jedis.commands.ListCommands.rpoplpush

redis.clients.jedis.commands.ListCommands.lpop

redis.clients.jedis.commands.ListCommands.rpop

redis.clients.jedis.commands.StringCommands.getDel

redis.clients.jedis.commands.SetCommands.spop

redis.clients.jedis.commands.SetCommands.srem

redis.clients.jedis.commands.SetCommands.smove

redis.clients.jedis.commands.SortedSetCommands.bzpopmax

redis.clients.jedis.commands.SortedSetCommands.bzpopmin

redis.clients.jedis.commands.SortedSetCommands.zpopmax

redis.clients.jedis.commands.SortedSetCommands.zpopmin

redis.clients.jedis.commands.SortedSetCommands.zrem

redis.clients.jedis.commands.SortedSetCommands.zremrangeByLex

redis.clients.jedis.commands.SortedSetCommands.zremrangeByRank

redis.clients.jedis.commands.SortedSetCommands.zremrangeByScore

DeleteLettuce Commands

io.lettuce.core.api.sync.RedisHashCommands.hdel

io.lettuce.core.api.async.RedisHashAsyncCommands.hdel

io.lettuce.core.api.sync.RedisStringCommands.getdel

io.lettuce.core.api.async.RedisStringAsyncCommands.getdel

io.lettuce.core.api.sync.RedisSetCommands.spop

io.lettuce.core.api.sync.RedisSetCommands.srem

io.lettuce.core.api.async.RedisSetAsyncCommands.spop

io.lettuce.core.api.async.RedisSetAsyncCommands.srem

io.lettuce.core.api.sync.RedisSetCommands.smove

io.lettuce.core.api.async.RedisSetAsyncCommands.smove

io.lettuce.core.api.sync.RedisListCommands.blmove

io.lettuce.core.api.sync.RedisListCommands.lmove

io.lettuce.core.api.sync.RedisListCommands.rpoplpush

io.lettuce.core.api.async.RedisListAsyncCommands.blmove

io.lettuce.core.api.async.RedisListAsyncCommands.lmove

io.lettuce.core.api.async.RedisListAsyncCommands.rpoplpush

io.lettuce.core.api.sync.RedisListCommands.brpoplpush

io.lettuce.core.api.async.RedisListAsyncCommands.brpoplpush

io.lettuce.core.api.sync.RedisListCommands.blmpop

io.lettuce.core.api.async.RedisListAsyncCommands.blmpop

io.lettuce.core.api.sync.RedisListCommands.blpop

io.lettuce.core.api.sync.RedisListCommands.brpop

io.lettuce.core.api.sync.RedisListCommands.lmpop

io.lettuce.core.api.async.RedisListAsyncCommands.blpop

io.lettuce.core.api.async.RedisListAsyncCommands.brpop

io.lettuce.core.api.async.RedisListAsyncCommands.lmpop

io.lettuce.core.api.async.RedisListAsyncCommands.lpop

io.lettuce.core.api.sync.RedisListCommands.lpop

io.lettuce.core.api.sync.RedisListCommands.rpop

io.lettuce.core.api.async.RedisListAsyncCommands.rpop

io.lettuce.core.api.async.RedisListAsyncCommands.lrem

io.lettuce.core.api.async.RedisListAsyncCommands.ltrim

io.lettuce.core.api.sync.RedisListCommands.lrem

io.lettuce.core.api.sync.RedisListCommands.ltrim

UpdateJedis Base Commands

redis.clients.jedis.Jedis.hincrBy

redis.clients.jedis.Jedis.hincrByFloat

redis.clients.jedis.Jedis.decr

redis.clients.jedis.Jedis.decrBy

redis.clients.jedis.Jedis.incr

redis.clients.jedis.Jedis.incrBy

redis.clients.jedis.Jedis.incrByFloat

redis.clients.jedis.Jedis.zaddIncr

redis.clients.jedis.Jedis.zincrby

UpdateJedis Transaction Commands

redis.clients.jedis.TransactionBase.hincrBy

redis.clients.jedis.TransactionBase.hincrByFloat

redis.clients.jedis.TransactionBase.decr

redis.clients.jedis.TransactionBase.decrBy

redis.clients.jedis.TransactionBase.incr

redis.clients.jedis.TransactionBase.incrBy

redis.clients.jedis.TransactionBase.incrByFloat

redis.clients.jedis.TransactionBase.zaddIncr

redis.clients.jedis.TransactionBase.zincrby

UpdateJedisCommands Commands

redis.clients.jedis.commands.HashCommands.hincrBy

redis.clients.jedis.commands.HashCommands.hincrByFloat

redis.clients.jedis.commands.StringCommands.decr

redis.clients.jedis.commands.StringCommands.decrBy

redis.clients.jedis.commands.StringCommands.incr

redis.clients.jedis.commands.StringCommands.incrBy

redis.clients.jedis.commands.StringCommands.incrByFloat

redis.clients.jedis.commands.SortedSetCommands.zaddIncr

redis.clients.jedis.commands.SortedSetCommands.zincrby

UpdateLettuce Commands

io.lettuce.core.api.sync.RedisHashCommands.hincrby

io.lettuce.core.api.sync.RedisHashCommands.hincrbyfloat

io.lettuce.core.api.async.RedisHashAsyncCommands.hincrby

io.lettuce.core.api.async.RedisHashAsyncCommands.hincrbyfloat

io.lettuce.core.api.sync.RedisStringCommands.decr

io.lettuce.core.api.sync.RedisStringCommands.decrby

io.lettuce.core.api.sync.RedisStringCommands.incr

io.lettuce.core.api.sync.RedisStringCommands.incrby

io.lettuce.core.api.sync.RedisStringCommands.incrbyfloat

io.lettuce.core.api.async.RedisStringAsyncCommands.decr

io.lettuce.core.api.async.RedisStringAsyncCommands.decrby

io.lettuce.core.api.async.RedisStringAsyncCommands.incr

io.lettuce.core.api.async.RedisStringAsyncCommands.incrby

io.lettuce.core.api.async.RedisStringAsyncCommands.incrbyfloat

Objects

Icon

Description

Java Redis Connection

Java Redis Collection

Java unknown Redis Connection

Java Unknown Redis Collection
Link typeWhen is this created?Methods Supported
belongsTo

From Redis collection object to Redis connection object 

-
useSelectLinkBetween the caller Java method object and Redis collection object

lrange

smembers

zscore

zrevrange

hget

hgetAll

keys

get

getbit

getex

getrange

mget

strlen

useInsertLinkBetween the caller Java method object and Redis collection object

 lpush

 rpush

 hmset

 sadd

 zadd

 hset

 set

geoadd

hmset

hset

hsetnx

useDeleteLink

Between the caller Java method object and Redis collection object

del

lrem

lpop

rpop

srem

spop

zrem

hdel

spop

srem

useUpdateLinkBetween the caller Java method object and Redis collection object

hincrby

hincrbyfloat

hincrby

hincrbyfloat

decr

decrby

incr

incrby

incrbyfloat

What results can you expect?

Once the analysis/snapshot generation has completed, you can view the results in the normal manner (for example via CAST Enlighten). Some examples are shown below.

Redis Connection

Jedis Connection

public class RedisService {

public static String server = "localhost";

public Boolean addEmployee(Employee employee) {
Jedis jedis = new Jedis(server);
}

# for unknown 
public void addDeptInfo(String key, String data) {
Jedis jedis = new Jedis(RedisProperties.connection);
jedis.set(key, data);
}

}

Lettuce Connection

public static void main(String[] args) {
        RedisClient client = RedisClient.create("redis://localhost");
        StatefulRedisConnection<String, String> connection = client.connect();
        
        RedisHashCommands<String, String> hashCommands = connection.sync().commands();
        
        KeyValueStreamingChannel<String, String> channel = new KeyValueStreamingChannel<String, String>() {
            @Override
            public void onKeyValue(String key, String value) {
                System.out.println(key + " => " + value);
            }
        };
}

Insert Operation

Jedis Insert Operation

//adding employee in a redis list
public Boolean addEmployee(Employee employee) {
    Jedis jedis = new Jedis(server);
    Employee emp = new Employee();
    emp=getEmployee(employee.getEmployeeId());
    jedis.lpush("employeelist", employee.toString());
    return true;
}
 
 
//add departments in a set
public void addDept(String dept) {
    Jedis jedis = new Jedis(server);
    jedis.sadd("departments", dept);
}

Lettuce Insert Operation

Lettuce Insert Operation
// Inserts field=value to myhash
public void set_operation(RedisHashCommands hashCommands){
	hashCommands.hset("myhash", "field1", "value1");
    hashCommands.hset("myhash", "field2", "value2");
    hashCommands.hset("myhash", "field3", "value3");
}

Select Operation

Jedis Select Operation

//get all employees from employee list
public List<Employee> getAllEmployee(){
    List<Employee> employeeList = new ArrayList<>();
    Jedis jedis = new Jedis(server);
    List<String> employees = jedis.lrange("employeelist", 0, jedis.llen("employeelist"));
    for (String employee: employees) {
        String[] emp1=employee.split(",");
        Employee emp = new Employee(Integer.parseInt(emp1[0]), emp1[1], emp1[2]);
        employeeList.add(emp);
    }
    return employeeList;
}
 
 
//get all departments from set
public Set<String> getDepts() {
    Jedis jedis = new Jedis(server);
    return jedis.smembers("departments");
}

Lettuce Select Operation

// retrieves all the data from myhash
public void get_operation(RedisHashCommands hashCommands, KeyValueStreamingChannel channel){
	hashCommands.hgetall(channel, "myhash");
}

Delete Operation

Jedis Delete Operation

// delete first visitor from visitors set
public Visitor deleteVisitor() {
    Jedis jedis = new Jedis(server);
    Map<String,Integer> visitors = get_Visitors();
    Visitor vis = new Visitor();
    for (Map.Entry<String, Integer> visitor : visitors.entrySet()) {
        vis.setName(visitor.getKey());
        vis.setId(jedis.zscore("visitors", visitor.getKey()));
        break;
    }
    jedis.zrem("visitors", vis.getName());
    return vis;
}
 
//delete department information from cache
public String deleteDeptInfo(String key) {
    Jedis jedis = new Jedis(server);
    String value = jedis.get(key);
    jedis.del(key);
    return key + " = " + value + " successfully deleted";
}

Lettuce Delete Operation

// Deletes field3 and field4 from myhash
public void del_operation(RedisHashCommands hashCommands){
	hashCommands.hdel("myhash", "field3", "field4");
}

Update Operation

Jedis Update Operation

public class Example {
	public static void main(String[] args) {
	// Create a new Jedis instance connected to Redis
	Jedis jedis = new Jedis("localhost");

	// Set the initial value of a key "mycounter" to 10
	jedis.set("mycounter", "10");

	// Decrement the value of "mycounter" by 3 using decrBy method
	Long newCounterValue = jedis.decrBy("mycounter", 3);

	// Retrieving the elements of mycounter
	System.out.println("Elements in mycounter: " + jedis.smembers("mycounter"));

	// Close the Jedis instance
	jedis.close();
	}
}

Lettuce Update Operation

// Updates myhash field4 by 10
public void update_operation(RedisHashCommands hashCommands){
	hashCommands.hincrby("myhash", "field4", 10);
}

Jedis Commands

Insert Command

void set_value(){
		// Add some fields to the hash
        transaction.hset("myhash", "field1", "3");
        transaction.hset("myhash", "field2", "2");
        transaction.hset("myhash", "field3", "3");
        
        // Execute the transaction
        transaction.exec_();
		
    }	

Select Command

   void get_value() {
		// Retrieve the values after the transaction
		System.out.println(transaction.hget("myhash", "field1"));
	}

Delete Command

void del_value() {
// Perform hdel operation within a transaction
transaction.hdel("myhash", "field3");

// Execute the transaction
transaction.exec_();
}

Update Command

void incr_value() {
		// Perform hincrBy operation within a transaction
        transaction.hincrBy("myhash", "field1", 5);
        
        // Execute the transaction
        transaction.exec_();
		
}

Lettuce Commands

Insert Command

public void set_operation(RedisHashCommands hashCommands){
        hashCommands.hset("myhash", "field1", "value1");
        hashCommands.hset("myhash", "field2", "value2");
        hashCommands.hset("myhash", "field3", "value3");
}

Select Command

public void get_operation(RedisHashCommands hashCommands, KeyValueStreamingChannel channel){
        hashCommands.hgetall(channel, "myhash");
} 

Delete Command

public void del_operation(RedisHashCommands hashCommands){
        hashCommands.hdel("myhash", "field3", "field4");
}

Update Command

public void update_operation(RedisHashCommands hashCommands){
        hashCommands.hincrby("myhash", "field4", 10);
}

Known Limitations

  • Unknown Redis connection/collection objects are created in case of unresolved names.