47
47
* @author Todd Merrill
48
48
* @author Chen Li
49
49
* @author Vedran Pavic
50
+ * @author Marcin Grzejszczak
50
51
*/
51
52
public interface RedisOperations <K , V > {
52
53
@@ -151,7 +152,7 @@ <T> T execute(RedisScript<T> script, RedisSerializer<?> argsSerializer, RedisSer
151
152
* to free resources after use.
152
153
*
153
154
* @param callback must not be {@literal null}.
154
- * @return
155
+ * @return the {@link Object result} of the operation performed in the callback or {@literal null}.
155
156
* @since 1.8
156
157
*/
157
158
@ Nullable
@@ -167,7 +168,7 @@ <T> T execute(RedisScript<T> script, RedisSerializer<?> argsSerializer, RedisSer
167
168
* @param sourceKey must not be {@literal null}.
168
169
* @param targetKey must not be {@literal null}.
169
170
* @param replace whether the key was copied. {@literal null} when used in pipeline / transaction.
170
- * @return
171
+ * @return {@code true} when copied successfully or {@literal null} when used in pipeline / transaction.
171
172
* @see <a href="https://redis.io/commands/copy">Redis Documentation: COPY</a>
172
173
* @since 2.6
173
174
*/
@@ -178,7 +179,7 @@ <T> T execute(RedisScript<T> script, RedisSerializer<?> argsSerializer, RedisSer
178
179
* Determine if given {@code key} exists.
179
180
*
180
181
* @param key must not be {@literal null}.
181
- * @return
182
+ * @return {@literal true} if key exists. {@literal null} when used in pipeline / transaction.
182
183
* @see <a href="https://redis.io/commands/exists">Redis Documentation: EXISTS</a>
183
184
*/
184
185
@ Nullable
@@ -361,7 +362,7 @@ default Boolean expireAt(K key, Instant expireAt) {
361
362
* Remove the expiration from given {@code key}.
362
363
*
363
364
* @param key must not be {@literal null}.
364
- * @return {@literal null} when used in pipeline / transaction.
365
+ * @return {@code true} when persisted successfully or {@ literal null} when used in pipeline / transaction.
365
366
* @see <a href="https://redis.io/commands/persist">Redis Documentation: PERSIST</a>
366
367
*/
367
368
@ Nullable
0 commit comments