Skip to content

Commit 80f8867

Browse files
committed
DATAREDIS-464 - Enhance JavaDoc on RedisStringCommands and StringRedisConnection.
1 parent 1151bcf commit 80f8867

File tree

2 files changed

+221
-34
lines changed

2 files changed

+221
-34
lines changed

src/main/java/org/springframework/data/redis/connection/RedisStringCommands.java

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
*
2626
* @author Costin Leau
2727
* @author Christoph Strobl
28+
* @author Mark Paluch
2829
*/
2930
public interface RedisStringCommands {
3031

@@ -37,7 +38,7 @@ public enum BitOperation {
3738
* <p>
3839
* See http://redis.io/commands/get
3940
*
40-
* @param key
41+
* @param key must not be {@literal null}.
4142
* @return
4243
*/
4344
byte[] get(byte[] key);
@@ -47,7 +48,7 @@ public enum BitOperation {
4748
* <p>
4849
* See http://redis.io/commands/getset
4950
*
50-
* @param key
51+
* @param key must not be {@literal null}.
5152
* @param value
5253
* @return
5354
*/
@@ -68,8 +69,8 @@ public enum BitOperation {
6869
* <p>
6970
* See http://redis.io/commands/set
7071
*
71-
* @param key
72-
* @param value
72+
* @param key must not be {@literal null}.
73+
* @param value must not be {@literal null}.
7374
*/
7475
void set(byte[] key, byte[] value);
7576

@@ -92,8 +93,8 @@ public enum BitOperation {
9293
* <p>
9394
* See http://redis.io/commands/setnx
9495
*
95-
* @param key
96-
* @param value
96+
* @param key must not be {@literal null}.
97+
* @param value must not be {@literal null}.
9798
* @return
9899
*/
99100
Boolean setNX(byte[] key, byte[] value);
@@ -103,9 +104,9 @@ public enum BitOperation {
103104
* <p>
104105
* See http://redis.io/commands/setex
105106
*
106-
* @param key
107+
* @param key must not be {@literal null}.
107108
* @param seconds
108-
* @param value
109+
* @param value must not be {@literal null}.
109110
*/
110111
void setEx(byte[] key, long seconds, byte[] value);
111112

@@ -114,9 +115,9 @@ public enum BitOperation {
114115
* <p>
115116
* See http://redis.io/commands/psetex
116117
*
117-
* @param key
118+
* @param key must not be {@literal null}.
118119
* @param milliseconds
119-
* @param value
120+
* @param value must not be {@literal null}.
120121
* @since 1.3
121122
*/
122123
void pSetEx(byte[] key, long milliseconds, byte[] value);
@@ -145,7 +146,7 @@ public enum BitOperation {
145146
* <p>
146147
* See http://redis.io/commands/incr
147148
*
148-
* @param key
149+
* @param key must not be {@literal null}.
149150
* @return
150151
*/
151152
Long incr(byte[] key);
@@ -155,7 +156,7 @@ public enum BitOperation {
155156
* <p>
156157
* See http://redis.io/commands/incrby
157158
*
158-
* @param key
159+
* @param key must not be {@literal null}.
159160
* @param value
160161
* @return
161162
*/
@@ -166,7 +167,7 @@ public enum BitOperation {
166167
* <p>
167168
* See http://redis.io/commands/incrbyfloat
168169
*
169-
* @param key
170+
* @param key must not be {@literal null}.
170171
* @param value
171172
* @return
172173
*/
@@ -177,7 +178,7 @@ public enum BitOperation {
177178
* <p>
178179
* See http://redis.io/commands/decr
179180
*
180-
* @param key
181+
* @param key must not be {@literal null}.
181182
* @return
182183
*/
183184
Long decr(byte[] key);
@@ -187,7 +188,7 @@ public enum BitOperation {
187188
* <p>
188189
* See http://redis.io/commands/decrby
189190
*
190-
* @param key
191+
* @param key must not be {@literal null}.
191192
* @param value
192193
* @return
193194
*/
@@ -198,7 +199,7 @@ public enum BitOperation {
198199
* <p>
199200
* See http://redis.io/commands/append
200201
*
201-
* @param key
202+
* @param key must not be {@literal null}.
202203
* @param value
203204
* @return
204205
*/
@@ -209,7 +210,7 @@ public enum BitOperation {
209210
* <p>
210211
* See http://redis.io/commands/getrange
211212
*
212-
* @param key
213+
* @param key must not be {@literal null}.
213214
* @param begin
214215
* @param end
215216
* @return
@@ -221,7 +222,7 @@ public enum BitOperation {
221222
* <p>
222223
* See http://redis.io/commands/setrange
223224
*
224-
* @param key
225+
* @param key must not be {@literal null}.
225226
* @param value
226227
* @param offset
227228
*/
@@ -232,7 +233,7 @@ public enum BitOperation {
232233
* <p>
233234
* See http://redis.io/commands/getbit
234235
*
235-
* @param key
236+
* @param key must not be {@literal null}.
236237
* @param offset
237238
* @return
238239
*/
@@ -243,7 +244,7 @@ public enum BitOperation {
243244
* <p>
244245
* See http://redis.io/commands/setbit
245246
*
246-
* @param key
247+
* @param key must not be {@literal null}.
247248
* @param offset
248249
* @param value
249250
* @return the original bit value stored at {@code offset}.
@@ -255,7 +256,7 @@ public enum BitOperation {
255256
* <p>
256257
* See http://redis.io/commands/bitcount
257258
*
258-
* @param key
259+
* @param key must not be {@literal null}.
259260
* @return
260261
*/
261262
Long bitCount(byte[] key);
@@ -266,7 +267,7 @@ public enum BitOperation {
266267
* <p>
267268
* See http://redis.io/commands/bitcount
268269
*
269-
* @param key
270+
* @param key must not be {@literal null}.
270271
* @param begin
271272
* @param end
272273
* @return
@@ -290,7 +291,7 @@ public enum BitOperation {
290291
* <p>
291292
* See http://redis.io/commands/strlen
292293
*
293-
* @param key
294+
* @param key must not be {@literal null}.
294295
* @return
295296
*/
296297
Long strLen(byte[] key);

0 commit comments

Comments
 (0)