Module io.inverno.mod.redis
Package io.inverno.mod.redis.operations
Interface RedisKeyReactiveOperations<A,B>
- Type Parameters:
A
- key typeB
- value type
- All Known Subinterfaces:
RedisClient<A,
,B> RedisOperations<A,
,B> RedisTransactionalClient<A,
,B> RedisTransactionalOperations<A,
B>
- All Known Implementing Classes:
io.inverno.mod.redis.lettuce.internal.AbstractRedisClient
,PoolRedisClient
,PoolRedisClusterClient
public interface RedisKeyReactiveOperations<A,B>
Redis Keys reactive commands.
- Since:
- 1.4
- Author:
- Jeremy Kuhn
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
RedisKeyReactiveOperations.AbstractKeySortBuilder<A,
C extends RedisKeyReactiveOperations.AbstractKeySortBuilder<A, C>> SORT key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]]static interface
COPY source destination [DB destination-db] [REPLACE]static interface
EXPIREAT key timestamp [NX|XX|GT|LT]static interface
EXPIRE key seconds [NX|XX|GT|LT]static interface
MIGRATE host port key|"" destination-db timeout [COPY] [REPLACE] [AUTH password] [AUTH2 username password] [KEYS key [key ...]]static interface
PEXPIREAT key milliseconds-timestamp [NX|XX|GT|LT]static interface
PEXPIRE key milliseconds [NX|XX|GT|LT]static interface
RESTORE key ttl serialized-value [REPLACE] [ABSTTL] [IDLETIME seconds] [FREQ frequency]static interface
SCAN cursor [MATCH pattern] [COUNT count] [TYPE type]static interface
static interface
SORT key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]]static interface
SORT key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] -
Method Summary
Modifier and TypeMethodDescriptioncopy()
COPY source destination [DB destination-db] [REPLACE]COPY source destinationDEL keyDEL key [key ...]Mono
<byte[]> DUMP keyEXISTS keyEXISTS key [key ...]expire()
EXPIRE key seconds [NX|XX|GT|LT]EXPIRE key secondsEXPIRE key secondsexpireat()
EXPIREAT key timestamp [NX|XX|GT|LT]EXPIREAT key timestampEXPIREAT key timestampexpireat
(A key, ZonedDateTime datetime) EXPIREAT key timestampexpiretime
(A key) EXPIRETIME keyKEYS patternmigrate()
MIGRATE host port key|"" destination-db timeout [COPY] [REPLACE] [AUTH password] [AUTH2 username password] [KEYS key [key ...]]MIGRATE host port key|"" destination-db timeoutobjectEncoding
(A key) OBJECT ENCODING keyobjectFreq
(A key) OBJECT FREQ keyobjectIdletime
(A key) OBJECT IDLETIME keyobjectRefcount
(A key) OBJECT REFCOUNT keyPERSIST keypexpire()
PEXPIRE key milliseconds [NX|XX|GT|LT]PEXPIRE key milliseconds [NX|XX|GT|LT]PEXPIRE key milliseconds [NX|XX|GT|LT]PEXPIREAT key milliseconds-timestamp [NX|XX|GT|LT]PEXPIREAT key milliseconds-timestamp [NX|XX|GT|LT]PEXPIREAT key milliseconds-timestamp [NX|XX|GT|LT]pexpireat
(A key, ZonedDateTime datetime) PEXPIREAT key milliseconds-timestamp [NX|XX|GT|LT]pexpiretime
(A key) PEXPIRETIME keyPTTL keyRENAME key newkeyRENAMENX key newkeyrestore()
RESTORE key ttl serialized-value [REPLACE] [ABSTTL] [IDLETIME seconds] [FREQ frequency]RESTORE key ttl serialized-value [REPLACE] [ABSTTL] [IDLETIME seconds] [FREQ frequency]scan()
SCAN cursor [MATCH pattern] [COUNT count] [TYPE type]SCAN cursor [MATCH pattern] [COUNT count] [TYPE type]sort()
SORT key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]]SORT key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]]SORT key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]]SORT key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]]TOUCH key [key ...]TOUCH key [key ...]TTL keyTYPE keyUNLINK key [key ...]UNLINK key [key ...]waitForReplication
(int replicas, long timeout) WAIT numreplicas timeout
-
Method Details
-
copy
COPY source destination- Parameters:
source
-destination
-- Returns:
-
copy
COPY source destination [DB destination-db] [REPLACE]- Returns:
-
del
DEL key- Parameters:
key
-- Returns:
-
del
DEL key [key ...]- Parameters:
keys
-- Returns:
-
dump
DUMP key- Parameters:
key
-- Returns:
-
exists
EXISTS key- Parameters:
key
-- Returns:
-
exists
EXISTS key [key ...]- Parameters:
keys
-- Returns:
-
expire
EXPIRE key seconds- Parameters:
key
-seconds
-- Returns:
-
expire
EXPIRE key seconds- Parameters:
key
-duration
-- Returns:
-
expire
RedisKeyReactiveOperations.KeyExpireBuilder<A> expire()EXPIRE key seconds [NX|XX|GT|LT]- Returns:
-
expireat
EXPIREAT key timestamp- Parameters:
key
-epochSeconds
-- Returns:
-
expireat
EXPIREAT key timestamp- Parameters:
key
-datetime
-- Returns:
-
expireat
EXPIREAT key timestamp- Parameters:
key
-instant
-- Returns:
-
expireat
RedisKeyReactiveOperations.KeyExpireatBuilder<A> expireat()EXPIREAT key timestamp [NX|XX|GT|LT]- Returns:
-
expiretime
EXPIRETIME key- Parameters:
key
-- Returns:
-
keys
KEYS pattern- Parameters:
pattern
-- Returns:
-
migrate
MIGRATE host port key|"" destination-db timeout- Parameters:
host
-port
-key
-db
-timeout
-- Returns:
-
migrate
RedisKeyReactiveOperations.KeyMigrateBuilder<A> migrate()MIGRATE host port key|"" destination-db timeout [COPY] [REPLACE] [AUTH password] [AUTH2 username password] [KEYS key [key ...]]- Returns:
-
move
- Parameters:
key
-db
-- Returns:
-
objectEncoding
OBJECT ENCODING key- Parameters:
key
-- Returns:
-
objectFreq
OBJECT FREQ key- Parameters:
key
-- Returns:
-
objectIdletime
OBJECT IDLETIME key- Parameters:
key
-- Returns:
-
objectRefcount
OBJECT REFCOUNT key- Parameters:
key
-- Returns:
-
persist
PERSIST key- Parameters:
key
-- Returns:
-
pexpire
PEXPIRE key milliseconds [NX|XX|GT|LT]- Parameters:
key
-milliseconds
-- Returns:
-
pexpire
PEXPIRE key milliseconds [NX|XX|GT|LT]- Parameters:
key
-duration
-- Returns:
-
pexpire
RedisKeyReactiveOperations.KeyPexpireBuilder<A> pexpire()PEXPIRE key milliseconds [NX|XX|GT|LT]- Returns:
-
pexpireat
PEXPIREAT key milliseconds-timestamp [NX|XX|GT|LT]- Parameters:
key
-epochMilliseconds
-- Returns:
-
pexpireat
PEXPIREAT key milliseconds-timestamp [NX|XX|GT|LT]- Parameters:
key
-datetime
-- Returns:
-
pexpireat
PEXPIREAT key milliseconds-timestamp [NX|XX|GT|LT]- Parameters:
key
-instant
-- Returns:
-
pexpireat
RedisKeyReactiveOperations.KeyPexpireatBuilder<A> pexpireat()PEXPIREAT key milliseconds-timestamp [NX|XX|GT|LT]- Returns:
-
pexpiretime
PEXPIRETIME key- Parameters:
key
-- Returns:
-
pttl
PTTL key- Parameters:
key
-- Returns:
-
randomkey
- Returns:
-
rename
RENAME key newkey- Parameters:
key
-newkey
-- Returns:
-
renamenx
RENAMENX key newkey- Parameters:
key
-newkey
-- Returns:
-
restore
RESTORE key ttl serialized-value [REPLACE] [ABSTTL] [IDLETIME seconds] [FREQ frequency]- Parameters:
key
-ttl
-serializedValue
-- Returns:
-
restore
RedisKeyReactiveOperations.KeyRestoreBuilder<A> restore()RESTORE key ttl serialized-value [REPLACE] [ABSTTL] [IDLETIME seconds] [FREQ frequency]- Returns:
-
scan
SCAN cursor [MATCH pattern] [COUNT count] [TYPE type]- Parameters:
cursor
-- Returns:
-
scan
SCAN cursor [MATCH pattern] [COUNT count] [TYPE type]- Returns:
-
sort
SORT key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]- Parameters:
key
-- Returns:
-
sort
SORT key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]- Returns:
-
sortStore
SORT key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]- Parameters:
key
-destination
-- Returns:
-
sortStore
RedisKeyReactiveOperations.KeySortStoreBuilder<A> sortStore()SORT key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]- Returns:
-
touch
TOUCH key [key ...]- Parameters:
key
-- Returns:
-
touch
TOUCH key [key ...]- Parameters:
keys
-- Returns:
-
ttl
TTL key- Parameters:
key
-- Returns:
-
type
TYPE key- Parameters:
key
-- Returns:
-
unlink
UNLINK key [key ...]- Parameters:
key
-- Returns:
-
unlink
UNLINK key [key ...]- Parameters:
keys
-- Returns:
-
waitForReplication
WAIT numreplicas timeout- Parameters:
replicas
-timeout
-- Returns:
-