DATAREDIS-1196 - Polishing.

Tweak Redis 6.0.6 requirement wording. Join assertions where possible and use more concise assertions.

Original pull request: #563.
This commit is contained in:
Mark Paluch
2020-09-16 09:27:54 +02:00
parent 76cbe5124d
commit c72a84885c
7 changed files with 36 additions and 43 deletions

View File

@@ -49,7 +49,7 @@ public interface RedisListCommands {
/**
* Returns the index of matching elements inside the list stored at given {@literal key}. <br />
* Requires Redis 6.0.6.
* Requires Redis 6.0.6 or newer.
*
* @param key must not be {@literal null}.
* @param element must not be {@literal null}.
@@ -64,7 +64,7 @@ public interface RedisListCommands {
/**
* Returns the index of matching elements inside the list stored at given {@literal key}. <br />
* Requires Redis 6.0.6.
* Requires Redis 6.0.6 or newer.
*
* @param key must not be {@literal null}.
* @param element must not be {@literal null}.

View File

@@ -688,7 +688,7 @@ public interface StringRedisConnection extends RedisConnection {
/**
* Returns the index of matching elements inside the list stored at given {@literal key}. <br />
* Requires Redis 6.0.6.
* Requires Redis 6.0.6 or newer.
*
* @param key must not be {@literal null}.
* @param element must not be {@literal null}.
@@ -703,7 +703,7 @@ public interface StringRedisConnection extends RedisConnection {
/**
* Returns the index of matching elements inside the list stored at given {@literal key}. <br />
* Requires Redis 6.0.6.
* Requires Redis 6.0.6 or newer.
*
* @param key must not be {@literal null}.
* @param element must not be {@literal null}.
@@ -2059,7 +2059,7 @@ public interface StringRedisConnection extends RedisConnection {
/**
* Append the given {@link StringRecord} to the stream stored at {@link StringRecord#getStream()}.
*
*
* @param record must not be {@literal null}.
* @param options must not be {@literal null}, use {@link XAddOptions#none()} instead.
* @return the record Id. {@literal null} when used in pipeline / transaction.

View File

@@ -171,7 +171,7 @@ public interface BoundListOperations<K, V> extends BoundKeyOperations<K> {
/**
* Returns the index of the first occurrence of the specified value in the list at at {@code key}. <br />
* Requires Redis 6.0.6
* Requires Redis 6.0.6 or newer.
*
* @param value must not be {@literal null}.
* @return {@literal null} when used in pipeline / transaction or when not contained in list.
@@ -182,7 +182,7 @@ public interface BoundListOperations<K, V> extends BoundKeyOperations<K> {
/**
* Returns the index of the last occurrence of the specified value in the list at at {@code key}. <br />
* Requires Redis 6.0.6
* Requires Redis 6.0.6 or newer.
*
* @param value must not be {@literal null}.
* @return {@literal null} when used in pipeline / transaction or when not contained in list.

View File

@@ -215,7 +215,7 @@ public interface ListOperations<K, V> {
/**
* Returns the index of the first occurrence of the specified value in the list at at {@code key}. <br />
* Requires Redis 6.0.6
* Requires Redis 6.0.6 or newer.
*
* @param key must not be {@literal null}.
* @param value must not be {@literal null}.
@@ -227,7 +227,7 @@ public interface ListOperations<K, V> {
/**
* Returns the index of the last occurrence of the specified value in the list at at {@code key}. <br />
* Requires Redis 6.0.6
* Requires Redis 6.0.6 or newer.
*
* @param key must not be {@literal null}.
* @param value must not be {@literal null}.

View File

@@ -198,7 +198,7 @@ public interface ReactiveListOperations<K, V> {
/**
* Returns the index of the first occurrence of the specified value in the list at at {@code key}. <br />
* Requires Redis 6.0.6
* Requires Redis 6.0.6 or newer.
*
* @param key must not be {@literal null}.
* @param value must not be {@literal null}.
@@ -210,7 +210,7 @@ public interface ReactiveListOperations<K, V> {
/**
* Returns the index of the last occurrence of the specified value in the list at at {@code key}. <br />
* Requires Redis 6.0.6
* Requires Redis 6.0.6 or newer.
*
* @param key must not be {@literal null}.
* @param value must not be {@literal null}.