@@ -1167,41 +1167,12 @@ public long hset(final byte[] key, final Map<byte[], byte[]> hash) {
11671167 return connection .executeCommand (commandObjects .hset (key , hash ));
11681168 }
11691169
1170- /**
1171- * Sets the specified field in the hash stored at key to the specified value with additional parameters,
1172- * and optionally set their expiration. Use `HSetExParams` object to specify expiration parameters.
1173- * This command can overwrite any existing fields in the hash.
1174- * If key does not exist, a new key holding a hash is created.
1175- *
1176- * @param key the key of the hash
1177- * @param params additional parameters for the HSETEX command
1178- * @param field the field in the hash
1179- * @param value the value to set
1180- * @return 0 if no fields were set, 1 if all the fields were set
1181- * @throws IllegalStateException if the command is executed in a transaction or pipeline context
1182- *
1183- * @see HSetExParams
1184- */
11851170 @ Override
11861171 public long hsetex (byte [] key , HSetExParams params , byte [] field , byte [] value ) {
11871172 checkIsInMultiOrPipeline ();
11881173 return connection .executeCommand (commandObjects .hsetex (key , params , field , value ));
11891174 }
11901175
1191- /**
1192- * Sets the specified fields in the hash stored at key to the specified values with additional parameters,
1193- * and optionally set their expiration. Use `HSetExParams` object to specify expiration parameters.
1194- * This command can overwrite any existing fields in the hash.
1195- * If key does not exist, a new key holding a hash is created.
1196- *
1197- * @param key the key of the hash
1198- * @param params the parameters for the HSETEX command
1199- * @param hash the map containing field-value pairs to set in the hash
1200- * @return 0 if no fields were set, 1 if all the fields were set
1201- * @throws IllegalStateException if the command is executed in a transaction or pipeline context
1202- *
1203- * @see HSetExParams
1204- */
12051176 @ Override
12061177 public long hsetex (byte [] key , HSetExParams params , Map <byte [], byte []> hash ){
12071178 checkIsInMultiOrPipeline ();
@@ -1224,33 +1195,12 @@ public byte[] hget(final byte[] key, final byte[] field) {
12241195 return connection .executeCommand (commandObjects .hget (key , field ));
12251196 }
12261197
1227- /**
1228- * Retrieves the values associated with the specified fields in a hash stored at the given key
1229- * and optionally sets their expiration. Use `HGetExParams` object to specify expiration parameters.
1230- *
1231- * @param key the key of the hash
1232- * @param params additional parameters for the HGETEX command
1233- * @param fields the fields whose values are to be retrieved
1234- * @return a list of the value associated with each field or nil if the field doesn’t exist.
1235- * @throws IllegalStateException if the method is called while in a transaction or pipeline context
1236- *
1237- * @see HGetExParams
1238- */
12391198 @ Override
12401199 public List <byte []> hgetex (byte [] key , HGetExParams params , byte []... fields ){
12411200 checkIsInMultiOrPipeline ();
12421201 return connection .executeCommand (commandObjects .hgetex (key , params , fields ));
12431202 }
12441203
1245- /**
1246- * Retrieves the values associated with the specified fields in the hash stored at the given key
1247- * and then deletes those fields from the hash.
1248- *
1249- * @param key the key of the hash
1250- * @param fields the fields whose values are to be retrieved and then deleted
1251- * @return a list of values associated with the specified fields before they were deleted
1252- * @throws IllegalStateException if the client is in a transaction or pipeline
1253- */
12541204 @ Override
12551205 public List <byte []> hgetdel (byte [] key , byte []... fields ){
12561206 checkIsInMultiOrPipeline ();
@@ -5761,41 +5711,12 @@ public long hset(final String key, final Map<String, String> hash) {
57615711 return connection .executeCommand (commandObjects .hset (key , hash ));
57625712 }
57635713
5764- /**
5765- * Sets the specified field in the hash stored at key to the specified value with additional parameters,
5766- * and optionally set their expiration. Use `HSetExParams` object to specify expiration parameters.
5767- * This command can overwrite any existing fields in the hash.
5768- * If key does not exist, a new key holding a hash is created.
5769- *
5770- * @param key the key of the hash
5771- * @param params the parameters for the HSETEX command
5772- * @param field the field in the hash
5773- * @param value the value to set
5774- * @return 0 if no fields were set, 1 if all the fields were set
5775- * @throws IllegalStateException if the command is executed in a transaction or pipeline context
5776- *
5777- * @see HSetExParams
5778- */
57795714 @ Override
57805715 public long hsetex (String key , HSetExParams params , String field , String value ) {
57815716 checkIsInMultiOrPipeline ();
57825717 return connection .executeCommand (commandObjects .hsetex (key , params , field , value ));
57835718 }
57845719
5785- /**
5786- * Sets the specified fields in the hash stored at key to the specified values with additional parameters,
5787- * and optionally set their expiration. Use `HSetExParams` object to specify expiration parameters.
5788- * This command can overwrite any existing fields in the hash.
5789- * If key does not exist, a new key holding a hash is created.
5790- *
5791- * @param key the key of the hash
5792- * @param params the parameters for the HSETEX command
5793- * @param hash the map containing field-value pairs to set in the hash
5794- * @return 0 if no fields were set, 1 if all the fields were set
5795- * @throws IllegalStateException if the command is executed in a transaction or pipeline context
5796- *
5797- * @see HSetExParams
5798- */
57995720 @ Override
58005721 public long hsetex (String key , HSetExParams params , Map <String , String > hash ) {
58015722 checkIsInMultiOrPipeline ();
@@ -5818,33 +5739,12 @@ public String hget(final String key, final String field) {
58185739 return connection .executeCommand (commandObjects .hget (key , field ));
58195740 }
58205741
5821- /**
5822- * Retrieves the values associated with the specified fields in a hash stored at the given key
5823- * and optionally sets their expiration. Use `HGetExParams` object to specify expiration parameters.
5824- *
5825- * @param key the key of the hash
5826- * @param params additional parameters for the HGETEX command
5827- * @param fields the fields whose values are to be retrieved
5828- * @return a list of the value associated with each field or nil if the field doesn’t exist.
5829- * @throws IllegalStateException if the method is called while in a transaction or pipeline context
5830- *
5831- * @see HGetExParams
5832- */
58335742 @ Override
58345743 public List <String > hgetex (String key , HGetExParams params , String ... fields ) {
58355744 checkIsInMultiOrPipeline ();
58365745 return connection .executeCommand (commandObjects .hgetex (key , params , fields ));
58375746 }
58385747
5839- /**
5840- * Retrieves the values associated with the specified fields in the hash stored at the given key
5841- * and then deletes those fields from the hash.
5842- *
5843- * @param key the key of the hash
5844- * @param fields the fields whose values are to be retrieved and then deleted
5845- * @return a list of values associated with the specified fields before they were deleted
5846- * @throws IllegalStateException if the client is in a transaction or pipeline
5847- */
58485748 @ Override
58495749 public List <String > hgetdel (String key , String ... fields ) {
58505750 checkIsInMultiOrPipeline ();
0 commit comments