Class RedissonConnection
java.lang.Object
org.springframework.data.redis.connection.AbstractRedisConnection
org.redisson.spring.data.connection.RedissonConnection
- All Implemented Interfaces:
AutoCloseable,org.springframework.data.redis.connection.DefaultedRedisConnection,org.springframework.data.redis.connection.RedisCommands,org.springframework.data.redis.connection.RedisCommandsProvider,org.springframework.data.redis.connection.RedisConnection,org.springframework.data.redis.connection.RedisConnectionCommands,org.springframework.data.redis.connection.RedisGeoCommands,org.springframework.data.redis.connection.RedisHashCommands,org.springframework.data.redis.connection.RedisHyperLogLogCommands,org.springframework.data.redis.connection.RedisKeyCommands,org.springframework.data.redis.connection.RedisListCommands,org.springframework.data.redis.connection.RedisPubSubCommands,org.springframework.data.redis.connection.RedisScriptingCommands,org.springframework.data.redis.connection.RedisServerCommands,org.springframework.data.redis.connection.RedisSetCommands,org.springframework.data.redis.connection.RedisStreamCommands,org.springframework.data.redis.connection.RedisStringCommands,org.springframework.data.redis.connection.RedisTxCommands,org.springframework.data.redis.connection.RedisZSetCommands
- Direct Known Subclasses:
RedissonClusterConnection
public class RedissonConnection
extends org.springframework.data.redis.connection.AbstractRedisConnection
Redisson connection
- Author:
- Nikita Koksharov
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisGeoCommands
org.springframework.data.redis.connection.RedisGeoCommands.DistanceUnit, org.springframework.data.redis.connection.RedisGeoCommands.GeoCommandArgs, org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<T>, org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs, org.springframework.data.redis.connection.RedisGeoCommands.GeoSearchCommandArgs, org.springframework.data.redis.connection.RedisGeoCommands.GeoSearchStoreCommandArgsNested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisListCommands
org.springframework.data.redis.connection.RedisListCommands.Direction, org.springframework.data.redis.connection.RedisListCommands.PositionNested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisServerCommands
org.springframework.data.redis.connection.RedisServerCommands.FlushOption, org.springframework.data.redis.connection.RedisServerCommands.MigrateOption, org.springframework.data.redis.connection.RedisServerCommands.ShutdownOptionNested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisStreamCommands
org.springframework.data.redis.connection.RedisStreamCommands.XAddOptions, org.springframework.data.redis.connection.RedisStreamCommands.XClaimOptions, org.springframework.data.redis.connection.RedisStreamCommands.XPendingOptionsNested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisStringCommands
org.springframework.data.redis.connection.RedisStringCommands.BitOperation, org.springframework.data.redis.connection.RedisStringCommands.SetOptionNested classes/interfaces inherited from interface org.springframework.data.redis.connection.RedisZSetCommands
org.springframework.data.redis.connection.RedisZSetCommands.Limit, org.springframework.data.redis.connection.RedisZSetCommands.Range, org.springframework.data.redis.connection.RedisZSetCommands.ZAddArgs -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRedissonConnection(RedissonClient redisson) RedissonConnection(RedissonClient redisson, boolean filterOkResponses) -
Method Summary
Modifier and TypeMethodDescriptionappend(byte[] key, byte[] value) voidvoidbgSave()bitCount(byte[] key) bitCount(byte[] key, long begin, long end) bitField(byte[] key, org.springframework.data.redis.connection.BitFieldSubCommands subCommands) bitOp(org.springframework.data.redis.connection.RedisStringCommands.BitOperation op, byte[] destination, byte[]... keys) byte[]bLMove(byte[] sourceKey, byte[] destinationKey, org.springframework.data.redis.connection.RedisListCommands.Direction from, org.springframework.data.redis.connection.RedisListCommands.Direction to, double timeout) List<byte[]> bLPop(int timeout, byte[]... keys) List<byte[]> bRPop(int timeout, byte[]... keys) byte[]bRPopLPush(int timeout, byte[] srcKey, byte[] dstKey) org.springframework.data.redis.connection.zset.Tupleorg.springframework.data.redis.connection.zset.Tuplevoidclose()org.springframework.data.redis.connection.RedisCommandscommands()protected List<byte[]> copy(byte[] sourceKey, byte[] targetKey, boolean replace) dbSize()decr(byte[] key) decrBy(byte[] key, long value) del(byte[]... keys) voiddiscard()byte[]dump(byte[] key) byte[]echo(byte[] message) org.springframework.data.redis.connection.ValueEncodingencodingOf(byte[] key) <T> Teval(byte[] script, org.springframework.data.redis.connection.ReturnType returnType, int numKeys, byte[]... keysAndArgs) <T> TevalSha(byte[] scriptSha, org.springframework.data.redis.connection.ReturnType returnType, int numKeys, byte[]... keysAndArgs) <T> TevalSha(String scriptSha, org.springframework.data.redis.connection.ReturnType returnType, int numKeys, byte[]... keysAndArgs) exec()exists(byte[] key) exists(byte[]... keys) expire(byte[] key, long seconds) expire(byte[] key, long seconds, org.springframework.data.redis.connection.ExpirationOptions.Condition condition) expireAt(byte[] key, long unixTime) expireAt(byte[] key, long unixTime, org.springframework.data.redis.connection.ExpirationOptions.Condition condition) protected voidfilterResults(BatchResult<?> result) voidflushAll()voidflushAll(org.springframework.data.redis.connection.RedisServerCommands.FlushOption option) voidflushDb()voidflushDb(org.springframework.data.redis.connection.RedisServerCommands.FlushOption option) geoAdd(byte[] key, Iterable<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<byte[]>> locations) geoAdd(byte[] key, org.springframework.data.geo.Point point, byte[] member) geoAdd(byte[] key, org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<byte[]> location) org.springframework.data.redis.connection.RedisGeoCommandsorg.springframework.data.geo.DistancegeoDist(byte[] key, byte[] member1, byte[] member2) org.springframework.data.geo.DistancegeoDist(byte[] key, byte[] member1, byte[] member2, org.springframework.data.geo.Metric metric) geoHash(byte[] key, byte[]... members) List<org.springframework.data.geo.Point> geoPos(byte[] key, byte[]... members) org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<byte[]>> geoRadius(byte[] key, org.springframework.data.geo.Circle within) org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<byte[]>> geoRadius(byte[] key, org.springframework.data.geo.Circle within, org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs args) org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<byte[]>> geoRadiusByMember(byte[] key, byte[] member, double radius) org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<byte[]>> geoRadiusByMember(byte[] key, byte[] member, org.springframework.data.geo.Distance radius) org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<byte[]>> geoRadiusByMember(byte[] key, byte[] member, org.springframework.data.geo.Distance radius, org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs args) geoRemove(byte[] key, byte[]... members) org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<byte[]>> geoSearch(byte[] key, org.springframework.data.redis.domain.geo.GeoReference<byte[]> reference, org.springframework.data.redis.domain.geo.GeoShape predicate, org.springframework.data.redis.connection.RedisGeoCommands.GeoSearchCommandArgs args) geoSearchStore(byte[] destKey, byte[] key, org.springframework.data.redis.domain.geo.GeoReference<byte[]> reference, org.springframework.data.redis.domain.geo.GeoShape predicate, org.springframework.data.redis.connection.RedisGeoCommands.GeoSearchStoreCommandArgs args) byte[]get(byte[] key) getBit(byte[] key, long offset) List<org.springframework.data.redis.core.types.RedisClientInfo> byte[]getDel(byte[] key) byte[]getEx(byte[] key, org.springframework.data.redis.core.types.Expiration expiration) byte[]getRange(byte[] key, long begin, long end) byte[]getSet(byte[] key, byte[] value) org.springframework.data.redis.connection.Subscriptionorg.springframework.data.redis.connection.RedisHashCommandshDel(byte[] key, byte[]... fields) hExists(byte[] key, byte[] field) hExpire(byte[] key, long seconds, org.springframework.data.redis.connection.ExpirationOptions.Condition condition, byte[]... fields) hExpireAt(byte[] key, long unixTime, org.springframework.data.redis.connection.ExpirationOptions.Condition condition, byte[]... fields) byte[]hGet(byte[] key, byte[] field) Map<byte[], byte[]> hGetAll(byte[] key) hIncrBy(byte[] key, byte[] field, double delta) hIncrBy(byte[] key, byte[] field, long delta) Set<byte[]> hKeys(byte[] key) hLen(byte[] key) List<byte[]> hMGet(byte[] key, byte[]... fields) voidhPersist(byte[] key, byte[]... fields) hpExpire(byte[] key, long millis, org.springframework.data.redis.connection.ExpirationOptions.Condition condition, byte[]... fields) hpExpireAt(byte[] key, long unixTimeInMillis, org.springframework.data.redis.connection.ExpirationOptions.Condition condition, byte[]... fields) hpTtl(byte[] key, byte[]... fields) byte[]hRandField(byte[] key) List<byte[]> hRandField(byte[] key, long count) Map.Entry<byte[], byte[]> hRandFieldWithValues(byte[] key) hRandFieldWithValues(byte[] key, long count) org.springframework.data.redis.core.Cursor<Map.Entry<byte[], byte[]>> hScan(byte[] key, org.springframework.data.redis.core.ScanOptions options) hSet(byte[] key, byte[] field, byte[] value) hSetNX(byte[] key, byte[] field, byte[] value) hStrLen(byte[] key, byte[] field) hTtl(byte[] key, byte[]... fields) List<byte[]> hVals(byte[] key) org.springframework.data.redis.connection.RedisHyperLogLogCommandsidletime(byte[] key) incr(byte[] key) incrBy(byte[] key, double value) incrBy(byte[] key, long value) protected voidindexCommand(RedisCommand<?> command) info()booleanisClosed()booleanbooleanbooleanbooleanbooleanorg.springframework.data.redis.connection.RedisKeyCommandsSet<byte[]> keys(byte[] pattern) voidkillClient(String host, int port) lastSave()byte[]lIndex(byte[] key, long index) lInsert(byte[] key, org.springframework.data.redis.connection.RedisListCommands.Position where, byte[] pivot, byte[] value) org.springframework.data.redis.connection.RedisListCommandslLen(byte[] key) byte[]lMove(byte[] sourceKey, byte[] destinationKey, org.springframework.data.redis.connection.RedisListCommands.Direction from, org.springframework.data.redis.connection.RedisListCommands.Direction to) byte[]lPop(byte[] key) List<byte[]> lPop(byte[] key, long count) lPush(byte[] key, byte[]... values) lPushX(byte[] key, byte[] value) List<byte[]> lRange(byte[] key, long start, long end) lRem(byte[] key, long count, byte[] value) voidlSet(byte[] key, long index, byte[] value) voidlTrim(byte[] key, long start, long end) List<byte[]> mGet(byte[]... keys) voidmigrate(byte[] key, org.springframework.data.redis.connection.RedisNode target, int dbIndex, org.springframework.data.redis.connection.RedisServerCommands.MigrateOption option) voidmigrate(byte[] key, org.springframework.data.redis.connection.RedisNode target, int dbIndex, org.springframework.data.redis.connection.RedisServerCommands.MigrateOption option, long timeout) move(byte[] key, int dbIndex) voidmulti()voidpersist(byte[] key) pExpire(byte[] key, long millis) pExpire(byte[] key, long millis, org.springframework.data.redis.connection.ExpirationOptions.Condition condition) pExpireAt(byte[] key, long unixTimeInMillis) pExpireAt(byte[] key, long unixTimeInMillis, org.springframework.data.redis.connection.ExpirationOptions.Condition condition) pfAdd(byte[] key, byte[]... values) pfCount(byte[]... keys) voidpfMerge(byte[] destinationKey, byte[]... sourceKeys) ping()pSetEx(byte[] key, long milliseconds, byte[] value) voidpSubscribe(org.springframework.data.redis.connection.MessageListener listener, byte[]... patterns) pTtl(byte[] key) publish(byte[] channel, byte[] message) byte[]refcount(byte[] key) voidrename(byte[] oldName, byte[] newName) renameNX(byte[] oldName, byte[] newName) voidvoidvoidprotected voidvoidrestore(byte[] key, long ttlInMillis, byte[] serializedValue) voidrestore(byte[] key, long ttlInMillis, byte[] serializedValue, boolean replace) voidbyte[]rPop(byte[] key) List<byte[]> rPop(byte[] key, long count) byte[]rPopLPush(byte[] srcKey, byte[] dstKey) rPush(byte[] key, byte[]... values) rPushX(byte[] key, byte[] value) sAdd(byte[] key, byte[]... values) voidsave()org.springframework.data.redis.core.Cursor<byte[]> scan(org.springframework.data.redis.core.ScanOptions options) sCard(byte[] key) scriptExists(String... scriptShas) voidorg.springframework.data.redis.connection.RedisScriptingCommandsvoidscriptLoad(byte[] script) Set<byte[]> sDiff(byte[]... keys) sDiffStore(byte[] destKey, byte[]... keys) voidselect(int dbIndex) org.springframework.data.redis.connection.RedisServerCommandsset(byte[] key, byte[] value) set(byte[] key, byte[] value, org.springframework.data.redis.core.types.Expiration expiration, org.springframework.data.redis.connection.RedisStringCommands.SetOption option) setBit(byte[] key, long offset, boolean value) voidsetClientName(byte[] name) org.springframework.data.redis.connection.RedisSetCommandsvoidsetEx(byte[] key, long seconds, byte[] value) voidsetFilterOkResponses(boolean filterOkResponses) byte[]setGet(byte[] key, byte[] value, org.springframework.data.redis.core.types.Expiration expiration, org.springframework.data.redis.connection.RedisStringCommands.SetOption option) setNX(byte[] key, byte[] value) voidsetRange(byte[] key, byte[] value, long offset) voidshutdown()voidshutdown(org.springframework.data.redis.connection.RedisServerCommands.ShutdownOption option) Set<byte[]> sInter(byte[]... keys) sInterStore(byte[] destKey, byte[]... keys) sIsMember(byte[] key, byte[] value) Set<byte[]> sMembers(byte[] key) sMIsMember(byte[] key, byte[]... value) sMove(byte[] srcKey, byte[] destKey, byte[] value) List<byte[]> sort(byte[] key, org.springframework.data.redis.connection.SortParameters sortParams) sort(byte[] key, org.springframework.data.redis.connection.SortParameters sortParams, byte[] storeKey) byte[]sPop(byte[] key) List<byte[]> sPop(byte[] key, long count) byte[]sRandMember(byte[] key) List<byte[]> sRandMember(byte[] key, long count) sRem(byte[] key, byte[]... values) org.springframework.data.redis.core.Cursor<byte[]> sScan(byte[] key, org.springframework.data.redis.core.ScanOptions options) org.springframework.data.redis.connection.RedisStreamCommandsorg.springframework.data.redis.connection.RedisStringCommandsstrLen(byte[] key) voidsubscribe(org.springframework.data.redis.connection.MessageListener listener, byte[]... channels) Set<byte[]> sUnion(byte[]... keys) sUnionStore(byte[] destKey, byte[]... keys) protected <T> Tprotected RedisCommand<?> touch(byte[]... keys) protected RuntimeExceptionttl(byte[] key) org.springframework.data.redis.connection.DataTypetype(byte[] key) unlink(byte[]... keys) voidunwatch()voidwatch(byte[]... keys) zAdd(byte[] key, double score, byte[] value, org.springframework.data.redis.connection.RedisZSetCommands.ZAddArgs args) zAdd(byte[] key, Set<org.springframework.data.redis.connection.zset.Tuple> tuples, org.springframework.data.redis.connection.RedisZSetCommands.ZAddArgs args) zCard(byte[] key) zCount(byte[] key, double min, double max) zCount(byte[] key, org.springframework.data.domain.Range range) Set<byte[]> zDiff(byte[]... sets) zDiffStore(byte[] destKey, byte[]... sets) Set<org.springframework.data.redis.connection.zset.Tuple> zDiffWithScores(byte[]... sets) zIncrBy(byte[] key, double increment, byte[] value) Set<byte[]> zInter(byte[]... sets) zInterStore(byte[] destKey, byte[]... sets) zInterStore(byte[] destKey, org.springframework.data.redis.connection.zset.Aggregate aggregate, org.springframework.data.redis.connection.zset.Weights weights, byte[]... sets) Set<org.springframework.data.redis.connection.zset.Tuple> zInterWithScores(byte[]... sets) Set<org.springframework.data.redis.connection.zset.Tuple> zInterWithScores(org.springframework.data.redis.connection.zset.Aggregate aggregate, org.springframework.data.redis.connection.zset.Weights weights, byte[]... sets) zLexCount(byte[] key, org.springframework.data.domain.Range range) zMScore(byte[] key, byte[]... values) org.springframework.data.redis.connection.zset.TuplezPopMax(byte[] key) Set<org.springframework.data.redis.connection.zset.Tuple> zPopMax(byte[] key, long count) org.springframework.data.redis.connection.zset.TuplezPopMin(byte[] key) Set<org.springframework.data.redis.connection.zset.Tuple> zPopMin(byte[] key, long count) byte[]zRandMember(byte[] key) List<byte[]> zRandMember(byte[] key, long count) org.springframework.data.redis.connection.zset.TuplezRandMemberWithScore(byte[] key) List<org.springframework.data.redis.connection.zset.Tuple> zRandMemberWithScore(byte[] key, long count) Set<byte[]> zRange(byte[] key, long start, long end) Set<byte[]> zRangeByLex(byte[] key, org.springframework.data.domain.Range<byte[]> range, org.springframework.data.redis.connection.Limit limit) Set<byte[]> zRangeByScore(byte[] key, String min, String max) Set<byte[]> zRangeByScore(byte[] key, String min, String max, long offset, long count) Set<byte[]> zRangeByScore(byte[] key, org.springframework.data.domain.Range range, org.springframework.data.redis.connection.Limit limit) Set<org.springframework.data.redis.connection.zset.Tuple> zRangeByScoreWithScores(byte[] key, org.springframework.data.domain.Range range, org.springframework.data.redis.connection.Limit limit) zRangeStoreByLex(byte[] dstKey, byte[] srcKey, org.springframework.data.domain.Range<byte[]> range, org.springframework.data.redis.connection.Limit limit) zRangeStoreByScore(byte[] dstKey, byte[] srcKey, org.springframework.data.domain.Range<? extends Number> range, org.springframework.data.redis.connection.Limit limit) zRangeStoreRevByLex(byte[] dstKey, byte[] srcKey, org.springframework.data.domain.Range<byte[]> range, org.springframework.data.redis.connection.Limit limit) zRangeStoreRevByScore(byte[] dstKey, byte[] srcKey, org.springframework.data.domain.Range<? extends Number> range, org.springframework.data.redis.connection.Limit limit) Set<org.springframework.data.redis.connection.zset.Tuple> zRangeWithScores(byte[] key, long start, long end) zRank(byte[] key, byte[] value) zRem(byte[] key, byte[]... values) zRemRange(byte[] key, long start, long end) zRemRangeByLex(byte[] key, org.springframework.data.domain.Range range) zRemRangeByScore(byte[] key, double min, double max) zRemRangeByScore(byte[] key, org.springframework.data.domain.Range range) Set<byte[]> zRevRange(byte[] key, long start, long end) Set<byte[]> zRevRangeByLex(byte[] key, org.springframework.data.domain.Range range, org.springframework.data.redis.connection.Limit limit) Set<byte[]> zRevRangeByScore(byte[] key, double min, double max) Set<byte[]> zRevRangeByScore(byte[] key, org.springframework.data.domain.Range range, org.springframework.data.redis.connection.Limit limit) Set<org.springframework.data.redis.connection.zset.Tuple> zRevRangeByScoreWithScores(byte[] key, org.springframework.data.domain.Range range, org.springframework.data.redis.connection.Limit limit) Set<org.springframework.data.redis.connection.zset.Tuple> zRevRangeWithScores(byte[] key, long start, long end) zRevRank(byte[] key, byte[] value) org.springframework.data.redis.core.Cursor<org.springframework.data.redis.connection.zset.Tuple> zScan(byte[] key, org.springframework.data.redis.core.ScanOptions options) zScore(byte[] key, byte[] value) org.springframework.data.redis.connection.RedisZSetCommandsSet<byte[]> zUnion(byte[]... sets) zUnionStore(byte[] destKey, byte[]... sets) zUnionStore(byte[] destKey, org.springframework.data.redis.connection.zset.Aggregate aggregate, org.springframework.data.redis.connection.zset.Weights weights, byte[]... sets) Set<org.springframework.data.redis.connection.zset.Tuple> zUnionWithScores(byte[]... sets) Set<org.springframework.data.redis.connection.zset.Tuple> zUnionWithScores(org.springframework.data.redis.connection.zset.Aggregate aggregate, org.springframework.data.redis.connection.zset.Weights weights, byte[]... sets) Methods inherited from class org.springframework.data.redis.connection.AbstractRedisConnection
getSentinelConnection, getSentinelConnection, hasRedisSentinelConfigured, isActive, setSentinelConfigurationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.redis.connection.DefaultedRedisConnection
applyHashFieldExpiration, hExpire, hExpireAt, hpExpire, hpExpireAt, time, xAck, xAdd, xClaim, xClaimJustId, xDel, xGroupCreate, xGroupCreate, xGroupDelConsumer, xGroupDestroy, xInfo, xInfoConsumers, xInfoGroups, xLen, xPending, xPending, xRange, xRange, xRead, xRead, xReadGroup, xReadGroup, xRevRange, xRevRange, xTrim, xTrim, zInterStore, zInterWithScores, zUnionStore, zUnionWithScoresMethods inherited from interface org.springframework.data.redis.connection.RedisHashCommands
applyHashFieldExpiration, hExpire, hpExpireMethods inherited from interface org.springframework.data.redis.connection.RedisKeyCommands
applyExpiration, expire, expireAt, pExpire, pExpireAt, scanMethods inherited from interface org.springframework.data.redis.connection.RedisListCommands
lPosMethods inherited from interface org.springframework.data.redis.connection.RedisStreamCommands
xAck, xAdd, xAdd, xClaim, xDel, xGroupDelConsumer, xPending, xPending, xPending, xPending, xPendingMethods inherited from interface org.springframework.data.redis.connection.RedisStringCommands
bitPosMethods inherited from interface org.springframework.data.redis.connection.RedisZSetCommands
zAdd, zAdd, zRangeByLex, zRangeByLex, zRangeByScore, zRangeByScore, zRangeByScore, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeByScoreWithScores, zRangeStoreByLex, zRangeStoreByScore, zRangeStoreRevByLex, zRangeStoreRevByScore, zRevRangeByLex, zRevRangeByLex, zRevRangeByScore, zRevRangeByScore, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores, zRevRangeByScoreWithScores
-
Field Details
-
redisson
-
ZRANGESTORE
-
-
Constructor Details
-
RedissonConnection
-
RedissonConnection
-
-
Method Details
-
isFilterOkResponses
public boolean isFilterOkResponses() -
setFilterOkResponses
public void setFilterOkResponses(boolean filterOkResponses) -
close
public void close() throws org.springframework.dao.DataAccessException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.springframework.data.redis.connection.RedisConnection- Overrides:
closein classorg.springframework.data.redis.connection.AbstractRedisConnection- Throws:
org.springframework.dao.DataAccessException
-
isClosed
public boolean isClosed() -
getNativeConnection
-
isQueueing
public boolean isQueueing() -
isPipelined
public boolean isPipelined() -
isPipelinedAtomic
public boolean isPipelinedAtomic() -
openPipeline
public void openPipeline() -
closePipeline
public List<Object> closePipeline() throws org.springframework.data.redis.connection.RedisPipelineException- Throws:
org.springframework.data.redis.connection.RedisPipelineException
-
execute
-
transform
-
exists
-
del
-
unlink
-
type
public org.springframework.data.redis.connection.DataType type(byte[] key) -
keys
-
scan
public org.springframework.data.redis.core.Cursor<byte[]> scan(org.springframework.data.redis.core.ScanOptions options) -
randomKey
public byte[] randomKey() -
rename
public void rename(byte[] oldName, byte[] newName) -
renameNX
-
expire
-
pExpire
-
expireAt
-
pExpireAt
-
persist
-
move
-
ttl
-
sync
-
ttl
-
pTtl
-
pTtl
-
sort
public List<byte[]> sort(byte[] key, org.springframework.data.redis.connection.SortParameters sortParams) -
sort
public Long sort(byte[] key, org.springframework.data.redis.connection.SortParameters sortParams, byte[] storeKey) -
dump
public byte[] dump(byte[] key) -
restore
public void restore(byte[] key, long ttlInMillis, byte[] serializedValue) -
get
public byte[] get(byte[] key) -
getSet
public byte[] getSet(byte[] key, byte[] value) -
mGet
-
set
-
set
public Boolean set(byte[] key, byte[] value, org.springframework.data.redis.core.types.Expiration expiration, org.springframework.data.redis.connection.RedisStringCommands.SetOption option) -
setNX
-
setEx
-
pSetEx
-
mSet
-
convert
-
mSetNX
-
incr
-
incrBy
-
incrBy
-
decr
-
decrBy
-
append
-
getRange
public byte[] getRange(byte[] key, long begin, long end) -
setRange
public void setRange(byte[] key, byte[] value, long offset) -
getBit
-
setBit
-
bitCount
-
bitCount
-
bitOp
public Long bitOp(org.springframework.data.redis.connection.RedisStringCommands.BitOperation op, byte[] destination, byte[]... keys) -
strLen
-
rPush
-
lPush
-
rPushX
-
lPushX
-
lLen
-
lRange
-
lTrim
public void lTrim(byte[] key, long start, long end) -
lIndex
public byte[] lIndex(byte[] key, long index) -
lInsert
public Long lInsert(byte[] key, org.springframework.data.redis.connection.RedisListCommands.Position where, byte[] pivot, byte[] value) -
indexCommand
-
lSet
public void lSet(byte[] key, long index, byte[] value) -
lRem
-
lPop
public byte[] lPop(byte[] key) -
rPop
public byte[] rPop(byte[] key) -
bLPop
-
bRPop
-
rPopLPush
public byte[] rPopLPush(byte[] srcKey, byte[] dstKey) -
bRPopLPush
public byte[] bRPopLPush(int timeout, byte[] srcKey, byte[] dstKey) -
lPos
-
sAdd
-
sRem
-
sPop
public byte[] sPop(byte[] key) -
sPop
-
sMove
-
sCard
-
sIsMember
-
sInter
-
sInterStore
-
sUnion
-
sUnionStore
-
sDiff
-
sDiffStore
-
sMembers
-
sRandMember
public byte[] sRandMember(byte[] key) -
sRandMember
-
sScan
public org.springframework.data.redis.core.Cursor<byte[]> sScan(byte[] key, org.springframework.data.redis.core.ScanOptions options) -
zAdd
public Boolean zAdd(byte[] key, double score, byte[] value, org.springframework.data.redis.connection.RedisZSetCommands.ZAddArgs args) -
zAdd
-
zRem
-
zIncrBy
-
zRank
-
zRevRank
-
zRange
-
zRangeWithScores
public Set<org.springframework.data.redis.connection.zset.Tuple> zRangeWithScores(byte[] key, long start, long end) -
zRangeByScoreWithScores
public Set<org.springframework.data.redis.connection.zset.Tuple> zRangeByScoreWithScores(byte[] key, org.springframework.data.domain.Range range, org.springframework.data.redis.connection.Limit limit) -
zRevRange
-
zRevRangeWithScores
public Set<org.springframework.data.redis.connection.zset.Tuple> zRevRangeWithScores(byte[] key, long start, long end) -
zRevRangeByScore
-
zRevRangeByScore
public Set<byte[]> zRevRangeByScore(byte[] key, org.springframework.data.domain.Range range, org.springframework.data.redis.connection.Limit limit) -
zRevRangeByScoreWithScores
public Set<org.springframework.data.redis.connection.zset.Tuple> zRevRangeByScoreWithScores(byte[] key, org.springframework.data.domain.Range range, org.springframework.data.redis.connection.Limit limit) -
zCount
-
zCount
-
zCard
-
zScore
-
zRemRange
-
zRemRangeByScore
-
zRemRangeByScore
-
zUnionStore
-
zUnionStore
public Long zUnionStore(byte[] destKey, org.springframework.data.redis.connection.zset.Aggregate aggregate, org.springframework.data.redis.connection.zset.Weights weights, byte[]... sets) -
zInterStore
-
zInterStore
public Long zInterStore(byte[] destKey, org.springframework.data.redis.connection.zset.Aggregate aggregate, org.springframework.data.redis.connection.zset.Weights weights, byte[]... sets) -
zScan
public org.springframework.data.redis.core.Cursor<org.springframework.data.redis.connection.zset.Tuple> zScan(byte[] key, org.springframework.data.redis.core.ScanOptions options) -
zRangeByScore
-
zRangeByScore
-
zRangeByScore
public Set<byte[]> zRangeByScore(byte[] key, org.springframework.data.domain.Range range, org.springframework.data.redis.connection.Limit limit) -
zRangeByLex
public Set<byte[]> zRangeByLex(byte[] key, org.springframework.data.domain.Range<byte[]> range, org.springframework.data.redis.connection.Limit limit) -
hSet
-
hSetNX
-
hGet
public byte[] hGet(byte[] key, byte[] field) -
hMGet
-
hMSet
-
hIncrBy
-
hIncrBy
-
hExists
-
hDel
-
hLen
-
hKeys
-
hVals
-
hGetAll
-
hScan
public org.springframework.data.redis.core.Cursor<Map.Entry<byte[],byte[]>> hScan(byte[] key, org.springframework.data.redis.core.ScanOptions options) -
multi
public void multi() -
exec
-
filterResults
-
resetConnection
protected void resetConnection() -
discard
public void discard() -
watch
public void watch(byte[]... keys) -
unwatch
public void unwatch() -
isSubscribed
public boolean isSubscribed() -
getSubscription
public org.springframework.data.redis.connection.Subscription getSubscription() -
publish
-
subscribe
public void subscribe(org.springframework.data.redis.connection.MessageListener listener, byte[]... channels) -
pSubscribe
public void pSubscribe(org.springframework.data.redis.connection.MessageListener listener, byte[]... patterns) -
select
public void select(int dbIndex) -
echo
public byte[] echo(byte[] message) -
ping
-
bgReWriteAof
public void bgReWriteAof() -
bgSave
public void bgSave() -
lastSave
-
save
public void save() -
dbSize
-
flushDb
public void flushDb() -
flushAll
public void flushAll() -
info
-
info
-
shutdown
public void shutdown() -
shutdown
public void shutdown(org.springframework.data.redis.connection.RedisServerCommands.ShutdownOption option) -
getConfig
-
setConfig
-
resetConfigStats
public void resetConfigStats() -
killClient
-
setClientName
public void setClientName(byte[] name) -
getClientName
-
getClientList
-
migrate
public void migrate(byte[] key, org.springframework.data.redis.connection.RedisNode target, int dbIndex, org.springframework.data.redis.connection.RedisServerCommands.MigrateOption option) -
migrate
public void migrate(byte[] key, org.springframework.data.redis.connection.RedisNode target, int dbIndex, org.springframework.data.redis.connection.RedisServerCommands.MigrateOption option, long timeout) -
scriptFlush
public void scriptFlush() -
scriptKill
public void scriptKill() -
scriptLoad
-
scriptExists
-
eval
public <T> T eval(byte[] script, org.springframework.data.redis.connection.ReturnType returnType, int numKeys, byte[]... keysAndArgs) -
toCommand
protected RedisCommand<?> toCommand(org.springframework.data.redis.connection.ReturnType returnType, String name) -
evalSha
public <T> T evalSha(String scriptSha, org.springframework.data.redis.connection.ReturnType returnType, int numKeys, byte[]... keysAndArgs) -
evalSha
public <T> T evalSha(byte[] scriptSha, org.springframework.data.redis.connection.ReturnType returnType, int numKeys, byte[]... keysAndArgs) -
geoAdd
-
geoAdd
public Long geoAdd(byte[] key, org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<byte[]> location) -
geoAdd
-
geoAdd
-
geoDist
public org.springframework.data.geo.Distance geoDist(byte[] key, byte[] member1, byte[] member2) -
geoDist
public org.springframework.data.geo.Distance geoDist(byte[] key, byte[] member1, byte[] member2, org.springframework.data.geo.Metric metric) -
geoHash
-
geoPos
-
geoRadius
public org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<byte[]>> geoRadius(byte[] key, org.springframework.data.geo.Circle within) -
geoRadius
public org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<byte[]>> geoRadius(byte[] key, org.springframework.data.geo.Circle within, org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs args) -
geoRadiusByMember
public org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<byte[]>> geoRadiusByMember(byte[] key, byte[] member, double radius) -
geoRadiusByMember
public org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<byte[]>> geoRadiusByMember(byte[] key, byte[] member, org.springframework.data.geo.Distance radius) -
geoRadiusByMember
public org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<byte[]>> geoRadiusByMember(byte[] key, byte[] member, org.springframework.data.geo.Distance radius, org.springframework.data.redis.connection.RedisGeoCommands.GeoRadiusCommandArgs args) -
geoRemove
-
geoSearch
public org.springframework.data.geo.GeoResults<org.springframework.data.redis.connection.RedisGeoCommands.GeoLocation<byte[]>> geoSearch(byte[] key, org.springframework.data.redis.domain.geo.GeoReference<byte[]> reference, org.springframework.data.redis.domain.geo.GeoShape predicate, org.springframework.data.redis.connection.RedisGeoCommands.GeoSearchCommandArgs args) -
geoSearchStore
public Long geoSearchStore(byte[] destKey, byte[] key, org.springframework.data.redis.domain.geo.GeoReference<byte[]> reference, org.springframework.data.redis.domain.geo.GeoShape predicate, org.springframework.data.redis.connection.RedisGeoCommands.GeoSearchStoreCommandArgs args) -
pfAdd
-
pfCount
-
pfMerge
public void pfMerge(byte[] destinationKey, byte[]... sourceKeys) -
hStrLen
-
streamCommands
public org.springframework.data.redis.connection.RedisStreamCommands streamCommands() -
bitField
-
exists
-
touch
-
encodingOf
public org.springframework.data.redis.connection.ValueEncoding encodingOf(byte[] key) -
idletime
-
refcount
-
bitPos
-
restore
public void restore(byte[] key, long ttlInMillis, byte[] serializedValue, boolean replace) -
zRandMember
public byte[] zRandMember(byte[] key) -
zRandMember
-
zRandMemberWithScore
public org.springframework.data.redis.connection.zset.Tuple zRandMemberWithScore(byte[] key) -
zRandMemberWithScore
public List<org.springframework.data.redis.connection.zset.Tuple> zRandMemberWithScore(byte[] key, long count) -
zPopMin
public org.springframework.data.redis.connection.zset.Tuple zPopMin(byte[] key) -
zPopMin
-
bZPopMin
public org.springframework.data.redis.connection.zset.Tuple bZPopMin(byte[] key, long timeout, TimeUnit unit) -
zPopMax
public org.springframework.data.redis.connection.zset.Tuple zPopMax(byte[] key) -
zPopMax
-
bZPopMax
public org.springframework.data.redis.connection.zset.Tuple bZPopMax(byte[] key, long timeout, TimeUnit unit) -
zMScore
-
zDiff
-
zDiffWithScores
-
zDiffStore
-
zInter
-
zInterWithScores
public Set<org.springframework.data.redis.connection.zset.Tuple> zInterWithScores(org.springframework.data.redis.connection.zset.Aggregate aggregate, org.springframework.data.redis.connection.zset.Weights weights, byte[]... sets) -
zInterWithScores
-
zUnion
-
zUnionWithScores
public Set<org.springframework.data.redis.connection.zset.Tuple> zUnionWithScores(org.springframework.data.redis.connection.zset.Aggregate aggregate, org.springframework.data.redis.connection.zset.Weights weights, byte[]... sets) -
zUnionWithScores
-
hRandField
public byte[] hRandField(byte[] key) -
hRandFieldWithValues
-
hRandField
-
hRandFieldWithValues
-
copy
-
lMove
public byte[] lMove(byte[] sourceKey, byte[] destinationKey, org.springframework.data.redis.connection.RedisListCommands.Direction from, org.springframework.data.redis.connection.RedisListCommands.Direction to) -
bLMove
public byte[] bLMove(byte[] sourceKey, byte[] destinationKey, org.springframework.data.redis.connection.RedisListCommands.Direction from, org.springframework.data.redis.connection.RedisListCommands.Direction to, double timeout) -
lPop
-
rPop
-
sMIsMember
-
getEx
public byte[] getEx(byte[] key, org.springframework.data.redis.core.types.Expiration expiration) -
getDel
public byte[] getDel(byte[] key) -
zRevRangeByLex
public Set<byte[]> zRevRangeByLex(byte[] key, org.springframework.data.domain.Range range, org.springframework.data.redis.connection.Limit limit) -
time
-
zRemRangeByLex
-
zLexCount
-
rewriteConfig
public void rewriteConfig() -
zRangeStoreByLex
public Long zRangeStoreByLex(byte[] dstKey, byte[] srcKey, org.springframework.data.domain.Range<byte[]> range, org.springframework.data.redis.connection.Limit limit) -
zRangeStoreRevByLex
public Long zRangeStoreRevByLex(byte[] dstKey, byte[] srcKey, org.springframework.data.domain.Range<byte[]> range, org.springframework.data.redis.connection.Limit limit) -
zRangeStoreByScore
-
zRangeStoreRevByScore
-
flushDb
public void flushDb(org.springframework.data.redis.connection.RedisServerCommands.FlushOption option) -
flushAll
public void flushAll(org.springframework.data.redis.connection.RedisServerCommands.FlushOption option) -
replicaOf
-
replicaOfNoOne
public void replicaOfNoOne() -
setGet
public byte[] setGet(byte[] key, byte[] value, org.springframework.data.redis.core.types.Expiration expiration, org.springframework.data.redis.connection.RedisStringCommands.SetOption option) -
expire
public Boolean expire(byte[] key, long seconds, org.springframework.data.redis.connection.ExpirationOptions.Condition condition) -
pExpire
public Boolean pExpire(byte[] key, long millis, org.springframework.data.redis.connection.ExpirationOptions.Condition condition) -
expireAt
public Boolean expireAt(byte[] key, long unixTime, org.springframework.data.redis.connection.ExpirationOptions.Condition condition) -
pExpireAt
public Boolean pExpireAt(byte[] key, long unixTimeInMillis, org.springframework.data.redis.connection.ExpirationOptions.Condition condition) -
hExpire
-
hpExpire
-
hExpireAt
-
hpExpireAt
-
hPersist
-
hTtl
-
hTtl
-
hpTtl
-
commands
public org.springframework.data.redis.connection.RedisCommands commands() -
geoCommands
public org.springframework.data.redis.connection.RedisGeoCommands geoCommands() -
hashCommands
public org.springframework.data.redis.connection.RedisHashCommands hashCommands() -
hyperLogLogCommands
public org.springframework.data.redis.connection.RedisHyperLogLogCommands hyperLogLogCommands() -
keyCommands
public org.springframework.data.redis.connection.RedisKeyCommands keyCommands() -
listCommands
public org.springframework.data.redis.connection.RedisListCommands listCommands() -
setCommands
public org.springframework.data.redis.connection.RedisSetCommands setCommands() -
scriptingCommands
public org.springframework.data.redis.connection.RedisScriptingCommands scriptingCommands() -
serverCommands
public org.springframework.data.redis.connection.RedisServerCommands serverCommands() -
stringCommands
public org.springframework.data.redis.connection.RedisStringCommands stringCommands() -
zSetCommands
public org.springframework.data.redis.connection.RedisZSetCommands zSetCommands()
-