V - the value typepublic class IncrementPair<V> extends Object
TOPK.INCRBY and CMS.INCRBY.| Constructor and Description |
|---|
IncrementPair(V value,
long increment)
Creates a new
IncrementPair. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
getIncrement()
Returns the increment.
|
V |
getValue()
Returns the value.
|
int |
hashCode() |
static <V> IncrementPair<V> |
of(V value,
long increment)
Creates a new
IncrementPair. |
String |
toString() |
public IncrementPair(V value, long increment)
IncrementPair.value - the value, must not be null.increment - the increment.public static <V> IncrementPair<V> of(V value, long increment)
IncrementPair.V - the value type.value - the value, must not be null.increment - the increment.IncrementPair.public V getValue()
public long getIncrement()
Copyright © 2026 lettuce.io. All rights reserved.