@@ -16,51 +16,51 @@ class RedisArray
16
16
public function __construct (string |array $ hosts , ?array $ opts = null ) {}
17
17
18
18
/**
19
- * @return bool |array returns a list of points on continuum; may be useful with custom distributor function.
19
+ * @return false |array returns a list of points on continuum; may be useful with custom distributor function.
20
20
*/
21
21
public function _continuum (): bool |array {}
22
22
23
23
/**
24
- * @return bool |array returns a custom distributor function.
24
+ * @return false |array returns a custom distributor function.
25
25
*/
26
26
public function _distributor (): bool |callable {}
27
27
28
28
/**
29
- * @return bool |callable the name of the function used to extract key parts during consistent hashing.
29
+ * @return false |callable the name of the function used to extract key parts during consistent hashing.
30
30
*/
31
31
public function _function (): bool |callable {}
32
32
33
33
/**
34
- * @return bool |array list of hosts for the selected array or false
34
+ * @return false |array list of hosts for the selected array or false
35
35
*/
36
36
public function _hosts (): bool |array {}
37
37
38
38
/**
39
39
* @param string $host The host you want to retrieve the instance for
40
40
*
41
- * @return bool |null|\Redis a redis instance connected to a specific node
41
+ * @return false |null|\Redis a redis instance connected to a specific node
42
42
*/
43
43
public function _instance (string $ host ): bool |null |Redis {}
44
44
45
45
/**
46
46
* Use this function when a new node is added and keys need to be rehashed.
47
47
*
48
- * @return bool |null rehash result
48
+ * @return false |null rehash result
49
49
*/
50
50
public function _rehash (callable $ fn = null ): bool |null {}
51
51
52
52
/**
53
53
* @param string $key The key for which you want to lookup the host
54
54
*
55
- * @return bool |string|null the host to be used for a certain key
55
+ * @return false |string|null the host to be used for a certain key
56
56
*/
57
57
public function _target (string $ key ): bool |string |null {}
58
58
59
59
/**
60
60
* @param string $host Host
61
61
* @param int $mode \Redis::MULTI|\Redis::PIPELINE
62
62
*
63
- * @return bool |string|null the host to be used for a certain key
63
+ * @return false |string|null the host to be used for a certain key
64
64
*/
65
65
public function multi (string $ host , int $ mode = Redis::MULTI ): bool |RedisArray {}
66
66
@@ -198,7 +198,7 @@ public function multi(string $host, int $mode = Redis::MULTI): bool|RedisArray {
198
198
* - cluster_enabled
199
199
*
200
200
* @link https://redis.io/commands/info
201
- * @return bool |array
201
+ * @return false |array
202
202
* @example
203
203
* <pre>
204
204
* $redis->info();
@@ -208,41 +208,95 @@ public function info(): bool|array {}
208
208
209
209
public function bgsave (): array {}
210
210
211
+ /**
212
+ * @return false|int
213
+ */
211
214
public function del (string |array $ key , string ...$ otherkeys ): bool |int {}
212
215
216
+ /**
217
+ * @return false|null
218
+ */
213
219
public function discard (): bool |null {}
214
220
221
+ /**
222
+ * @return false|null|array
223
+ */
215
224
public function exec (): bool |null |array {}
216
225
226
+ /**
227
+ * @return false|array
228
+ */
217
229
public function flushall (): bool |array {}
218
230
231
+ /**
232
+ * @return false|array
233
+ */
219
234
public function flushdb (): bool |array {}
220
235
236
+ /**
237
+ * @return false|array
238
+ */
221
239
public function getOption (int $ opt ): bool |array {}
222
240
241
+ /**
242
+ * @return false|array
243
+ */
223
244
public function hscan (string $ key , null |int |string &$ iterator , ?string $ pattern = null , int $ count = 0 ): bool |array {}
224
245
246
+ /**
247
+ * @return false|array
248
+ */
225
249
public function keys (string $ pattern ): bool |array {}
226
250
251
+ /**
252
+ * @return false|array
253
+ */
227
254
public function mget (array $ keys ): bool |array {}
228
255
229
256
public function mset (array $ pairs ): bool {}
230
257
258
+ /**
259
+ * @return false|array
260
+ */
231
261
public function ping (): bool |array {}
232
262
263
+ /**
264
+ * @return false|array
265
+ */
233
266
public function save (): bool |array {}
234
267
268
+ /**
269
+ * @return false|array
270
+ */
235
271
public function scan (null |int |string &$ iterator , string $ node , ?string $ pattern = null , int $ count = 0 ): bool |array {}
236
272
273
+ /**
274
+ * @return false|array
275
+ */
237
276
public function select (int $ index ): bool |array {}
238
277
278
+ /**
279
+ * @return false|array
280
+ */
239
281
public function setOption (int $ opt , string $ value ): bool |array {}
240
282
283
+ /**
284
+ * @return false|array
285
+ */
241
286
public function sscan (string $ key , null |int |string &$ iterator , ?string $ pattern = null , int $ count = 0 ): bool |array {}
242
287
288
+ /**
289
+ * @return false|int
290
+ */
243
291
public function unlink (string |array $ key , string ...$ otherkeys ): bool |int {}
244
292
293
+ /**
294
+ * @return false|null
295
+ */
245
296
public function unwatch (): bool |null {}
246
297
298
+ /**
299
+ * @return false|array
300
+ */
247
301
public function zscan (string $ key , null |int |string &$ iterator , ?string $ pattern = null , int $ count = 0 ): bool |array {}
248
302
}
0 commit comments