@@ -195,9 +195,9 @@ default Mono<Boolean> set(ByteBuffer key, ByteBuffer value, Expiration expiratio
195
195
Flux <BooleanResponse <SetCommand >> set (Publisher <SetCommand > commands );
196
196
197
197
/**
198
- * Set {@literal value} for {@literal key} with {@literal expiration} and {@literal options}. Return the old
199
- * string stored at key, or nil if key did not exist. An error is returned and SET aborted if the value
200
- * stored at key is not a string.
198
+ * Set {@literal value} for {@literal key} with {@literal expiration} and {@literal options}. Return the old string
199
+ * stored at key, or empty if key did not exist. An error is returned and SET aborted if the value stored at key is
200
+ * not a string.
201
201
*
202
202
* @param key must not be {@literal null}.
203
203
* @param value must not be {@literal null}.
@@ -206,7 +206,7 @@ default Mono<Boolean> set(ByteBuffer key, ByteBuffer value, Expiration expiratio
206
206
* @param option must not be {@literal null}.
207
207
* @return
208
208
* @see <a href="https://redis.io/commands/set">Redis Documentation: SET</a>
209
- * @since 3.4
209
+ * @since 3.5
210
210
*/
211
211
@ Nullable
212
212
default Mono <ByteBuffer > setGet (ByteBuffer key , ByteBuffer value , Expiration expiration , SetOption option ) {
@@ -219,13 +219,13 @@ default Mono<ByteBuffer> setGet(ByteBuffer key, ByteBuffer value, Expiration exp
219
219
}
220
220
221
221
/**
222
- * Set each and every item separately by invoking {@link SetCommand}. Return the old
223
- * string stored at key, or nil if key did not exist. An error is returned and SET aborted if the value
224
- * stored at key is not a string.
222
+ * Set each and every item separately by invoking {@link SetCommand}. Return the old string stored at key, or empty if
223
+ * key did not exist. An error is returned and SET aborted if the value stored at key is not a string.
225
224
*
226
225
* @param commands must not be {@literal null}.
227
226
* @return {@link Flux} of {@link ByteBufferResponse} holding the {@link SetCommand} along with the command result.
228
227
* @see <a href="https://redis.io/commands/set">Redis Documentation: SET</a>
228
+ * @since 3.5
229
229
*/
230
230
Flux <ByteBufferResponse <SetCommand >> setGet (Publisher <SetCommand > commands );
231
231
0 commit comments