@@ -95,9 +95,9 @@ public RFuture<Long> delAsync(String key, String path) {
9595 RAssert .notEmpty (key , "key must not be empty" );
9696
9797 if (path == null ) {
98- return commandExecutor .readAsync (getName () , StringCodec .INSTANCE , JSON_DEL , key );
98+ return commandExecutor .readAsync (key , StringCodec .INSTANCE , JSON_DEL , key );
9999 }
100- return commandExecutor .readAsync (getName () , StringCodec .INSTANCE , JSON_DEL , key , path );
100+ return commandExecutor .readAsync (key , StringCodec .INSTANCE , JSON_DEL , key , path );
101101 }
102102
103103 /**
@@ -118,7 +118,7 @@ public RFuture<String> setAsync(String key, SetArgs setArgs) {
118118 RAssert .notEmpty (key , "key must not be empty" );
119119 RAssert .notNull (setArgs , "setArgs must not be null" );
120120
121- return commandExecutor .writeAsync (getName () , StringCodec .INSTANCE , JSON_SET , setArgs .build (key ).toArray ());
121+ return commandExecutor .writeAsync (key , StringCodec .INSTANCE , JSON_SET , setArgs .build (key ).toArray ());
122122 }
123123
124124 /**
@@ -146,7 +146,7 @@ public <T> RFuture<T> getAsync(String key, Class<T> clazz, GetArgs getArgs) {
146146 RAssert .notNull (clazz , "clazz must not be null" );
147147 RAssert .notNull (getArgs , "getArgs must not be null" );
148148
149- RFuture <String > getFuture = commandExecutor .readAsync (getName () , StringCodec .INSTANCE , JSON_GET , getArgs .build (key ).toArray ());
149+ RFuture <String > getFuture = commandExecutor .readAsync (key , StringCodec .INSTANCE , JSON_GET , getArgs .build (key ).toArray ());
150150 return transformRPromiseResult (getFuture , clazz );
151151 }
152152
@@ -168,7 +168,7 @@ public <T> RFuture<List<T>> mgetAsync(String path, Class<T> clazz, String... key
168168 args .add (key );
169169 }
170170 args .add (path );
171- RFuture <List <String >> getFuture = commandExecutor .readAsync (getName () , StringCodec .INSTANCE , JSON_MGET , args .toArray ());
171+ RFuture <List <String >> getFuture = commandExecutor .readAsync (keys [ 0 ] , StringCodec .INSTANCE , JSON_MGET , args .toArray ());
172172 getFuture .onComplete ((res , e ) -> {
173173 if (e != null ) {
174174 result .tryFailure (e );
@@ -202,7 +202,7 @@ public RFuture<Class> getTypeAsync(String key, String path) {
202202 RAssert .notNull (path , "path must not be null" );
203203
204204 RPromise result = new RedissonPromise <Class >();
205- RFuture <String > getFuture = commandExecutor .readAsync (getName () , StringCodec .INSTANCE , JSON_TYPE , key , path );
205+ RFuture <String > getFuture = commandExecutor .readAsync (key , StringCodec .INSTANCE , JSON_TYPE , key , path );
206206 getFuture .onComplete ((res , e ) -> {
207207 if (e != null ) {
208208 result .tryFailure (e );
@@ -236,7 +236,7 @@ public RFuture<String> incrByAsync(String key, String path, long num) {
236236 RAssert .notEmpty (key , "key must not be empty" );
237237 RAssert .notNull (path , "path must not be null" );
238238
239- return commandExecutor .writeAsync (getName () , StringCodec .INSTANCE , JSON_NUMINCRBY , key , path , num );
239+ return commandExecutor .writeAsync (key , StringCodec .INSTANCE , JSON_NUMINCRBY , key , path , num );
240240 }
241241
242242 /**
@@ -257,7 +257,7 @@ public RFuture<String> multByAsync(String key, String path, long num) {
257257 RAssert .notEmpty (key , "key must not be empty" );
258258 RAssert .notNull (path , "path must not be null" );
259259
260- return commandExecutor .writeAsync (getName () , StringCodec .INSTANCE , JSON_NUMMULTBY , key , path , num );
260+ return commandExecutor .writeAsync (key , StringCodec .INSTANCE , JSON_NUMMULTBY , key , path , num );
261261 }
262262
263263 /**
@@ -279,7 +279,7 @@ public RFuture<Long> strAppendAsync(String key, String path, Object object) {
279279 RAssert .notNull (path , "path must not be null" );
280280 RAssert .notNull (object , "object must not be null" );
281281
282- return commandExecutor .writeAsync (getName () , StringCodec .INSTANCE , JSON_STRAPPEND , key , path , GsonUtils .toJson (object ));
282+ return commandExecutor .writeAsync (key , StringCodec .INSTANCE , JSON_STRAPPEND , key , path , GsonUtils .toJson (object ));
283283 }
284284
285285 /**
@@ -299,7 +299,7 @@ public RFuture<Long> strLenAsync(String key, String path) {
299299 RAssert .notEmpty (key , "key must not be empty" );
300300 RAssert .notNull (path , "path must not be null" );
301301
302- return commandExecutor .readAsync (getName () , StringCodec .INSTANCE , JSON_STRLEN , key , path );
302+ return commandExecutor .readAsync (key , StringCodec .INSTANCE , JSON_STRLEN , key , path );
303303 }
304304
305305 /**
@@ -326,7 +326,7 @@ public RFuture<Long> arrAppendAsync(String key, String path, Object... objects)
326326 for (Object object : objects ) {
327327 args .add (GsonUtils .toJson (object ));
328328 }
329- return commandExecutor .writeAsync (getName () , StringCodec .INSTANCE , JSON_ARRAPPEND , args .toArray ());
329+ return commandExecutor .writeAsync (key , StringCodec .INSTANCE , JSON_ARRAPPEND , args .toArray ());
330330 }
331331
332332 /**
@@ -354,7 +354,7 @@ public RFuture<Long> arrInsertAsync(String key, String path, long index, Object.
354354 for (Object object : objects ) {
355355 args .add (GsonUtils .toJson (object ));
356356 }
357- return commandExecutor .writeAsync (getName () , StringCodec .INSTANCE , JSON_ARRINSERT , args .toArray ());
357+ return commandExecutor .writeAsync (key , StringCodec .INSTANCE , JSON_ARRINSERT , args .toArray ());
358358 }
359359
360360 /**
@@ -374,7 +374,7 @@ public RFuture<Long> arrLenAsync(String key, String path) {
374374 RAssert .notEmpty (key , "key must not be empty" );
375375 RAssert .notNull (path , "path must not be null" );
376376
377- return commandExecutor .readAsync (getName () , StringCodec .INSTANCE , JSON_ARRLEN , key , path );
377+ return commandExecutor .readAsync (key , StringCodec .INSTANCE , JSON_ARRLEN , key , path );
378378 }
379379
380380 /**
@@ -396,7 +396,7 @@ public RFuture<Long> arrTrimAsync(String key, String path, long start, long stop
396396 RAssert .notEmpty (key , "key must not be empty" );
397397 RAssert .notNull (path , "path must not be null" );
398398
399- return commandExecutor .readAsync (getName () , StringCodec .INSTANCE , JSON_ARRTRIM , key , path , start , stop );
399+ return commandExecutor .readAsync (key , StringCodec .INSTANCE , JSON_ARRTRIM , key , path , start , stop );
400400 }
401401
402402 /**
@@ -420,7 +420,7 @@ public RFuture<Long> arrIndexAsync(String key, String path, Object scalar, long
420420 RAssert .notNull (path , "path must not be null" );
421421 RAssert .notNull (scalar , "scalar must not be null" );
422422
423- return commandExecutor .readAsync (getName () , StringCodec .INSTANCE , JSON_ARRINDEX , key , path ,
423+ return commandExecutor .readAsync (key , StringCodec .INSTANCE , JSON_ARRINDEX , key , path ,
424424 GsonUtils .toJson (scalar ), start , stop );
425425 }
426426
@@ -445,7 +445,7 @@ public <T> RFuture<T> arrPopAsync(String key, String path, Class<T> clazz, long
445445 RAssert .notNull (path , "path must not be null" );
446446 RAssert .notNull (clazz , "clazz must not be null" );
447447
448- RFuture <String > getFuture = commandExecutor .readAsync (getName () , StringCodec .INSTANCE , JSON_ARRPOP , key , path , index );
448+ RFuture <String > getFuture = commandExecutor .readAsync (key , StringCodec .INSTANCE , JSON_ARRPOP , key , path , index );
449449 return transformRPromiseResult (getFuture , clazz );
450450 }
451451
@@ -483,7 +483,7 @@ public RFuture<Long> objLenAsync(String key, String path) {
483483 RAssert .notEmpty (key , "key must not be empty" );
484484 RAssert .notNull (path , "path must not be null" );
485485
486- return commandExecutor .readAsync (getName () , StringCodec .INSTANCE , JSON_OBJLEN , key , path );
486+ return commandExecutor .readAsync (key , StringCodec .INSTANCE , JSON_OBJLEN , key , path );
487487 }
488488
489489 /**
@@ -503,7 +503,7 @@ public RFuture<List<Object>> objKeysAsync(String key, String path) {
503503 RAssert .notEmpty (key , "key must not be empty" );
504504 RAssert .notNull (path , "path must not be null" );
505505
506- return commandExecutor .readAsync (getName () , StringCodec .INSTANCE , JSON_OBJKEYS , key , path );
506+ return commandExecutor .readAsync (key , StringCodec .INSTANCE , JSON_OBJKEYS , key , path );
507507 }
508508
509509 public String getName () {
0 commit comments