Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RedisOperations updated with proper javadocs for hasKey and other methods #3055

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
* @author Todd Merrill
* @author Chen Li
* @author Vedran Pavic
* @author Marcin Grzejszczak
*/
public interface RedisOperations<K, V> {

Expand Down Expand Up @@ -151,7 +152,7 @@ <T> T execute(RedisScript<T> script, RedisSerializer<?> argsSerializer, RedisSer
* to free resources after use.
*
* @param callback must not be {@literal null}.
* @return
* @return the {@link Object result} of the operation performed in the callback or {@literal null}.
* @since 1.8
*/
@Nullable
Expand All @@ -167,7 +168,7 @@ <T> T execute(RedisScript<T> script, RedisSerializer<?> argsSerializer, RedisSer
* @param sourceKey must not be {@literal null}.
* @param targetKey must not be {@literal null}.
* @param replace whether the key was copied. {@literal null} when used in pipeline / transaction.
* @return
* @return {@code true} when copied successfully or {@literal null} when used in pipeline / transaction.
* @see <a href="https://redis.io/commands/copy">Redis Documentation: COPY</a>
* @since 2.6
*/
Expand All @@ -178,7 +179,7 @@ <T> T execute(RedisScript<T> script, RedisSerializer<?> argsSerializer, RedisSer
* Determine if given {@code key} exists.
*
* @param key must not be {@literal null}.
* @return
* @return {@literal true} if key exists. {@literal null} when used in pipeline / transaction.
* @see <a href="https://redis.io/commands/exists">Redis Documentation: EXISTS</a>
*/
@Nullable
Expand Down Expand Up @@ -361,7 +362,7 @@ default Boolean expireAt(K key, Instant expireAt) {
* Remove the expiration from given {@code key}.
*
* @param key must not be {@literal null}.
* @return {@literal null} when used in pipeline / transaction.
* @return {@code true} when persisted successfully or {@literal null} when used in pipeline / transaction.
* @see <a href="https://redis.io/commands/persist">Redis Documentation: PERSIST</a>
*/
@Nullable
Expand Down