Class ReactiveNumberCommands.IncrByCommand<T extends Number>
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveNumberCommands.IncrByCommand<T>
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
- ReactiveNumberCommands
public static class ReactiveNumberCommands.IncrByCommand<T extends Number>
extends ReactiveRedisConnection.KeyCommand
INCRBY command parameters.- Author:
- Christoph Strobl
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionApplies the numeric value.getValue()static <T extends Number>
ReactiveNumberCommands.IncrByCommand<T>incr(ByteBuffer key) Creates a newReactiveNumberCommands.IncrByCommandgiven akey.Methods inherited from class org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
getKeyMethods 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.ReactiveRedisConnection.Command
getName
-
Method Details
-
incr
Creates a newReactiveNumberCommands.IncrByCommandgiven akey.- Parameters:
key- must not be null.- Returns:
- a new
ReactiveNumberCommands.IncrByCommandforkey.
-
by
Applies the numeric value. Constructs a new command instance with all previously configured properties.- Parameters:
value- must not be null.- Returns:
- a new
ReactiveNumberCommands.IncrByCommandwith value applied.
-
getValue
- Returns:
- can be null.
-