redis-rbs 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -26
  3. data/sig/redis.rbs +2497 -436
  4. metadata +7 -7
data/sig/redis.rbs CHANGED
@@ -1,12 +1,20 @@
1
- # Generated from redis 5.4.1. Do not edit by hand.
1
+ # Generated from redis 6.1.0. Do not edit by hand.
2
2
  class Redis
3
3
  type key = String | Symbol
4
+ type geo_coordinates = [String | Float, String | Float]
5
+ type geo_search_reply = Array[String | Array[String | Float | Integer | geo_coordinates]]
4
6
  type scalar = nil | bool | Integer | Float | String | Symbol
5
7
  type reply = scalar | Array[reply] | Hash[scalar, reply]
6
8
  @monitor: untyped
7
9
 
8
10
  @options: untyped
9
11
 
12
+ @inherit_socket: untyped
13
+
14
+ @himport_auto_prepare: untyped
15
+
16
+ @himport_fieldsets: untyped
17
+
10
18
  @subscription_client: untyped
11
19
 
12
20
  @client: untyped
@@ -49,12 +57,22 @@ class Redis
49
57
 
50
58
  def inspect: () -> ::String
51
59
 
52
- def dup: () -> untyped
60
+ def dup: (**untyped option_overrides) -> untyped
53
61
 
54
62
  def connection: () -> { host: untyped, port: untyped, db: untyped, id: untyped, location: ::String }
55
63
 
64
+ def himport_prepare: (untyped fieldset_name, *untyped fields) -> untyped
65
+
66
+ def himport_set: (untyped key, untyped fieldset_name, *untyped values) -> untyped
67
+
68
+ def himport_discard: (untyped fieldset_name) -> untyped
69
+
70
+ def himport_discard_all: () -> untyped
71
+
56
72
  private
57
73
 
74
+ def build_client: () -> untyped
75
+
58
76
  def initialize_client: (untyped options) -> untyped
59
77
 
60
78
  def synchronize: () { (untyped) -> untyped } -> untyped
@@ -63,6 +81,8 @@ class Redis
63
81
 
64
82
  def send_blocking_command: (untyped command, untyped timeout) { (?) -> untyped } -> untyped
65
83
 
84
+ def with_protocol_fallback: () { () -> untyped } -> untyped
85
+
66
86
  def _subscription: (untyped method, untyped timeout, untyped channels, untyped block) -> untyped
67
87
  end
68
88
 
@@ -72,12 +92,14 @@ class Redis
72
92
 
73
93
  ERROR_MAPPING: ::Hash[untyped, untyped]
74
94
 
75
- def self.config: (**untyped kwargs) -> untyped
95
+ def self.config: (?protocol: ::Integer, **untyped kwargs) -> untyped
76
96
 
77
- def self.sentinel: (**untyped kwargs) -> untyped
97
+ def self.sentinel: (?protocol: ::Integer, **untyped kwargs) -> untyped
78
98
 
79
99
  def self.translate_error!: (untyped error, ?mapping: untyped) -> untyped
80
100
 
101
+ def self.resp3_unsupported?: (untyped error) -> (true | untyped)
102
+
81
103
  private
82
104
 
83
105
  def self.translate_error_class: (untyped error_class, ?mapping: untyped) -> untyped
@@ -92,6 +114,8 @@ class Redis
92
114
 
93
115
  def db: () -> untyped
94
116
 
117
+ def protocol: () -> untyped
118
+
95
119
  def host: () -> (untyped | nil)
96
120
 
97
121
  def port: () -> (untyped | nil)
@@ -102,8 +126,6 @@ class Redis
102
126
 
103
127
  def password: () -> untyped
104
128
 
105
- def ensure_connected: (?retryable: bool) { (?) -> untyped } -> untyped
106
-
107
129
  def call_v: (untyped command) { (?) -> untyped } -> untyped
108
130
 
109
131
  def blocking_call_v: (untyped timeout, untyped command) { (?) -> untyped } -> untyped
@@ -118,8 +140,12 @@ end
118
140
 
119
141
  class Redis
120
142
  module Commands
143
+ include Arrays
144
+
121
145
  include Bitmaps
122
146
 
147
+ include Bless
148
+
123
149
  include Cluster
124
150
 
125
151
  include Connection
@@ -134,10 +160,14 @@ class Redis
134
160
 
135
161
  include Lists
136
162
 
163
+ include Json
164
+
137
165
  include Pubsub
138
166
 
139
167
  include Scripting
140
168
 
169
+ include Search
170
+
141
171
  include Server
142
172
 
143
173
  include Sets
@@ -150,8 +180,12 @@ class Redis
150
180
 
151
181
  include Transactions
152
182
 
183
+ include VectorSets
184
+
153
185
  Boolify: untyped
154
186
 
187
+ BoolifyBoolean: untyped
188
+
155
189
  BoolifySet: untyped
156
190
 
157
191
  Hashify: untyped
@@ -160,10 +194,22 @@ class Redis
160
194
 
161
195
  Floatify: untyped
162
196
 
197
+ FloatifyArray: untyped
198
+
163
199
  FloatifyPair: untyped
164
200
 
165
201
  FloatifyPairs: untyped
166
202
 
203
+ HashifyArrayInfo: untyped
204
+
205
+ HashifyVectorEmbeddingRaw: untyped
206
+
207
+ HashifyVectorScores: untyped
208
+
209
+ HashifyVectorScoresWithAttribs: untyped
210
+
211
+ HashifyVectorLinksWithScores: untyped
212
+
167
213
  HashifyInfo: untyped
168
214
 
169
215
  HashifyStreams: untyped
@@ -188,6 +234,14 @@ class Redis
188
234
 
189
235
  HashifyClusterSlaves: untyped
190
236
 
237
+ HashifyClusterSlotStats: untyped
238
+
239
+ HashifyHotkeys: untyped
240
+
241
+ HashifyFunctionList: untyped
242
+
243
+ HashifyFunctionStats: untyped
244
+
191
245
  Noop: untyped
192
246
 
193
247
  def call: (*untyped command) { (?) -> untyped } -> untyped
@@ -200,6 +254,52 @@ class Redis
200
254
  end
201
255
  end
202
256
 
257
+ class Redis
258
+ module Commands
259
+ module Arrays
260
+ def arset: (String key, Integer index, *String values) -> Integer
261
+
262
+ def arget: (String key, Integer index) -> (String | nil)
263
+
264
+ def armset: (String key, *untyped pairs) -> Integer
265
+
266
+ def armget: (String key, *(Integer | Array[Integer]) indices) -> Array[(String | nil)]
267
+
268
+ def argetrange: (String key, Integer start, Integer stop) -> Array[(String | nil)]
269
+
270
+ def arlen: (String key) -> Integer
271
+
272
+ def arcount: (String key) -> Integer
273
+
274
+ def ardel: (String key, *(Integer | Array[Integer]) indices) -> Integer
275
+
276
+ def ardelrange: (String key, *(Integer | Array[Integer]) ranges) -> Integer
277
+
278
+ def arinsert: (String key, *String values) -> Integer
279
+
280
+ def arseek: (String key, Integer index) -> bool
281
+
282
+ def arnext: (String key) -> (Integer | nil)
283
+
284
+ def arlastitems: (String key, Integer count, ?rev: bool) -> Array[String]
285
+
286
+ def arring: (String key, Integer size, *String values) -> Integer
287
+
288
+ def arscan: (String key, Integer start, Integer stop, ?limit: Integer?) -> untyped
289
+
290
+ def argrep: (String key, (Integer | String) start, (Integer | String) stop, ?exact: (String | Array[String])?, ?match: (String | Array[String])?, ?glob: (String | Array[String])?, ?re: (String | Array[String])?, ?logic: Symbol?, ?limit: Integer?, ?with_values: bool?, ?nocase: bool?) -> (Array[Integer] | Array[untyped])
291
+
292
+ def arop: (String key, Integer start, Integer stop, (Symbol | String) operation, ?value: String?) -> (Float | Integer | nil)
293
+
294
+ def arinfo: (String key, ?full: bool) -> Hash[String, (Integer | Float)]
295
+
296
+ private
297
+
298
+ def argrep_bound: (untyped index) -> untyped
299
+ end
300
+ end
301
+ end
302
+
203
303
  class Redis
204
304
  module Commands
205
305
  module Bitmaps
@@ -212,6 +312,24 @@ class Redis
212
312
  def bitop: (String operation, String destkey, *(String | Array[String]) keys) -> Integer
213
313
 
214
314
  def bitpos: (String key, Integer bit, ?Integer start, ?Integer stop, ?scale: (String | Symbol)?) -> Integer
315
+
316
+ def bitrangeintarray: (String key, Integer start, Integer stop, ?scale: (String | Symbol)?, ?limit: Integer?, ?zeros: bool) -> Array[Integer]
317
+ end
318
+ end
319
+ end
320
+
321
+ class Redis
322
+ module Commands
323
+ module Bless
324
+ def bless_get: (String key) -> Array[String]
325
+
326
+ def bless_set: (String key, String flag) -> bool
327
+
328
+ def bless_clear: (String key, String flag) -> bool
329
+
330
+ def bless_scan: ((String | Integer) cursor, String flag, ?count: untyped?) -> untyped
331
+
332
+ def bless_scan_each: (String flag, **Hash[untyped, untyped] options) ?{ (?) -> untyped } -> Enumerator[untyped, untyped]
215
333
  end
216
334
  end
217
335
  end
@@ -245,21 +363,25 @@ end
245
363
  class Redis
246
364
  module Commands
247
365
  module Geo
248
- def geoadd: (String key, *Array[untyped] member) -> Integer
366
+ def geoadd: (String key, *Array[untyped] member, ?nx: bool, ?xx: bool, ?ch: bool) -> Integer
249
367
 
250
368
  def geohash: (String key, (String | Array[String]) member) -> Array[(String | nil)]
251
369
 
252
- def georadius: (*Array[untyped] args, **untyped geoptions) -> Array[String]
370
+ def georadius: (*Array[untyped] args, **untyped geoptions) -> (::Redis::geo_search_reply | Integer)
371
+
372
+ def georadiusbymember: (*Array[untyped] args, **untyped geoptions) -> (::Redis::geo_search_reply | Integer)
253
373
 
254
- def georadiusbymember: (*Array[untyped] args, **untyped geoptions) -> Array[String]
374
+ def geopos: (String key, (String | Array[String]) member) -> Array[::Redis::geo_coordinates?]
255
375
 
256
- def geopos: (String key, (String | Array[String]) member) -> Array[(Array[String] | nil)]
376
+ def geosearch: (String key, ?frommember: String?, ?fromlonlat: untyped?, ?byradius: untyped?, ?bybox: untyped?, ?sort: ("asc" | "desc")?, ?count: Integer?, ?count_any: bool, ?withcoord: bool, ?withdist: bool, ?withhash: bool) -> ::Redis::geo_search_reply
377
+
378
+ def geosearchstore: (String destination, String source, ?frommember: String?, ?fromlonlat: untyped?, ?byradius: untyped?, ?bybox: untyped?, ?sort: ("asc" | "desc")?, ?count: Integer?, ?count_any: bool, ?storedist: bool) -> Integer
257
379
 
258
380
  def geodist: (untyped key, untyped member1, untyped member2, ?::String unit) -> (String | nil)
259
381
 
260
382
  private
261
383
 
262
- def _geoarguments: (*untyped args, ?options: untyped?, ?sort: untyped?, ?count: untyped?) -> untyped
384
+ def _geoarguments: (*untyped args, ?options: untyped?, ?sort: untyped?, ?count: untyped?, ?count_any: bool) -> untyped
263
385
  end
264
386
  end
265
387
  end
@@ -269,7 +391,7 @@ class Redis
269
391
  module Hashes
270
392
  def hlen: (String key) -> Integer
271
393
 
272
- def hset: (String key, *(Array[String] | Hash[String, String]) attrs) -> Integer
394
+ def hset: (String key, *(Array[String] | Hash[String, String]) attrs) -> (0 | untyped)
273
395
 
274
396
  def hsetnx: (String key, String field, String value) -> bool
275
397
 
@@ -287,6 +409,12 @@ class Redis
287
409
 
288
410
  def hdel: (String key, *untyped fields) -> Integer
289
411
 
412
+ def hgetdel: (String key, *Array[String] fields) -> Array[(String | nil)]
413
+
414
+ def hgetex: (String key, *Array[String] fields, ?ex: untyped?, ?px: untyped?, ?exat: untyped?, ?pxat: untyped?, ?persist: bool) -> Array[(String | nil)]
415
+
416
+ def hsetex: (String key, *(Array[String] | Hash[String, String]) attrs, ?fnx: untyped?, ?fxx: untyped?, ?ex: untyped?, ?px: untyped?, ?exat: untyped?, ?pxat: untyped?, ?keepttl: bool) -> Integer
417
+
290
418
  def hexists: (String key, String field) -> bool
291
419
 
292
420
  def hincrby: (String key, String field, Integer increment) -> Integer
@@ -299,9 +427,39 @@ class Redis
299
427
 
300
428
  def hgetall: (String key) -> Hash[String, String]
301
429
 
302
- def hscan: (untyped key, (String | Integer) cursor, **Hash[untyped, untyped] options) -> (String | Array[[String, String]])
430
+ def hscan: (untyped key, (String | Integer) cursor, **Hash[untyped, untyped] options) -> (String | Array[[String, String]] | Array[String])
303
431
 
304
432
  def hscan_each: (untyped key, **Hash[untyped, untyped] options) ?{ (?) -> untyped } -> Enumerator[untyped, untyped]
433
+
434
+ def hexpire: (String key, Integer ttl, *Array[String] fields, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> Array[Integer]
435
+
436
+ def httl: (String key, *Array[String] fields) -> Array[Integer]
437
+
438
+ def hpexpire: (String key, Integer ttl, *Array[String] fields, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> Array[Integer]
439
+
440
+ def hpttl: (String key, *Array[String] fields) -> Array[Integer]
441
+
442
+ def hexpireat: (String key, Integer unix_time_seconds, *Array[String] fields, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> Array[Integer]
443
+
444
+ def hpexpireat: (String key, Integer unix_time_milliseconds, *Array[String] fields, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> Array[Integer]
445
+
446
+ def hexpiretime: (String key, *Array[String] fields) -> Array[Integer]
447
+
448
+ def hpexpiretime: (String key, *Array[String] fields) -> Array[Integer]
449
+
450
+ def hpersist: (String key, *Array[String] fields) -> Array[Integer]
451
+
452
+ def himport_prepare: (String fieldset_name, *(String | Array[String]) fields) -> String
453
+
454
+ def himport_set: (String key, String fieldset_name, *(String | Array[String]) values) -> String
455
+
456
+ def himport_discard: (String fieldset_name) -> Integer
457
+
458
+ def himport_discard_all: () -> Integer
459
+
460
+ private
461
+
462
+ def hash_field_expiration_condition: (untyped nx, untyped xx, untyped gt, untyped lt) -> untyped
305
463
  end
306
464
  end
307
465
  end
@@ -351,7 +509,7 @@ class Redis
351
509
 
352
510
  def del: (*(String | Array[String]) keys) -> (0 | untyped)
353
511
 
354
- def unlink: (*(String | Array[String]) keys) -> Integer
512
+ def unlink: (*(String | Array[String]) keys) -> (0 | untyped)
355
513
 
356
514
  def exists: (*(String | Array[String]) keys) -> Integer
357
515
 
@@ -373,11 +531,15 @@ class Redis
373
531
 
374
532
  def sort: (String key, ?by: untyped?, ?limit: untyped?, ?get: untyped?, ?order: untyped?, ?store: untyped?) -> (Array[String] | Array[Array[String]] | Integer)
375
533
 
534
+ def sort_ro: (String key, ?by: untyped?, ?limit: untyped?, ?get: untyped?, ?order: untyped?) -> (Array[String] | Array[Array[String]])
535
+
376
536
  def type: (String key) -> String
377
537
 
378
538
  private
379
539
 
380
- def _scan: (untyped command, untyped cursor, untyped args, ?match: untyped?, ?count: untyped?, ?type: untyped?) { (?) -> untyped } -> untyped
540
+ def _sort: (untyped command, untyped key, by: untyped, limit: untyped, get: untyped, order: untyped, ?store: untyped?) -> untyped
541
+
542
+ def _scan: (untyped command, untyped cursor, untyped args, ?match: untyped?, ?count: untyped?, ?type: untyped?, ?novalues: bool) { (?) -> untyped } -> untyped
381
543
  end
382
544
  end
383
545
  end
@@ -389,6 +551,10 @@ class Redis
389
551
 
390
552
  def lmove: (String source, String destination, (String | Symbol) where_source, (String | Symbol) where_destination) -> (nil | String)
391
553
 
554
+ def lmovem: (String source, String destination, (String | Symbol) where_source, (String | Symbol) where_destination, ?count: Integer?, ?exactly: Integer?, ?order: (String | Symbol)?) -> (nil | Array[String])
555
+
556
+ def blmovem: (String source, String destination, (String | Symbol) where_source, (String | Symbol) where_destination, ?timeout: ::Integer, ?count: Integer?, ?exactly: Integer?, ?order: (String | Symbol)?) -> (nil | Array[String])
557
+
392
558
  def blmove: (String source, String destination, (String | Symbol) where_source, (String | Symbol) where_destination, ?timeout: ::Integer) -> (nil | String)
393
559
 
394
560
  def lpush: (String key, (String | Array[String]) value) -> Integer
@@ -431,6 +597,8 @@ class Redis
431
597
 
432
598
  def _bpop: (untyped cmd, untyped args) { (?) -> untyped } -> untyped
433
599
 
600
+ def _movem_amount_args: (untyped count, untyped exactly, untyped order) -> untyped
601
+
434
602
  def _normalize_move_wheres: (untyped where_source, untyped where_destination) -> ::Array[untyped]
435
603
  end
436
604
  end
@@ -438,795 +606,2564 @@ end
438
606
 
439
607
  class Redis
440
608
  module Commands
441
- module Pubsub
442
- def publish: (untyped channel, untyped message) -> untyped
443
-
444
- def subscribed?: () -> bool
445
-
446
- def subscribe: (*untyped channels) { (?) -> untyped } -> untyped
447
-
448
- def subscribe_with_timeout: (untyped timeout, *untyped channels) { (?) -> untyped } -> untyped
449
-
450
- def unsubscribe: (*untyped channels) -> untyped
451
-
452
- def psubscribe: (*untyped channels) { (?) -> untyped } -> untyped
453
-
454
- def psubscribe_with_timeout: (untyped timeout, *untyped channels) { (?) -> untyped } -> untyped
455
-
456
- def punsubscribe: (*untyped channels) -> untyped
609
+ module Json
610
+ JSON_SET_FPHA_TYPES: ::Array["BF16" | "FP16" | "FP32" | "FP64"]
457
611
 
458
- def pubsub: (untyped subcommand, *untyped args) -> untyped
612
+ NumincrbyNormalize: untyped
459
613
 
460
- def spublish: (untyped channel, untyped message) -> untyped
614
+ TypeNormalize: untyped
461
615
 
462
- def ssubscribe: (*untyped channels) { (?) -> untyped } -> untyped
616
+ def json_set: (String key, String path, untyped value, ?nx: bool, ?xx: bool, ?raw: bool, ?fpha: (String | Symbol)?) -> (bool | String)
463
617
 
464
- def ssubscribe_with_timeout: (untyped timeout, *untyped channels) { (?) -> untyped } -> untyped
618
+ def json_get: (String key, *Array[String] paths, ?raw: bool) -> untyped
465
619
 
466
- def sunsubscribe: (*untyped channels) -> untyped
467
- end
468
- end
469
- end
620
+ def json_mset: (*Array[untyped] args, ?raw: bool) -> String
470
621
 
471
- class Redis
472
- module Commands
473
- module Scripting
474
- def script: (String subcommand, *Array[String] args) -> untyped
622
+ def json_mget: (*Array[String] keys, String path, ?raw: bool) -> Array[untyped]
475
623
 
476
- def eval: (*untyped args) -> untyped
624
+ def json_del: (String key, ?String path) -> Integer
477
625
 
478
- def evalsha: (*untyped args) -> untyped
626
+ def json_forget: (String key, ?String path) -> Integer
479
627
 
480
- private
628
+ def json_clear: (String key, ?String path) -> Integer
481
629
 
482
- def _eval: (untyped cmd, untyped args) -> untyped
483
- end
484
- end
485
- end
630
+ def json_merge: (String key, String path, untyped value, ?raw: bool) -> String
486
631
 
487
- class Redis
488
- module Commands
489
- module Server
490
- def bgrewriteaof: () -> String
632
+ def json_arrappend: (String key, String path, *Array[untyped] values, ?raw: bool) -> (Array[Integer] | Integer)
491
633
 
492
- def bgsave: () -> String
634
+ def json_arrindex: (String key, String path, untyped value, ?start: Integer?, ?stop: Integer?, ?raw: bool) -> (Array[Integer] | Integer)
493
635
 
494
- def config: (Symbol action, *untyped args) -> (String | Hash[untyped, untyped])
636
+ def json_arrinsert: (String key, String path, Integer index, *Array[untyped] values, ?raw: bool) -> (Array[Integer] | Integer)
495
637
 
496
- def client: ((String | Symbol) subcommand, *untyped args) -> (String | Hash[untyped, untyped])
638
+ def json_arrlen: (String key, ?String path) -> (Array[Integer] | Integer | nil)
497
639
 
498
- def dbsize: () -> Integer
640
+ def json_arrpop: (String key, ?String path, ?Integer index, ?raw: bool) -> untyped
499
641
 
500
- def flushall: (?Hash[untyped, untyped] options) -> String
642
+ def json_arrtrim: (String key, String path, Integer start, Integer stop) -> (Array[Integer] | Integer)
501
643
 
502
- def flushdb: (?Hash[untyped, untyped] options) -> String
644
+ def json_numincrby: (String key, String path, Numeric number) -> (Array[Numeric] | Numeric | nil)
503
645
 
504
- def info: (?(String | Symbol) cmd) -> Hash[String, String]
646
+ def json_type: (String key, ?String path) -> (Array[String] | String | nil)
505
647
 
506
- def lastsave: () -> Integer
648
+ def json_objkeys: (String key, ?String path) -> Array[untyped]
507
649
 
508
- def monitor: () { (untyped) -> untyped } -> untyped
650
+ def json_objlen: (String key, ?String path) -> (Array[Integer] | Integer | nil)
509
651
 
510
- def save: () -> String
652
+ def json_strlen: (String key, ?String path) -> (Array[Integer] | Integer | nil)
511
653
 
512
- def shutdown: () -> untyped
654
+ def json_strappend: (String key, String path, String value, ?raw: bool) -> (Array[Integer] | Integer | nil)
513
655
 
514
- def slaveof: (untyped host, untyped port) -> untyped
656
+ def json_toggle: (String key, String path) -> untyped
515
657
 
516
- def slowlog: (String subcommand, ?Integer length) -> (Array[String] | Integer | String)
658
+ def json_debug_memory: (String key, ?String path) -> (Array[Integer] | Integer)
517
659
 
518
- def sync: () -> untyped
660
+ private
519
661
 
520
- def time: () -> Array[Integer]
662
+ def json_path?: (untyped path) -> bool
663
+ end
664
+ end
665
+ end
521
666
 
522
- def debug: (*untyped args) -> untyped
667
+ class Redis
668
+ module Commands
669
+ module Search
523
670
  end
524
671
  end
525
672
  end
526
673
 
527
674
  class Redis
528
675
  module Commands
529
- module Sets
530
- def scard: (String key) -> Integer
676
+ module Search
677
+ class AggregateRequest
678
+ @query: untyped
531
679
 
532
- def sadd: (String key, *untyped members) -> Integer
680
+ @with_cursor: untyped
533
681
 
534
- def sadd?: (String key, *untyped members) -> bool
682
+ @cursor_count: untyped
535
683
 
536
- def srem: (String key, *untyped members) -> Integer
684
+ @cursor_max_idle: untyped
537
685
 
538
- def srem?: (String key, *untyped members) -> bool
686
+ @dialect: untyped
539
687
 
540
- def spop: (String key, ?Integer count) -> String
688
+ @steps: untyped
541
689
 
542
- def srandmember: (String key, ?Integer count) -> String
690
+ @add_scores: untyped
543
691
 
544
- def smove: (String source, String destination, String member) -> bool
692
+ def initialize: (?::String query, ?with_cursor: bool, ?cursor_count: untyped?, ?cursor_max_idle: untyped?, ?dialect: untyped) -> void
545
693
 
546
- def sismember: (String key, String member) -> bool
694
+ def group_by: (untyped fields, *untyped reducers) -> self
547
695
 
548
- def smismember: (String key, *(String | Array[String]) members) -> Array[bool]
696
+ def sort_by: (*untyped sort_by_fields, ?max: untyped?) -> self
549
697
 
550
- def smembers: (String key) -> Array[String]
698
+ def apply: (untyped expressions) -> self
551
699
 
552
- def sdiff: (*(String | Array[String]) keys) -> Array[String]
700
+ def limit: (untyped offset, untyped num) -> self
553
701
 
554
- def sdiffstore: (String destination, *(String | Array[String]) keys) -> Integer
702
+ def filter: (untyped expression) -> self
555
703
 
556
- def sinter: (*(String | Array[String]) keys) -> Array[String]
704
+ def load: (*untyped fields) -> self
557
705
 
558
- def sinterstore: (String destination, *(String | Array[String]) keys) -> Integer
706
+ def add_scores: (?add_scores: bool) -> self
559
707
 
560
- def sunion: (*(String | Array[String]) keys) -> Array[String]
708
+ def dialect: (untyped dialect_version) -> self
561
709
 
562
- def sunionstore: (String destination, *(String | Array[String]) keys) -> Integer
710
+ def to_redis_args: () -> Array[untyped]
711
+ end
563
712
 
564
- def sscan: (untyped key, (String | Integer) cursor, **Hash[untyped, untyped] options) -> (String | Array[String])
713
+ class Asc
714
+ @name: untyped
565
715
 
566
- def sscan_each: (untyped key, **Hash[untyped, untyped] options) ?{ (?) -> untyped } -> Enumerator[untyped, untyped]
567
- end
568
- end
569
- end
716
+ @order: untyped
570
717
 
571
- class Redis
572
- module Commands
573
- module SortedSets
574
- def zcard: (String key) -> Integer
718
+ attr_reader name: untyped
575
719
 
576
- def zadd: (String key, *([Float, String] | Array[[Float, String]]) args, ?nx: untyped?, ?xx: untyped?, ?lt: untyped?, ?gt: untyped?, ?ch: untyped?, ?incr: untyped?) -> (0 | untyped)
720
+ attr_reader order: untyped
577
721
 
578
- def zincrby: (String key, Float increment, String member) -> Float
722
+ def initialize: (untyped name) -> void
723
+ end
579
724
 
580
- def zrem: (String key, (String | Array[String]) member) -> (0 | untyped)
725
+ class Desc
726
+ @name: untyped
581
727
 
582
- def zpopmax: (untyped key, ?untyped? count) -> Array[Array[(String | Float)]]
728
+ @order: untyped
583
729
 
584
- def zpopmin: (untyped key, ?untyped? count) -> Array[Array[(String | Float)]]
730
+ attr_reader name: untyped
585
731
 
586
- def bzmpop: (untyped timeout, *untyped keys, ?modifier: ::String, ?count: untyped?) -> Array[(String | Array[(String | Float)])]
732
+ attr_reader order: untyped
587
733
 
588
- def zmpop: (*untyped keys, ?modifier: ::String, ?count: untyped?) -> Array[(String | Array[(String | Float)])]
734
+ def initialize: (untyped name) -> void
735
+ end
589
736
 
590
- def bzpopmax: (*untyped args) -> nil
737
+ class Reducers
738
+ @name: untyped
591
739
 
592
- def bzpopmin: (*untyped args) -> nil
740
+ @args: untyped
593
741
 
594
- def zscore: (String key, String member) -> Float?
742
+ @alias_name: untyped
595
743
 
596
- def zmscore: (String key, *(String | Array[String]) members) -> Array[Float]
744
+ def self.count: (?alias_name: untyped?) -> Reducers
597
745
 
598
- def zrandmember: (String key, ?Integer count, ?withscores: bool, ?with_scores: untyped) -> (nil | String | Array[String] | Array[[String, Float]])
746
+ def self.count_distinct: (untyped property, ?alias_name: untyped?) -> Reducers
599
747
 
600
- def zrange: (String key, Integer start, Integer stop, ?byscore: bool, ?by_score: untyped, ?bylex: bool, ?by_lex: untyped, ?rev: bool, ?limit: untyped?, ?withscores: bool, ?with_scores: untyped) -> (Array[String] | Array[[String, Float]])
748
+ def self.count_distinctish: (untyped property, ?alias_name: untyped?) -> Reducers
601
749
 
602
- def zrangestore: (untyped dest_key, untyped src_key, untyped start, untyped stop, ?byscore: bool, ?by_score: untyped, ?bylex: bool, ?by_lex: untyped, ?rev: bool, ?limit: untyped?) -> Integer
750
+ def self.sum: (untyped property, ?alias_name: untyped?) -> Reducers
603
751
 
604
- def zrevrange: (untyped key, untyped start, untyped stop, ?withscores: bool, ?with_scores: untyped) -> untyped
752
+ def self.min: (untyped property, ?alias_name: untyped?) -> Reducers
605
753
 
606
- def zrank: (String key, String member, ?withscore: bool, ?with_score: untyped) -> (Integer | [Integer, Float])
754
+ def self.max: (untyped property, ?alias_name: untyped?) -> Reducers
607
755
 
608
- def zrevrank: (String key, String member, ?withscore: bool, ?with_score: untyped) -> (Integer | [Integer, Float])
756
+ def self.avg: (untyped property, ?alias_name: untyped?) -> Reducers
609
757
 
610
- def zremrangebyrank: (String key, Integer start, Integer stop) -> Integer
758
+ def self.stddev: (untyped property, ?alias_name: untyped?) -> Reducers
611
759
 
612
- def zlexcount: (String key, String min, String max) -> Integer
760
+ def self.quantile: (untyped property, untyped quantile, ?alias_name: untyped?) -> Reducers
613
761
 
614
- def zrangebylex: (String key, String min, String max, ?limit: untyped?) -> (Array[String] | Array[[String, Float]])
762
+ def self.tolist: (untyped property, ?alias_name: untyped?) -> Reducers
615
763
 
616
- def zrevrangebylex: (untyped key, untyped max, untyped min, ?limit: untyped?) -> untyped
764
+ def self.first_value: (untyped property, ?alias_name: untyped?, ?sort_by: untyped?, ?sort_order: untyped?) -> Reducers
617
765
 
618
- def zrangebyscore: (String key, String min, String max, ?withscores: bool, ?with_scores: untyped, ?limit: untyped?) -> (Array[String] | Array[[String, Float]])
766
+ def self.random_sample: (untyped property, untyped sample_size, ?alias_name: untyped?) -> Reducers
619
767
 
620
- def zrevrangebyscore: (untyped key, untyped max, untyped min, ?withscores: bool, ?with_scores: untyped, ?limit: untyped?) -> untyped
768
+ def self.collect: (fields: untyped, ?distinct: bool, ?sort_by: untyped?, ?limit: untyped?, ?alias_name: untyped?) -> Reducers
621
769
 
622
- def zremrangebyscore: (String key, String min, String max) -> Integer
770
+ def self.collect_fields_tokens: (untyped fields) -> (::Array["FIELDS" | "*"] | untyped)
623
771
 
624
- def zcount: (String key, String min, String max) -> Integer
772
+ def self.collect_sortby_tokens: (untyped sort_by) -> (::Array[untyped] | untyped)
625
773
 
626
- def zinter: (*untyped args) -> (Array[String] | Array[[String, Float]])
774
+ attr_reader name: untyped
627
775
 
628
- def zinterstore: (*untyped args) -> Integer
776
+ attr_reader args: untyped
629
777
 
630
- def zunion: (*untyped args) -> (Array[String] | Array[[String, Float]])
778
+ attr_reader alias_name: untyped
631
779
 
632
- def zunionstore: (*untyped args) -> Integer
780
+ def initialize: (untyped name, *untyped args, ?alias_name: untyped?) -> void
633
781
 
634
- def zdiff: (*(String | Array[String]) keys, ?with_scores: bool) -> (Array[String] | Array[[String, Float]])
782
+ def as: (untyped alias_name) -> self
783
+ end
635
784
 
636
- def zdiffstore: (*untyped args) -> Integer
785
+ class Cursor
786
+ @cid: untyped
637
787
 
638
- def zscan: (untyped key, (String | Integer) cursor, **Hash[untyped, untyped] options) -> (String | Array[[String, Float]])
788
+ @count: untyped
639
789
 
640
- def zscan_each: (untyped key, **Hash[untyped, untyped] options) ?{ (?) -> untyped } -> Enumerator[untyped, untyped]
790
+ attr_accessor cid: untyped
641
791
 
642
- private
792
+ attr_accessor count: untyped
643
793
 
644
- def _zsets_operation: (untyped cmd, *untyped keys, ?weights: untyped?, ?aggregate: untyped?, ?with_scores: bool) -> untyped
794
+ def initialize: (untyped cid) -> void
645
795
 
646
- def _zsets_operation_store: (untyped cmd, untyped destination, untyped keys, ?weights: untyped?, ?aggregate: untyped?) -> untyped
796
+ def build_args: () -> Array[String]
797
+ end
647
798
  end
648
799
  end
649
800
  end
650
801
 
651
802
  class Redis
652
803
  module Commands
653
- module Streams
654
- def xinfo: (untyped subcommand, untyped key, ?untyped? group) -> Array[Hash[untyped, untyped]]
655
-
656
- def xadd: (untyped key, untyped entry, ?approximate: untyped?, ?maxlen: untyped?, ?minid: untyped?, ?nomkstream: untyped?, ?id: ::String) -> String
804
+ module Search
805
+ DEFAULT_DIALECT: 2
806
+ end
807
+ end
808
+ end
657
809
 
658
- def xtrim: (untyped key, untyped len_or_id, ?strategy: ::String, ?approximate: bool, ?limit: untyped?) -> Integer
810
+ class Redis
811
+ module Commands
812
+ module Search
813
+ class Field
814
+ @name: untyped
659
815
 
660
- def xdel: (untyped key, *untyped ids) -> Integer
816
+ @type: untyped
661
817
 
662
- def xrange: (untyped key, ?::String start, ?::String range_end, ?count: untyped?) -> Array[Array[(String | Hash[untyped, untyped])]]
818
+ @query: untyped
663
819
 
664
- def xrevrange: (untyped key, ?::String range_end, ?::String start, ?count: untyped?) -> Array[Array[(String | Hash[untyped, untyped])]]
820
+ @options: untyped
665
821
 
666
- def xlen: (untyped key) -> Integer
822
+ @alias_name: untyped
667
823
 
668
- def xread: (untyped keys, untyped ids, ?count: untyped?, ?block: untyped?) -> Hash[String, Hash[String, Hash[untyped, untyped]]]
824
+ attr_reader name: untyped
669
825
 
670
- def xgroup: (untyped subcommand, untyped key, untyped group, ?untyped? id_or_consumer, ?mkstream: bool) -> Integer
826
+ attr_reader type: untyped
671
827
 
672
- def xreadgroup: (untyped group, untyped consumer, untyped keys, untyped ids, ?count: untyped?, ?block: untyped?, ?noack: untyped?) -> Hash[String, Hash[String, Hash[untyped, untyped]]]
828
+ attr_reader options: untyped
673
829
 
674
- def xack: (untyped key, untyped group, *untyped ids) -> Integer
830
+ attr_reader alias_name: untyped
675
831
 
676
- def xclaim: (untyped key, untyped group, untyped consumer, untyped min_idle_time, *untyped ids, **untyped opts) -> Array[String]
832
+ attr_accessor query: untyped
677
833
 
678
- def xautoclaim: (untyped key, untyped group, untyped consumer, untyped min_idle_time, untyped start, ?count: untyped?, ?justid: bool) -> Array[String]
834
+ def initialize: ((String | Symbol) name, Symbol type, ?(Query | nil) query, **untyped options) -> void
679
835
 
680
- def xpending: (untyped key, untyped group, *untyped args, ?idle: untyped?) -> Array[Hash[untyped, untyped]]
836
+ def to_args: () -> Array[untyped]
837
+ end
681
838
 
682
- private
839
+ class TagField < Field
840
+ def initialize: ((String | Symbol) name, ?(Query | nil) query, **untyped options) -> void
683
841
 
684
- def _xread: (untyped args, untyped keys, untyped ids, untyped blocking_timeout_msec) -> untyped
685
- end
686
- end
687
- end
842
+ def eq: (String value) -> Query
843
+ end
688
844
 
689
- class Redis
690
- module Commands
691
- module Strings
692
- def decr: (String key) -> Integer
845
+ class TextField < Field
846
+ def initialize: ((String | Symbol) name, ?(Query | nil) query, **untyped options) -> void
693
847
 
694
- def decrby: (String key, Integer decrement) -> Integer
848
+ def to_args: () -> Array[untyped]
695
849
 
696
- def incr: (String key) -> Integer
850
+ def match: (String pattern, ?raw: bool) -> Query
851
+ end
697
852
 
698
- def incrby: (String key, Integer increment) -> Integer
853
+ class NumericField < Field
854
+ def initialize: ((String | Symbol) name, ?(Query | nil) query, **untyped options) -> void
699
855
 
700
- def incrbyfloat: (String key, Float increment) -> Float
856
+ def gt: (Numeric value) -> Query
701
857
 
702
- def set: (String key, String value, ?ex: untyped?, ?px: untyped?, ?exat: untyped?, ?pxat: untyped?, ?nx: untyped?, ?xx: untyped?, ?keepttl: untyped?, ?get: untyped?) -> (String | bool)
858
+ def lt: (Numeric value) -> Query
703
859
 
704
- def setex: (String key, Integer ttl, String value) -> String
860
+ def between: (Numeric min, Numeric max) -> Query
861
+ end
705
862
 
706
- def psetex: (String key, Integer ttl, String value) -> String
863
+ class GeoField < Field
864
+ def initialize: ((String | Symbol) name, ?(Query | nil) query, **untyped options) -> void
865
+ end
707
866
 
708
- def setnx: (String key, String value) -> bool
867
+ class GeoShapeField < Field
868
+ @coord_system: untyped
709
869
 
710
- def mset: (*Array[String] args) -> String
870
+ FLAT: "FLAT"
711
871
 
712
- def mapped_mset: (Hash[untyped, untyped] hash) -> String
872
+ SPHERICAL: "SPHERICAL"
713
873
 
714
- def msetnx: (*Array[String] args) -> bool
874
+ def initialize: ((String | Symbol) name, ?(String | nil) coord_system, **untyped options) -> void
715
875
 
716
- def mapped_msetnx: (Hash[untyped, untyped] hash) -> bool
876
+ def to_args: () -> Array[untyped]
877
+ end
717
878
 
718
- def get: (String key) -> String?
879
+ class VectorField < Field
880
+ @algorithm: untyped
719
881
 
720
- def mget: (*Array[String] keys) { (?) -> untyped } -> Array[String]
882
+ @attributes: untyped
721
883
 
722
- def mapped_mget: (*Array[String] keys) -> Hash[untyped, untyped]
884
+ attr_reader algorithm: untyped
723
885
 
724
- def setrange: (String key, Integer offset, String value) -> Integer
886
+ attr_reader attributes: untyped
725
887
 
726
- def getrange: (String key, Integer start, Integer stop) -> String
888
+ def initialize: ((String | Symbol) name, (String | Symbol) algorithm, ?::Hash[untyped, untyped] attributes, **untyped options) -> void
727
889
 
728
- def append: (String key, String value) -> Integer
890
+ def add_attribute: ((String | Symbol) key, untyped value) -> untyped
729
891
 
730
- def getset: (String key, String value) -> String?
892
+ def to_args: () -> Array[untyped]
731
893
 
732
- def getdel: (String key) -> String?
894
+ def args: () -> Array[untyped]
733
895
 
734
- def getex: (String key, ?ex: untyped?, ?px: untyped?, ?exat: untyped?, ?pxat: untyped?, ?persist: bool) -> String?
896
+ private
735
897
 
736
- def strlen: (String key) -> Integer
898
+ def field_args: () -> untyped
899
+ end
737
900
  end
738
901
  end
739
902
  end
740
903
 
741
904
  class Redis
742
905
  module Commands
743
- module Transactions
744
- def multi: () { (untyped) -> untyped } -> untyped
906
+ module Search
907
+ class HybridSearchQuery
908
+ @query_string: untyped
745
909
 
746
- def watch: (*(String | Array[String]) keys) ?{ (untyped) -> untyped } -> String
910
+ @scorer: untyped
747
911
 
748
- def unwatch: () -> String
912
+ @yield_score_as: untyped
749
913
 
750
- def exec: () -> untyped
914
+ attr_reader query_string: untyped
751
915
 
752
- def discard: () -> String
916
+ def initialize: (untyped query_string, ?scorer: untyped?, ?yield_score_as: untyped?) -> void
917
+
918
+ def scorer: (untyped scorer) -> self
919
+
920
+ def yield_score_as: (untyped alias_name) -> self
921
+
922
+ def args: () -> Array[untyped]
923
+ end
924
+
925
+ class HybridVsimQuery
926
+ @vector_field: untyped
927
+
928
+ @vector_data: untyped
929
+
930
+ @vsim_method_params: untyped
931
+
932
+ @filter: untyped
933
+
934
+ @yield_score_as: untyped
935
+
936
+ attr_reader vector_field: untyped
937
+
938
+ attr_reader vector_data: untyped
939
+
940
+ def initialize: (vector_field_name: untyped, vector_data: untyped, ?vsim_search_method: untyped?, ?vsim_search_method_params: untyped?, ?filter: untyped?, ?yield_score_as: untyped?) -> void
941
+
942
+ def vsim_method_params: (untyped method, **untyped kwargs) -> self
943
+
944
+ def filter: (untyped flt) -> self
945
+
946
+ def yield_score_as: (untyped alias_name) -> self
947
+
948
+ def args: () -> Array[untyped]
949
+ end
950
+
951
+ class HybridQuery
952
+ @search_query: untyped
953
+
954
+ @vector_similarity_query: untyped
955
+
956
+ def initialize: (untyped search_query, untyped vector_similarity_query) -> void
957
+
958
+ def args: () -> Array[untyped]
959
+ end
960
+
961
+ module CombinationMethods
962
+ RRF: "RRF"
963
+
964
+ LINEAR: "LINEAR"
965
+ end
966
+
967
+ module VectorSearchMethods
968
+ KNN: "KNN"
969
+
970
+ RANGE: "RANGE"
971
+ end
972
+
973
+ class CombineResultsMethod
974
+ @method: untyped
975
+
976
+ @kwargs: untyped
977
+
978
+ def initialize: (untyped method, **untyped kwargs) -> void
979
+
980
+ def args: () -> Array[String]
981
+
982
+ def self.rrf: (?window: untyped?, ?constant: untyped?) -> CombineResultsMethod
983
+
984
+ def self.linear: (?alpha: untyped?, ?beta: untyped?) -> CombineResultsMethod
985
+ end
986
+
987
+ class HybridFilter
988
+ @args: untyped
989
+
990
+ attr_reader args: untyped
991
+
992
+ def initialize: (untyped conditions) -> void
993
+ end
994
+
995
+ class HybridPostProcessingConfig
996
+ @load_statements: untyped
997
+
998
+ @apply_statements: untyped
999
+
1000
+ @groupby_statements: untyped
1001
+
1002
+ @sortby_fields: untyped
1003
+
1004
+ @filter: untyped
1005
+
1006
+ @limit: untyped
1007
+
1008
+ def initialize: () -> void
1009
+
1010
+ def load: (*untyped fields) -> self
1011
+
1012
+ def group_by: (untyped fields, *untyped reducers) -> self
1013
+
1014
+ def apply: (**untyped kwexpr) -> self
1015
+
1016
+ def sort_by: (*untyped sortby_fields) -> self
1017
+
1018
+ def filter: (untyped flt) -> self
1019
+
1020
+ def limit: (untyped offset, untyped num) -> self
1021
+
1022
+ def build_args: () -> Array[untyped]
1023
+ end
1024
+
1025
+ class HybridCursorQuery
1026
+ @count: untyped
1027
+
1028
+ @max_idle: untyped
1029
+
1030
+ def initialize: (?count: ::Integer, ?max_idle: ::Integer) -> void
1031
+
1032
+ def build_args: () -> Array[String]
1033
+ end
1034
+
1035
+ class SortbyField
1036
+ @args: untyped
1037
+
1038
+ attr_reader args: untyped
1039
+
1040
+ def initialize: (untyped field, ?asc: bool) -> void
1041
+ end
753
1042
  end
754
1043
  end
755
1044
  end
756
1045
 
757
1046
  class Redis
758
- class Distributed
759
- @tag: untyped
1047
+ module Commands
1048
+ module Search
1049
+ class Index
1050
+ @redis: untyped
760
1051
 
761
- @ring: untyped
1052
+ @name: untyped
762
1053
 
763
- @node_configs: untyped
1054
+ @prefix: untyped
764
1055
 
765
- @default_options: untyped
1056
+ @schema: untyped
766
1057
 
767
- @subscribed_node: untyped
1058
+ @storage_type: untyped
768
1059
 
769
- @watch_key: untyped
1060
+ @stopwords: untyped
770
1061
 
771
- class CannotDistribute < RuntimeError
772
- @command: untyped
1062
+ attr_reader name: untyped
773
1063
 
774
- def initialize: (untyped command) -> void
1064
+ attr_reader prefix: untyped
775
1065
 
776
- def message: () -> ::String
1066
+ def initialize: (untyped redis, untyped name, untyped schema, untyped storage_type, ?prefix: untyped?, ?stopwords: untyped?) -> void
1067
+
1068
+ def self.create: (untyped redis, untyped name, untyped schema, untyped storage_type, ?prefix: untyped?, ?stopwords: untyped?, ?skip_initial_scan: bool, **untyped options) -> Index
1069
+
1070
+ def self.key_prefix: (untyped prefix, untyped definition) -> (untyped | ::String | nil)
1071
+
1072
+ def self.resolve_storage_type: (untyped storage_type, untyped definition) -> untyped
1073
+
1074
+ def add: (untyped doc_id, **untyped fields) -> (Integer | String)
1075
+
1076
+ def search: (?untyped? query, ?query_params: untyped?, ?params: untyped?, ?dialect: untyped?, ?nocontent: untyped?, ?verbatim: untyped?, ?no_stopwords: untyped?, ?with_scores: untyped?, ?with_payloads: untyped?, ?slop: untyped?, ?in_order: untyped?, ?language: untyped?, ?return_fields: untyped?, ?summarize: untyped?, ?highlight: untyped?, ?sort_by: untyped?, ?asc: untyped?, ?scorer: untyped?, ?explain_score: untyped?) ?{ (?) -> untyped } -> SearchResult
1077
+
1078
+ def info: () -> Hash[untyped, untyped]
1079
+
1080
+ def drop: (?delete_documents: bool) -> String
1081
+
1082
+ def aggregate: (untyped query, *untyped args) -> AggregateResult
1083
+
1084
+ def hybrid_search: (query: untyped, ?combine_method: untyped?, ?post_processing: untyped?, ?params_substitution: untyped?, ?timeout: untyped?, ?cursor: untyped?) -> Search::HybridResult
1085
+
1086
+ def explain: (untyped query) -> String
1087
+
1088
+ def alter: (untyped field_or_args) -> String
1089
+
1090
+ def spellcheck: (untyped query, ?distance: untyped?, ?include: untyped?, ?exclude: untyped?) -> Hash[String, Array[Hash[untyped, untyped]]]
1091
+
1092
+ def synupdate: (untyped group_id, *untyped terms, ?skip_initial_scan: bool) -> String
1093
+
1094
+ def syndump: () -> Hash[String, Array[String]]
1095
+
1096
+ def tagvals: (untyped field_name) -> Array[String]
1097
+
1098
+ def profile: (*untyped args) -> Array[untyped]
1099
+
1100
+ private
1101
+
1102
+ def json?: () -> bool
1103
+ end
777
1104
  end
1105
+ end
1106
+ end
778
1107
 
779
- attr_reader ring: untyped
1108
+ class Redis
1109
+ module Commands
1110
+ module Search
1111
+ module IndexType
1112
+ HASH: "HASH"
780
1113
 
781
- def initialize: (untyped node_configs, ?::Hash[untyped, untyped] options) -> void
1114
+ JSON: "JSON"
1115
+ end
782
1116
 
783
- def node_for: (untyped key) -> untyped
1117
+ class IndexDefinition
1118
+ @args: untyped
784
1119
 
785
- def nodes: () -> untyped
1120
+ @index_type: untyped
786
1121
 
787
- def add_node: (untyped options) -> untyped
1122
+ @prefixes: untyped
788
1123
 
789
- def select: (untyped db) -> untyped
1124
+ attr_reader args: untyped
790
1125
 
791
- def ping: () -> untyped
1126
+ attr_reader prefixes: untyped
792
1127
 
793
- def echo: (untyped value) -> untyped
1128
+ attr_reader index_type: untyped
794
1129
 
795
- def quit: () -> untyped
1130
+ def initialize: (?prefix: (Array[String] | String | nil), ?filter: (String | nil)?, ?language_field: (String | nil)?, ?language: (String | nil)?, ?score_field: (String | nil)?, ?score: ::Float, ?payload_field: (String | nil)?, ?index_type: (String | nil)?) -> void
796
1131
 
797
- def close: () -> nil
1132
+ private
798
1133
 
799
- def bgsave: () -> untyped
1134
+ def append_index_type: (untyped index_type) -> (untyped | untyped | untyped | nil)
800
1135
 
801
- def dbsize: () -> untyped
1136
+ def append_prefix: (untyped prefix) -> (untyped | nil)
802
1137
 
803
- def flushall: () -> untyped
1138
+ def append_filter: (untyped filter) -> (untyped | nil)
804
1139
 
805
- def flushdb: () -> untyped
1140
+ def append_language: (untyped language_field, untyped language) -> untyped
806
1141
 
807
- def info: (?untyped? cmd) -> untyped
1142
+ def append_score: (untyped score_field, untyped score) -> untyped
808
1143
 
809
- def lastsave: () -> untyped
1144
+ def append_payload: (untyped payload_field) -> (untyped | nil)
1145
+ end
1146
+ end
1147
+ end
1148
+ end
810
1149
 
811
- def monitor: () -> untyped
1150
+ class Redis
1151
+ module Commands
1152
+ module Search
1153
+ def ft_create: (untyped index_name, untyped schema, ?untyped? storage_type, ?prefix: untyped?, ?stopwords: untyped?, ?max_text_fields: bool, ?skip_initial_scan: bool, ?definition: untyped?, ?temporary: untyped?, ?no_term_offsets: bool, ?no_highlight: bool, ?no_field_flags: bool, ?no_term_frequencies: bool, **untyped _options) -> String
812
1154
 
813
- def save: () -> untyped
1155
+ def create_index: (untyped name, untyped schema, ?storage_type: ::String, ?prefix: untyped?, ?stopwords: untyped?, ?max_text_fields: bool, ?skip_initial_scan: bool, ?definition: untyped?, **untyped options) -> Search::Index
814
1156
 
815
- def time: () -> untyped
1157
+ def ft_search: (untyped index_name, untyped query, **untyped options) -> Search::SearchResult
816
1158
 
817
- def persist: (untyped key) -> untyped
1159
+ def ft_info: (untyped index_name) -> Hash[untyped, untyped]
818
1160
 
819
- def expire: (untyped key, untyped seconds, **untyped kwargs) -> untyped
1161
+ def ft_dropindex: (untyped index_name, ?delete_documents: bool) -> String
820
1162
 
821
- def expireat: (untyped key, untyped unix_time, **untyped kwargs) -> untyped
1163
+ def ft_aggregate: (untyped index_name, untyped query, *untyped args) -> Search::AggregateResult
822
1164
 
823
- def expiretime: (untyped key) -> untyped
1165
+ def ft_explain: (untyped index_name, untyped query) -> String
824
1166
 
825
- def ttl: (untyped key) -> untyped
1167
+ def ft_alter: (untyped index_name, untyped field_or_args) -> String
826
1168
 
827
- def pexpire: (untyped key, untyped milliseconds, **untyped kwarg) -> untyped
1169
+ def ft_cursor_read: (untyped index_name, untyped cursor_id) -> Search::AggregateResult
828
1170
 
829
- def pexpireat: (untyped key, untyped ms_unix_time, **untyped kwarg) -> untyped
1171
+ def ft_cursor_del: (untyped index_name, untyped cursor_id) -> String
830
1172
 
831
- def pexpiretime: (untyped key) -> untyped
1173
+ def ft_profile: (untyped index_name, *untyped args) -> Array[untyped]
832
1174
 
833
- def pttl: (untyped key) -> untyped
1175
+ def ft_hybrid_search: (untyped index_name, query: untyped, ?combine_method: untyped?, ?post_processing: untyped?, ?params_substitution: untyped?, ?timeout: untyped?, ?cursor: untyped?, **untyped _options) -> Search::HybridResult
834
1176
 
835
- def dump: (untyped key) -> String?
1177
+ def ft_sugadd: (untyped key, untyped string, untyped score, ?::Hash[untyped, untyped] options) -> Integer
836
1178
 
837
- def restore: (untyped key, untyped ttl, untyped serialized_value, **untyped options) -> untyped
1179
+ def ft_sugget: (untyped key, untyped prefix, ?::Hash[untyped, untyped] options) -> Array[String]
838
1180
 
839
- def migrate: (untyped _key, untyped _options) -> untyped
1181
+ def ft_suglen: (untyped key) -> Integer
840
1182
 
841
- def del: (*untyped args) -> untyped
1183
+ def ft_sugdel: (untyped key, untyped string) -> Integer
842
1184
 
843
- def unlink: (*untyped args) -> untyped
1185
+ def ft_spellcheck: (untyped index_name, untyped query, ?distance: untyped?, ?include: untyped?, ?exclude: untyped?) -> Hash[String, Array[Hash[untyped, untyped]]]
844
1186
 
845
- def exists: (*untyped args) -> untyped
1187
+ def ft_synupdate: (untyped index_name, untyped group_id, *untyped terms, ?skip_initial_scan: bool) -> String
846
1188
 
847
- def exists?: (*untyped args) -> (true | false)
1189
+ def ft_syndump: (untyped index_name) -> Hash[String, Array[String]]
848
1190
 
849
- def keys: (?::String glob) -> untyped
1191
+ def ft_tagvals: (untyped index_name, untyped field_name) -> Array[String]
850
1192
 
851
- def move: (untyped key, untyped db) -> untyped
1193
+ def ft_aliasadd: (untyped alias_name, untyped index_name) -> String
852
1194
 
853
- def copy: (untyped source, untyped destination, **untyped options) -> untyped
1195
+ def ft_aliasupdate: (untyped alias_name, untyped index_name) -> String
854
1196
 
855
- def randomkey: () -> String?
1197
+ def ft_aliasdel: (untyped alias_name) -> String
856
1198
 
857
- def rename: (untyped old_name, untyped new_name) -> untyped
1199
+ def ft_aliaslist: (untyped index_name) -> Array[String]
858
1200
 
859
- def renamenx: (untyped old_name, untyped new_name) -> untyped
1201
+ def ft_dictadd: (untyped dict_name, *untyped terms) -> Integer
860
1202
 
861
- def sort: (untyped key, **untyped options) -> untyped
1203
+ def ft_dictdel: (untyped dict_name, *untyped terms) -> Integer
862
1204
 
863
- def type: (untyped key) -> untyped
1205
+ def ft_dictdump: (untyped dict_name) -> Array[String]
864
1206
 
865
- def decr: (untyped key) -> untyped
1207
+ def ft_config_set: (untyped option, untyped value) -> String
866
1208
 
867
- def decrby: (untyped key, untyped decrement) -> untyped
1209
+ def ft_config_get: (untyped option) -> Hash[untyped, untyped]
1210
+ end
1211
+ end
1212
+ end
868
1213
 
869
- def incr: (untyped key) -> untyped
1214
+ class Redis
1215
+ module Commands
1216
+ module Search
1217
+ class Query
1218
+ @base: untyped
870
1219
 
871
- def incrby: (untyped key, untyped increment) -> untyped
1220
+ @predicate_collection: untyped
872
1221
 
873
- def incrbyfloat: (untyped key, untyped increment) -> untyped
1222
+ @filters: untyped
874
1223
 
875
- def set: (untyped key, untyped value, **untyped options) -> untyped
1224
+ @options: untyped
876
1225
 
877
- def setex: (untyped key, untyped ttl, untyped value) -> untyped
1226
+ @return_fields: untyped
878
1227
 
879
- def psetex: (untyped key, untyped ttl, untyped value) -> untyped
1228
+ @return_fields_decode: untyped
880
1229
 
881
- def setnx: (untyped key, untyped value) -> untyped
1230
+ @summarize_options: untyped
882
1231
 
883
- def mset: (*untyped) -> untyped
1232
+ @highlight_options: untyped
884
1233
 
885
- def mapped_mset: (untyped _hash) -> untyped
1234
+ @language: untyped
886
1235
 
887
- def msetnx: (*untyped) -> untyped
1236
+ @verbatim: untyped
888
1237
 
889
- def mapped_msetnx: (untyped _hash) -> untyped
1238
+ @no_stopwords: untyped
890
1239
 
891
- def get: (untyped key) -> String?
1240
+ @with_payloads: untyped
892
1241
 
893
- def getdel: (untyped key) -> String?
1242
+ @slop: untyped
894
1243
 
895
- def getex: (untyped key, **untyped options) -> String?
1244
+ @in_order: untyped
896
1245
 
897
- def mget: (*untyped keys) -> untyped
1246
+ @no_content: untyped
898
1247
 
899
- def mapped_mget: (*untyped keys) -> untyped
1248
+ @limit_ids: untyped
900
1249
 
901
- def setrange: (untyped key, untyped offset, untyped value) -> untyped
1250
+ @geo_filters: untyped
902
1251
 
903
- def getrange: (untyped key, untyped start, untyped stop) -> String
1252
+ @expander: untyped
904
1253
 
905
- def setbit: (untyped key, untyped offset, untyped value) -> untyped
1254
+ @timeout: untyped
906
1255
 
907
- def getbit: (untyped key, untyped offset) -> untyped
1256
+ @limit_fields: untyped
1257
+
1258
+ attr_reader options: untyped
1259
+
1260
+ attr_reader return_fields_decode: untyped
1261
+
1262
+ attr_reader filters: untyped
1263
+
1264
+ attr_reader geo_filters: untyped
1265
+
1266
+ attr_accessor return_fields: untyped
1267
+
1268
+ attr_accessor highlight_options: untyped
1269
+
1270
+ attr_accessor summarize_options: untyped
1271
+
1272
+ def initialize: (?untyped? base) -> void
1273
+
1274
+ def self.build: () { (?) -> untyped } -> Query
1275
+
1276
+ def filter: (untyped field, untyped min, ?untyped? max) -> self
1277
+
1278
+ def geo_filter: (untyped field, untyped lon, untyped lat, untyped radius, ?::String unit) -> self
1279
+
1280
+ def limit_ids: (*untyped ids) -> self
1281
+
1282
+ def paging: (untyped offset, untyped limit) -> self
1283
+
1284
+ def sort_by: (untyped field, ?untyped? order, ?asc: bool) -> self
1285
+
1286
+ def return: (*untyped fields) -> self
1287
+
1288
+ def return_field: (untyped field, ?as_field: untyped?, ?decode_field: bool) -> self
1289
+
1290
+ def language: (untyped lang) -> self
1291
+
1292
+ def verbatim: () -> self
1293
+
1294
+ def expander: (untyped expander_name) -> self
1295
+
1296
+ def no_stopwords: () -> self
1297
+
1298
+ def with_scores: () -> self
1299
+
1300
+ def scorer: (untyped scorer_name) -> self
1301
+
1302
+ def with_payloads: () -> self
1303
+
1304
+ def slop: (untyped value) -> self
1305
+
1306
+ def in_order: () -> self
1307
+
1308
+ def timeout: (untyped milliseconds) -> self
1309
+
1310
+ def no_content: () -> self
1311
+
1312
+ def limit_fields: (*untyped fields) -> self
1313
+
1314
+ def highlight: (?fields: untyped?, ?tags: ::Array[untyped]) -> self
1315
+
1316
+ def summarize: (?fields: untyped?, ?separator: ::String, ?len: ::Integer, ?frags: ::Integer) -> self
1317
+
1318
+ def dialect: (untyped dialect_version) -> self
1319
+
1320
+ def explain_score: () -> self
1321
+
1322
+ def limit_ids_value: () -> untyped
1323
+
1324
+ def language_value: () -> untyped
1325
+
1326
+ def verbatim_value: () -> untyped
1327
+
1328
+ def no_stopwords_value: () -> untyped
1329
+
1330
+ def no_content_value: () -> untyped
1331
+
1332
+ def with_payloads_value: () -> untyped
1333
+
1334
+ def slop_value: () -> untyped
1335
+
1336
+ def in_order_value: () -> untyped
1337
+
1338
+ def timeout_value: () -> untyped
1339
+
1340
+ def limit_fields_value: () -> untyped
1341
+
1342
+ def expander_value: () -> untyped
1343
+
1344
+ def or_: () { (?) -> untyped } -> self
1345
+
1346
+ def and_: () { (?) -> untyped } -> self
1347
+
1348
+ def add_predicate: (untyped predicate) -> self
1349
+
1350
+ def new_collection: (untyped type) ?{ () -> untyped } -> self
1351
+
1352
+ def tag: (untyped field) -> TagField
1353
+
1354
+ def text: (untyped field) -> TextField
1355
+
1356
+ def numeric: (untyped field) -> NumericField
1357
+
1358
+ def to_redis_args: () -> Array[untyped]
1359
+
1360
+ def evaluate: () ?{ (?) -> untyped } -> untyped
1361
+
1362
+ private
1363
+
1364
+ def query_string: () -> untyped
1365
+
1366
+ def append_boolean_options: (untyped args) -> untyped
1367
+
1368
+ def append_scorer: (untyped args) -> (untyped | nil)
1369
+
1370
+ def append_with_scores: (untyped args) -> untyped
1371
+
1372
+ def append_limit_fields: (untyped args) -> (untyped | nil)
1373
+
1374
+ def append_limit_ids: (untyped args) -> (untyped | nil)
1375
+
1376
+ def append_filters: (untyped args) -> untyped
1377
+
1378
+ def coerce_filter_bound: (untyped value) -> untyped
1379
+
1380
+ def append_geo_filters: (untyped args) -> untyped
1381
+
1382
+ def append_return_fields: (untyped args) -> (untyped | nil)
1383
+
1384
+ def append_summarize_options: (untyped args) -> (untyped | nil)
1385
+
1386
+ def append_highlight_options: (untyped args) -> (untyped | nil)
1387
+
1388
+ def append_slop: (untyped args) -> (untyped | nil)
1389
+
1390
+ def append_timeout: (untyped args) -> (untyped | nil)
1391
+
1392
+ def append_language: (untyped args) -> (untyped | nil)
1393
+
1394
+ def append_expander: (untyped args) -> (untyped | nil)
1395
+
1396
+ def append_in_order: (untyped args) -> (untyped | nil)
1397
+
1398
+ def append_sort_by: (untyped args) -> (untyped | nil)
1399
+
1400
+ def append_limit: (untyped args) -> (untyped | nil)
1401
+
1402
+ def append_dialect: (untyped args) -> (untyped | nil)
1403
+ end
1404
+
1405
+ class Predicate
1406
+ @field: untyped
1407
+
1408
+ attr_reader field: untyped
1409
+
1410
+ TEXT_SPECIAL_CHARACTERS: ::Array["," | "." | "<" | ">" | "{" | "}" | "[" | "]" | "\"" | "'" | ":" | ";" | "!" | "@" | "#" | "$" | "%" | "^" | "&" | "*" | "(" | ")" | "-" | "+" | "=" | "~" | "|" | "/" | "\\"]
1411
+
1412
+ TAG_SPECIAL_CHARACTERS: untyped
1413
+
1414
+ TEXT_ESCAPE_PATTERN: untyped
1415
+
1416
+ TAG_ESCAPE_PATTERN: untyped
1417
+
1418
+ def initialize: (untyped field) -> void
1419
+
1420
+ def to_s: () -> String
1421
+
1422
+ private
1423
+
1424
+ def escape_text: (untyped value) -> untyped
1425
+
1426
+ def escape_tag: (untyped value) -> untyped
1427
+ end
1428
+
1429
+ class TagEqualityPredicate < Predicate
1430
+ @value: untyped
1431
+
1432
+ def initialize: (untyped field, untyped value) -> void
1433
+
1434
+ def to_s: () -> ::String
1435
+ end
1436
+
1437
+ class TextMatchPredicate < Predicate
1438
+ @pattern: untyped
1439
+
1440
+ @raw: untyped
1441
+
1442
+ def initialize: (untyped field, untyped pattern, ?raw: bool) -> void
1443
+
1444
+ def to_s: () -> ::String
1445
+ end
1446
+
1447
+ class RangePredicate < Predicate
1448
+ @min: untyped
1449
+
1450
+ @max: untyped
1451
+
1452
+ def initialize: (untyped field, untyped min, untyped max) -> void
1453
+
1454
+ def to_s: () -> ::String
1455
+ end
1456
+
1457
+ class PredicateCollection
1458
+ @type: untyped
1459
+
1460
+ @predicates: untyped
1461
+
1462
+ attr_reader type: untyped
1463
+
1464
+ attr_reader predicates: untyped
1465
+
1466
+ def initialize: (untyped type) -> void
1467
+
1468
+ def add: (untyped predicate) -> Array[untyped]
1469
+
1470
+ def to_s: () -> ::String
1471
+ end
1472
+ end
1473
+ end
1474
+ end
1475
+
1476
+ class Redis
1477
+ module Commands
1478
+ module Search
1479
+ class Document
1480
+ @id: untyped
1481
+
1482
+ @attributes: untyped
1483
+
1484
+ @score: untyped
1485
+
1486
+ @payload: untyped
1487
+
1488
+ attr_reader id: untyped
1489
+
1490
+ attr_reader score: untyped
1491
+
1492
+ attr_reader payload: untyped
1493
+
1494
+ attr_reader attributes: untyped
1495
+
1496
+ def initialize: (untyped id, ?attributes: ::Hash[untyped, untyped], ?score: untyped?, ?payload: untyped?) -> void
1497
+
1498
+ def []: (untyped key) -> untyped
1499
+
1500
+ def key?: (untyped key) -> bool
1501
+
1502
+ def to_h: () -> Hash[String, untyped]
1503
+
1504
+ def ==: (untyped other) -> bool
1505
+
1506
+ alias eql? ==
1507
+
1508
+ def hash: () -> Integer
1509
+ end
1510
+
1511
+ class SearchResult
1512
+ @total: untyped
1513
+
1514
+ @documents: untyped
1515
+
1516
+ @warnings: untyped
1517
+
1518
+ include Enumerable[untyped]
1519
+
1520
+ attr_reader total: untyped
1521
+
1522
+ attr_reader documents: untyped
1523
+
1524
+ attr_reader warnings: untyped
1525
+
1526
+ def initialize: (untyped total, untyped documents, ?warnings: untyped) -> void
1527
+
1528
+ def each: () { (?) -> untyped } -> (Enumerator[untyped, untyped] | Array[Document])
1529
+
1530
+ def []: (untyped index) -> (Document | nil)
1531
+
1532
+ def size: () -> Integer
1533
+
1534
+ alias length size
1535
+
1536
+ def empty?: () -> bool
1537
+ end
1538
+
1539
+ class AggregateResult
1540
+ @rows: untyped
1541
+
1542
+ @cursor: untyped
1543
+
1544
+ include Enumerable[untyped]
1545
+
1546
+ attr_reader rows: untyped
1547
+
1548
+ attr_reader cursor: untyped
1549
+
1550
+ def initialize: (untyped rows, ?cursor: untyped?) -> void
1551
+
1552
+ def each: () { (?) -> untyped } -> (Enumerator[untyped, untyped] | Array[Hash[untyped, untyped]])
1553
+
1554
+ def []: (untyped index) -> (Hash[untyped, untyped] | nil)
1555
+
1556
+ def size: () -> Integer
1557
+
1558
+ alias length size
1559
+
1560
+ def empty?: () -> bool
1561
+ end
1562
+
1563
+ class HybridResult
1564
+ @rows: untyped
1565
+
1566
+ @total: untyped
1567
+
1568
+ @warnings: untyped
1569
+
1570
+ @execution_time: untyped
1571
+
1572
+ @search_cursor: untyped
1573
+
1574
+ @vsim_cursor: untyped
1575
+
1576
+ include Enumerable[untyped]
1577
+
1578
+ attr_reader rows: untyped
1579
+
1580
+ attr_reader total: untyped
1581
+
1582
+ attr_reader warnings: untyped
1583
+
1584
+ attr_reader execution_time: untyped
1585
+
1586
+ attr_reader search_cursor: untyped
1587
+
1588
+ attr_reader vsim_cursor: untyped
1589
+
1590
+ def initialize: (?rows: untyped, ?total: untyped?, ?warnings: untyped, ?execution_time: untyped?, ?search_cursor: untyped?, ?vsim_cursor: untyped?) -> void
1591
+
1592
+ def each: () { (?) -> untyped } -> (Enumerator[untyped, untyped] | Array[Hash[untyped, untyped]])
1593
+
1594
+ def []: (untyped index) -> (Hash[untyped, untyped] | nil)
1595
+
1596
+ def size: () -> Integer
1597
+
1598
+ alias length size
1599
+
1600
+ def empty?: () -> bool
1601
+
1602
+ def cursor?: () -> bool
1603
+ end
1604
+
1605
+ module ResultParser
1606
+ def self?.search: (untyped reply, ?with_scores: bool, ?with_payloads: bool, ?no_content: bool, ?decode_fields: ::Hash[untyped, untyped]) -> (SearchResult | nil)
1607
+
1608
+ def self?.search_resp2: (untyped reply, untyped with_scores, untyped with_payloads, untyped no_content, untyped decode_fields) -> SearchResult
1609
+
1610
+ def self?.search_resp3: (untyped reply, untyped decode_fields) -> SearchResult
1611
+
1612
+ def self?.aggregate: (untyped reply) -> (AggregateResult | nil)
1613
+
1614
+ def self?.normalize_aggregate_row: (untyped row) -> Hash[untyped, untyped]
1615
+
1616
+ def self?.hybrid: (untyped reply) -> (HybridResult | nil)
1617
+
1618
+ def self?.hashify_info: (untyped reply) -> (Hash[untyped, untyped] | nil)
1619
+
1620
+ def self?.config_get: (untyped reply) -> (Hash[untyped, untyped] | nil)
1621
+
1622
+ def self?.syndump: (untyped reply) -> untyped
1623
+
1624
+ def self?.spellcheck: (untyped reply) -> untyped
1625
+
1626
+ def self?.normalize_score: (untyped score) -> Hash[String, untyped]
1627
+
1628
+ def self?.hashify_fields: (untyped fields, untyped decode_fields) -> (::Hash[untyped, untyped] | untyped)
1629
+
1630
+ def self?.decode_value: (untyped value) -> untyped
1631
+ end
1632
+ end
1633
+ end
1634
+ end
1635
+
1636
+ class Redis
1637
+ module Commands
1638
+ module Search
1639
+ class Schema
1640
+ @fields: untyped
1641
+
1642
+ include Enumerable[untyped]
1643
+
1644
+ attr_reader fields: untyped
1645
+
1646
+ def initialize: (?Array[Field] fields) -> void
1647
+
1648
+ def field: ((String | Symbol) name) -> (Field | nil)
1649
+
1650
+ def each: () { (?) -> untyped } -> (Enumerator[untyped, untyped] | Array[Field])
1651
+
1652
+ def to_args: () -> Array[untyped]
1653
+
1654
+ def self.build: () { (?) -> untyped } -> Schema
1655
+ end
1656
+
1657
+ class SchemaDefinition
1658
+ @fields: untyped
1659
+
1660
+ attr_reader fields: untyped
1661
+
1662
+ def initialize: () -> void
1663
+
1664
+ def text_field: ((String | Symbol) name, **untyped options) -> Array[Field]
1665
+
1666
+ def numeric_field: ((String | Symbol) name, **untyped options) -> Array[Field]
1667
+
1668
+ def tag_field: ((String | Symbol) name, **untyped options) -> Array[Field]
1669
+
1670
+ def geo_field: ((String | Symbol) name, **untyped options) -> Array[Field]
1671
+
1672
+ def geoshape_field: ((String | Symbol) name, ?(String | nil) coord_system, **untyped options) -> Array[Field]
1673
+
1674
+ def vector_field: ((String | Symbol) name, (String | Symbol) algorithm, **Hash[untyped, untyped] attributes) ?{ (?) -> untyped } -> Array[Field]
1675
+ end
1676
+
1677
+ class VectorFieldDefinition
1678
+ @field: untyped
1679
+
1680
+ def initialize: (untyped field) -> void
1681
+
1682
+ def type: (untyped value) -> untyped
1683
+
1684
+ def dim: (untyped value) -> untyped
1685
+
1686
+ def distance_metric: (untyped value) -> untyped
1687
+ end
1688
+ end
1689
+ end
1690
+ end
1691
+
1692
+ class Redis
1693
+ module Commands
1694
+ module Pubsub
1695
+ def publish: (untyped channel, untyped message) -> untyped
1696
+
1697
+ def subscribed?: () -> bool
1698
+
1699
+ def subscribe: (*untyped channels) { (?) -> untyped } -> untyped
1700
+
1701
+ def subscribe_with_timeout: (untyped timeout, *untyped channels) { (?) -> untyped } -> untyped
1702
+
1703
+ def unsubscribe: (*untyped channels) -> untyped
1704
+
1705
+ def psubscribe: (*untyped channels) { (?) -> untyped } -> untyped
1706
+
1707
+ def psubscribe_with_timeout: (untyped timeout, *untyped channels) { (?) -> untyped } -> untyped
1708
+
1709
+ def punsubscribe: (*untyped channels) -> untyped
1710
+
1711
+ def pubsub: (untyped subcommand, *untyped args) -> untyped
1712
+
1713
+ def spublish: (untyped channel, untyped message) -> untyped
1714
+
1715
+ def ssubscribe: (*untyped channels) { (?) -> untyped } -> untyped
1716
+
1717
+ def ssubscribe_with_timeout: (untyped timeout, *untyped channels) { (?) -> untyped } -> untyped
1718
+
1719
+ def sunsubscribe: (*untyped channels) -> untyped
1720
+ end
1721
+ end
1722
+ end
1723
+
1724
+ class Redis
1725
+ module Commands
1726
+ module Scripting
1727
+ def script: (String subcommand, *Array[String] args) -> untyped
1728
+
1729
+ def eval: (*untyped args) -> untyped
1730
+
1731
+ def evalsha: (*untyped args) -> untyped
1732
+
1733
+ def function: ((String | Symbol) subcommand, *Array[String] args, **Hash[untyped, untyped] options) -> (String | Array[Hash[untyped, untyped]] | Hash[untyped, untyped])
1734
+
1735
+ def fcall: (*untyped args) -> untyped
1736
+
1737
+ def fcall_ro: (*untyped args) -> untyped
1738
+
1739
+ private
1740
+
1741
+ def _eval: (untyped cmd, untyped args) -> untyped
1742
+ end
1743
+ end
1744
+ end
1745
+
1746
+ class Redis
1747
+ module Commands
1748
+ module Server
1749
+ def bgrewriteaof: () -> String
1750
+
1751
+ def bgsave: () -> String
1752
+
1753
+ def config: (Symbol action, *untyped args) -> (String | Hash[untyped, untyped])
1754
+
1755
+ def client: ((String | Symbol) subcommand, *untyped args) -> (String | Hash[untyped, untyped])
1756
+
1757
+ def dbsize: () -> Integer
1758
+
1759
+ def flushall: (?Hash[untyped, untyped] options) -> String
1760
+
1761
+ def flushdb: (?Hash[untyped, untyped] options) -> String
1762
+
1763
+ def info: (*Array[(String | Symbol)] sections) -> Hash[String, String]
1764
+
1765
+ def lastsave: () -> Integer
1766
+
1767
+ def monitor: () { (untyped) -> untyped } -> untyped
1768
+
1769
+ def save: () -> String
1770
+
1771
+ def waitaof: (Integer numlocal, Integer numreplicas, Integer timeout) -> untyped
1772
+
1773
+ def hotkeys_start: (metrics: (Symbol | String | Array[(Symbol | String)]), ?count: (Integer | nil)?, ?duration: (Integer | nil)?, ?sample: (Integer | nil)?, ?slots: (Array[Integer] | nil)?) -> String
1774
+
1775
+ def hotkeys_get: () -> nil
1776
+
1777
+ def hotkeys_stop: () -> nil
1778
+
1779
+ def hotkeys_reset: () -> String
1780
+
1781
+ def shutdown: (?save: (bool | nil)?, ?now: bool, ?force: bool, ?abort: bool) -> String
1782
+
1783
+ def slaveof: (untyped host, untyped port) -> untyped
1784
+
1785
+ def slowlog: (String subcommand, ?Integer length) -> (Array[String] | Integer | String)
1786
+
1787
+ def sync: () -> untyped
1788
+
1789
+ def time: () -> Array[Integer]
1790
+
1791
+ def debug: (*untyped args) -> untyped
1792
+ end
1793
+ end
1794
+ end
1795
+
1796
+ class Redis
1797
+ module Commands
1798
+ module Sets
1799
+ def scard: (String key) -> Integer
1800
+
1801
+ def sadd: (String key, *untyped members) -> Integer
1802
+
1803
+ def sadd?: (String key, *untyped members) -> bool
1804
+
1805
+ def srem: (String key, *untyped members) -> Integer
1806
+
1807
+ def srem?: (String key, *untyped members) -> bool
1808
+
1809
+ def spop: (String key, ?Integer count) -> String
1810
+
1811
+ def srandmember: (String key, ?Integer count) -> String
1812
+
1813
+ def smove: (String source, String destination, String member) -> bool
1814
+
1815
+ def sismember: (String key, String member) -> bool
1816
+
1817
+ def smismember: (String key, *(String | Array[String]) members) -> Array[bool]
1818
+
1819
+ def smembers: (String key) -> Array[String]
1820
+
1821
+ def sdiff: (*(String | Array[String]) keys) -> Array[String]
1822
+
1823
+ def sdiffstore: (String destination, *(String | Array[String]) keys) -> Integer
1824
+
1825
+ def sdiffcard: (*(String | Array[String]) keys, ?limit: Integer?) -> Integer
1826
+
1827
+ def sinter: (*(String | Array[String]) keys) -> Array[String]
1828
+
1829
+ def sintercard: (*(String | Array[String]) keys, ?limit: Integer?) -> Integer
1830
+
1831
+ def sinterstore: (String destination, *(String | Array[String]) keys) -> Integer
1832
+
1833
+ def sunion: (*(String | Array[String]) keys) -> Array[String]
1834
+
1835
+ def sunionstore: (String destination, *(String | Array[String]) keys) -> Integer
1836
+
1837
+ def sunioncard: (*(String | Array[String]) keys, ?approx: bool, ?limit: Integer?) -> Integer
1838
+
1839
+ def sscan: (untyped key, (String | Integer) cursor, **Hash[untyped, untyped] options) -> (String | Array[String])
1840
+
1841
+ def sscan_each: (untyped key, **Hash[untyped, untyped] options) ?{ (?) -> untyped } -> Enumerator[untyped, untyped]
1842
+
1843
+ def sexpire: (String key, Integer ttl, *Array[String] members, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> Array[Integer]
1844
+
1845
+ def spexpire: (String key, Integer ttl, *Array[String] members, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> Array[Integer]
1846
+
1847
+ def sexpireat: (String key, Integer unix_time_seconds, *Array[String] members, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> Array[Integer]
1848
+
1849
+ def spexpireat: (String key, Integer unix_time_milliseconds, *Array[String] members, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> Array[Integer]
1850
+
1851
+ def sttl: (String key, *Array[String] members) -> Array[Integer]
1852
+
1853
+ def spttl: (String key, *Array[String] members) -> Array[Integer]
1854
+
1855
+ def sexpiretime: (String key, *Array[String] members) -> Array[Integer]
1856
+
1857
+ def spexpiretime: (String key, *Array[String] members) -> Array[Integer]
1858
+
1859
+ def spersist: (String key, *Array[String] members) -> Array[Integer]
1860
+
1861
+ def saddex: (String key, *Array[String] members, ?mnx: untyped?, ?mxx: untyped?, ?ex: untyped?, ?px: untyped?, ?exat: untyped?, ?pxat: untyped?, ?keepttl: bool) -> Integer
1862
+ end
1863
+ end
1864
+ end
1865
+
1866
+ class Redis
1867
+ module Commands
1868
+ module SortedSets
1869
+ def zcard: (String key) -> Integer
1870
+
1871
+ def zadd: (String key, *([Float, String] | Array[[Float, String]]) args, ?nx: untyped?, ?xx: untyped?, ?lt: untyped?, ?gt: untyped?, ?ch: untyped?, ?incr: untyped?) -> (0 | untyped)
1872
+
1873
+ def zincrby: (String key, Float increment, String member) -> Float
1874
+
1875
+ def zrem: (String key, (String | Array[String]) member) -> (0 | untyped)
1876
+
1877
+ def zpopmax: (untyped key, ?untyped? count) -> Array[Array[(String | Float)]]
1878
+
1879
+ def zpopmin: (untyped key, ?untyped? count) -> Array[Array[(String | Float)]]
1880
+
1881
+ def bzmpop: (untyped timeout, *untyped keys, ?modifier: ::String, ?count: untyped?) -> Array[(String | Array[(String | Float)])]
1882
+
1883
+ def zmpop: (*untyped keys, ?modifier: ::String, ?count: untyped?) -> Array[(String | Array[(String | Float)])]
1884
+
1885
+ def zmove: (String source, String destination, ?modifier: String?, ?byscore: Array[(String | Numeric)]?, ?count: Integer?) -> untyped
1886
+
1887
+ def bzmove: (String source, String destination, ?timeout: ::Integer, ?modifier: ::String, ?count: Integer?) -> untyped
1888
+
1889
+ def zmovemember: (String source, String destination, (String | Array[String]) members, ?nx: bool?, ?xx: bool?) -> untyped
1890
+
1891
+ def bzpopmax: (*untyped args) -> nil
1892
+
1893
+ def bzpopmin: (*untyped args) -> nil
1894
+
1895
+ def zscore: (String key, String member) -> Float?
1896
+
1897
+ def zmscore: (String key, *(String | Array[String]) members) -> Array[Float]
1898
+
1899
+ def zrandmember: (String key, ?Integer count, ?withscores: bool, ?with_scores: untyped) -> (nil | String | Array[String] | Array[[String, Float]])
1900
+
1901
+ def zrange: (String key, Integer start, Integer stop, ?byscore: bool, ?by_score: untyped, ?bylex: bool, ?by_lex: untyped, ?rev: bool, ?limit: untyped?, ?withscores: bool, ?with_scores: untyped) -> (Array[String] | Array[[String, Float]])
1902
+
1903
+ def zrangestore: (untyped dest_key, untyped src_key, untyped start, untyped stop, ?byscore: bool, ?by_score: untyped, ?bylex: bool, ?by_lex: untyped, ?rev: bool, ?limit: untyped?) -> Integer
1904
+
1905
+ def zrevrange: (untyped key, untyped start, untyped stop, ?withscores: bool, ?with_scores: untyped) -> untyped
1906
+
1907
+ def zrank: (String key, String member, ?withscore: bool, ?with_score: untyped) -> (Integer | [Integer, Float] | nil)
1908
+
1909
+ def zrevrank: (String key, String member, ?withscore: bool, ?with_score: untyped) -> (Integer | [Integer, Float] | nil)
1910
+
1911
+ def zremrangebyrank: (String key, Integer start, Integer stop) -> Integer
1912
+
1913
+ def zlexcount: (String key, String min, String max) -> Integer
1914
+
1915
+ def zrangebylex: (String key, String min, String max, ?limit: untyped?) -> (Array[String] | Array[[String, Float]])
1916
+
1917
+ def zrevrangebylex: (untyped key, untyped max, untyped min, ?limit: untyped?) -> untyped
1918
+
1919
+ def zrangebyscore: (String key, String min, String max, ?withscores: bool, ?with_scores: untyped, ?limit: untyped?) -> (Array[String] | Array[[String, Float]])
1920
+
1921
+ def zrevrangebyscore: (untyped key, untyped max, untyped min, ?withscores: bool, ?with_scores: untyped, ?limit: untyped?) -> untyped
1922
+
1923
+ def zremrangebyscore: (String key, String min, String max) -> Integer
1924
+
1925
+ def zcount: (String key, String min, String max) -> Integer
1926
+
1927
+ def zinter: (*untyped args) -> (Array[String] | Array[[String, Float]])
1928
+
1929
+ def zintercard: (*(String | Array[String]) keys, ?limit: Integer?) -> Integer
1930
+
1931
+ def zinterstore: (*untyped args) -> Integer
1932
+
1933
+ def zunion: (*untyped args) -> (Array[String] | Array[[String, Float]])
1934
+
1935
+ def zunionstore: (*untyped args) -> Integer
1936
+
1937
+ def zdiff: (*(String | Array[String]) keys, ?with_scores: bool) -> (Array[String] | Array[[String, Float]])
1938
+
1939
+ def zdiffstore: (*untyped args) -> Integer
1940
+
1941
+ def zscan: (untyped key, (String | Integer) cursor, **Hash[untyped, untyped] options) -> (String | Array[[String, Float]])
1942
+
1943
+ def zscan_each: (untyped key, **Hash[untyped, untyped] options) ?{ (?) -> untyped } -> Enumerator[untyped, untyped]
1944
+
1945
+ private
1946
+
1947
+ def _zsets_operation: (untyped cmd, *untyped keys, ?weights: untyped?, ?aggregate: untyped?, ?with_scores: bool) -> untyped
1948
+
1949
+ def _zsets_operation_store: (untyped cmd, untyped destination, untyped keys, ?weights: untyped?, ?aggregate: untyped?) -> untyped
1950
+ end
1951
+ end
1952
+ end
1953
+
1954
+ class Redis
1955
+ module Commands
1956
+ module Streams
1957
+ def xinfo: (untyped subcommand, untyped key, ?untyped? group) -> Array[Hash[untyped, untyped]]
1958
+
1959
+ def xadd: (untyped key, untyped entry, ?approximate: untyped?, ?maxlen: untyped?, ?minid: untyped?, ?limit: untyped?, ?nomkstream: untyped?, ?id: ::String, ?policy: untyped?, ?idmp: untyped?, ?idmpauto: untyped?) -> String
1960
+
1961
+ def xtrim: (untyped key, untyped len_or_id, ?strategy: ::String, ?approximate: bool, ?limit: untyped?, ?policy: untyped?) -> Integer
1962
+
1963
+ def xdel: (untyped key, *untyped ids) -> Integer
1964
+
1965
+ def xdelex: (untyped key, *untyped ids, ?keepref: untyped?, ?delref: untyped?, ?acked: untyped?) -> Array[Integer]
1966
+
1967
+ def xrange: (untyped key, ?::String start, ?::String range_end, ?count: untyped?) -> Array[Array[(String | Hash[untyped, untyped])]]
1968
+
1969
+ def xrevrange: (untyped key, ?::String range_end, ?::String start, ?count: untyped?) -> Array[Array[(String | Hash[untyped, untyped])]]
1970
+
1971
+ def xlen: (untyped key) -> Integer
1972
+
1973
+ def xread: (untyped keys, untyped ids, ?count: untyped?, ?max_count: untyped?, ?max_size: untyped?, ?block: untyped?) -> Hash[String, Hash[String, Hash[untyped, untyped]]]
1974
+
1975
+ def xgroup: (untyped subcommand, untyped key, untyped group, ?untyped? id_or_consumer, ?mkstream: bool, ?entriesread: untyped?) -> Integer
1976
+
1977
+ def xsetid: (untyped key, untyped id, ?entriesadded: untyped?, ?maxdeletedid: untyped?) -> String
1978
+
1979
+ def xcfgset: (untyped key, ?duration: untyped?, ?maxsize: untyped?) -> String
1980
+
1981
+ def xreadgroup: (untyped group, untyped consumer, untyped keys, untyped ids, ?count: untyped?, ?max_count: untyped?, ?max_size: untyped?, ?block: untyped?, ?claim: untyped?, ?noack: untyped?) -> untyped
1982
+
1983
+ def xack: (untyped key, untyped group, *untyped ids) -> Integer
1984
+
1985
+ def xackdel: (untyped key, untyped group, *untyped ids, ?keepref: untyped?, ?delref: untyped?, ?acked: untyped?) -> Array[Integer]
1986
+
1987
+ def xnack: (untyped key, untyped group, untyped mode, *untyped ids, ?retrycount: untyped?, ?force: untyped?) -> Integer
1988
+
1989
+ def xclaim: (untyped key, untyped group, untyped consumer, untyped min_idle_time, *untyped ids, **untyped opts) -> Array[String]
1990
+
1991
+ def xautoclaim: (untyped key, untyped group, untyped consumer, untyped min_idle_time, untyped start, ?count: untyped?, ?justid: bool) -> Hash[untyped, untyped]
1992
+
1993
+ def xpending: (untyped key, untyped group, *untyped args, ?idle: untyped?) -> Array[Hash[untyped, untyped]]
1994
+
1995
+ private
1996
+
1997
+ def xstream_ref_policy_token: (untyped policy) -> untyped
1998
+
1999
+ def _xread: (untyped args, untyped keys, untyped ids, untyped blocking_timeout_msec) -> untyped
2000
+ end
2001
+ end
2002
+ end
2003
+
2004
+ class Redis
2005
+ module Commands
2006
+ module Strings
2007
+ def decr: (String key) -> Integer
2008
+
2009
+ def decrby: (String key, Integer decrement) -> Integer
2010
+
2011
+ def incr: (String key) -> Integer
2012
+
2013
+ def incrby: (String key, Integer increment) -> Integer
2014
+
2015
+ def incrbyfloat: (String key, Float increment) -> Float
2016
+
2017
+ def increx: (String key, ?by: (Integer | Float)?, ?lbound: (Integer | Float)?, ?ubound: (Integer | Float)?, ?saturate: bool?, ?ex: Integer?, ?px: Integer?, ?exat: Integer?, ?pxat: Integer?, ?persist: bool?, ?enx: bool?) -> untyped
2018
+
2019
+ def set: (String key, String value, ?ex: untyped?, ?px: untyped?, ?exat: untyped?, ?pxat: untyped?, ?nx: untyped?, ?xx: untyped?, ?ifeq: untyped?, ?ifne: untyped?, ?ifdeq: untyped?, ?ifdne: untyped?, ?keepttl: untyped?, ?get: untyped?) -> (String | bool)
2020
+
2021
+ def delex: (String key, ?ifeq: untyped?, ?ifne: untyped?, ?ifdeq: untyped?, ?ifdne: untyped?) -> Integer
2022
+
2023
+ def setex: (String key, Integer ttl, String value) -> String
2024
+
2025
+ def psetex: (String key, Integer ttl, String value) -> String
2026
+
2027
+ def setnx: (String key, String value) -> bool
2028
+
2029
+ def mset: (*Array[String] args) -> String
2030
+
2031
+ def mapped_mset: (Hash[untyped, untyped] hash) -> String
2032
+
2033
+ def msetnx: (*Array[String] args) -> bool
2034
+
2035
+ def mapped_msetnx: (Hash[untyped, untyped] hash) -> bool
2036
+
2037
+ def get: (String key) -> String?
2038
+
2039
+ def mget: (*Array[String] keys) { (?) -> untyped } -> Array[String]
2040
+
2041
+ def mapped_mget: (*Array[String] keys) -> Hash[untyped, untyped]
2042
+
2043
+ def setrange: (String key, Integer offset, String value) -> Integer
2044
+
2045
+ def getrange: (String key, Integer start, Integer stop) -> String
2046
+
2047
+ def append: (String key, String value) -> Integer
2048
+
2049
+ def getset: (String key, String value) -> String?
2050
+
2051
+ def getdel: (String key) -> String?
2052
+
2053
+ def getex: (String key, ?ex: untyped?, ?px: untyped?, ?exat: untyped?, ?pxat: untyped?, ?persist: bool) -> String?
2054
+
2055
+ def digest: (String key) -> (String | nil)
2056
+
2057
+ def strlen: (String key) -> Integer
2058
+
2059
+ def lcs: (String key1, String key2, ?len: bool, ?idx: bool, ?minmatchlen: untyped?, ?withmatchlen: bool) -> (String | Integer | Hash[untyped, untyped])
2060
+
2061
+ private
2062
+
2063
+ def increx_bound: (untyped name, untyped value, untyped float_mode) -> untyped
2064
+ end
2065
+ end
2066
+ end
2067
+
2068
+ class Redis
2069
+ module Commands
2070
+ module Transactions
2071
+ def multi: () { (untyped) -> untyped } -> untyped
2072
+
2073
+ def watch: (*(String | Array[String]) keys) ?{ (untyped) -> untyped } -> String
2074
+
2075
+ def unwatch: () -> String
2076
+
2077
+ def exec: () -> untyped
2078
+
2079
+ def discard: () -> String
2080
+ end
2081
+ end
2082
+ end
2083
+
2084
+ class Redis
2085
+ module Commands
2086
+ module VectorSets
2087
+ def vadd: (String key, (Array[Numeric] | String) vector, String element, ?reduce: untyped?, ?cas: untyped?, ?quantization: untyped?, ?ef: untyped?, ?attributes: untyped?, ?m: untyped?) -> bool
2088
+
2089
+ def vcard: (String key) -> Integer
2090
+
2091
+ def vdim: (String key) -> Integer
2092
+
2093
+ def vemb: (String key, String element, ?raw: bool?) -> (Array[Float] | Hash[untyped, untyped] | nil)
2094
+
2095
+ def vlinks: (String key, String element, ?withscores: bool, ?with_scores: bool) -> (Array[Array[String]] | Array[Hash[untyped, untyped]] | nil)
2096
+
2097
+ def vsim: (String key, ?vector: untyped?, ?element: untyped?, ?withscores: bool, ?with_scores: untyped, ?withattribs: bool, ?with_attribs: untyped, ?raw: bool, ?count: untyped?, ?epsilon: untyped?, ?ef: untyped?, ?filter: untyped?, ?filter_ef: untyped?, ?truth: untyped?, ?nothread: untyped?) -> (Array[String] | Hash[untyped, untyped])
2098
+
2099
+ def vrem: (String key, String element) -> bool
2100
+
2101
+ def vismember: (String key, String element) -> bool
2102
+
2103
+ def vrandmember: (String key, ?Integer count) -> (String | Array[String] | nil)
2104
+
2105
+ def vrange: (String key, String start, String stop, ?Integer count) -> Array[String]
2106
+
2107
+ def vinfo: (String key) -> (Hash[untyped, untyped] | nil)
2108
+
2109
+ def vsetattr: (String key, String element, (Hash[untyped, untyped] | String | nil) attributes) -> bool
2110
+
2111
+ def vgetattr: (String key, String element, ?raw: bool) -> untyped
2112
+ end
2113
+ end
2114
+ end
2115
+
2116
+ class Redis
2117
+ class Distributed
2118
+ @tag: untyped
2119
+
2120
+ @ring: untyped
2121
+
2122
+ @node_configs: untyped
2123
+
2124
+ @default_options: untyped
2125
+
2126
+ @himport_fieldsets: untyped
2127
+
2128
+ @subscribed_node: untyped
2129
+
2130
+ @watch_key: untyped
2131
+
2132
+ @released_watch_key: untyped
2133
+
2134
+ class CannotDistribute < RuntimeError
2135
+ @command: untyped
2136
+
2137
+ def initialize: (untyped command) -> void
2138
+
2139
+ def message: () -> ::String
2140
+ end
2141
+
2142
+ attr_reader ring: untyped
2143
+
2144
+ def initialize: (untyped node_configs, ?::Hash[untyped, untyped] options) -> void
2145
+
2146
+ def node_for: (untyped key) -> untyped
2147
+
2148
+ def nodes: () -> untyped
2149
+
2150
+ def add_node: (untyped options) -> untyped
2151
+
2152
+ def select: (untyped db) -> untyped
2153
+
2154
+ def ping: () -> untyped
2155
+
2156
+ def echo: (untyped value) -> untyped
2157
+
2158
+ def quit: () -> untyped
2159
+
2160
+ def close: () -> nil
2161
+
2162
+ def bgsave: () -> untyped
2163
+
2164
+ def dbsize: () -> untyped
2165
+
2166
+ def flushall: () -> untyped
2167
+
2168
+ def flushdb: () -> untyped
2169
+
2170
+ def info: (*untyped sections) -> untyped
2171
+
2172
+ def lastsave: () -> untyped
2173
+
2174
+ def monitor: () -> untyped
2175
+
2176
+ HOTKEYS_NOT_SUPPORTED: "HOTKEYS commands are not supported on Redis::Distributed: the tracking session is state of a single server. Call them on one node, e.g. distributed.nodes.first.hotkeys_start(...)."
2177
+
2178
+ def hotkeys_start: (**untyped) -> untyped
2179
+
2180
+ def hotkeys_get: () -> untyped
2181
+
2182
+ def hotkeys_stop: () -> untyped
2183
+
2184
+ def hotkeys_reset: () -> untyped
2185
+
2186
+ def save: () -> untyped
2187
+
2188
+ def waitaof: (untyped numlocal, untyped numreplicas, untyped timeout) -> untyped
2189
+
2190
+ def time: () -> untyped
2191
+
2192
+ def persist: (untyped key) -> untyped
2193
+
2194
+ def expire: (untyped key, untyped seconds, **untyped kwargs) -> untyped
2195
+
2196
+ def expireat: (untyped key, untyped unix_time, **untyped kwargs) -> untyped
2197
+
2198
+ def expiretime: (untyped key) -> untyped
2199
+
2200
+ def ttl: (untyped key) -> untyped
2201
+
2202
+ def pexpire: (untyped key, untyped milliseconds, **untyped kwarg) -> untyped
2203
+
2204
+ def pexpireat: (untyped key, untyped ms_unix_time, **untyped kwarg) -> untyped
2205
+
2206
+ def pexpiretime: (untyped key) -> untyped
2207
+
2208
+ def pttl: (untyped key) -> untyped
2209
+
2210
+ def dump: (untyped key) -> String?
2211
+
2212
+ def restore: (untyped key, untyped ttl, untyped serialized_value, **untyped options) -> untyped
2213
+
2214
+ def migrate: (untyped _key, untyped _options) -> untyped
2215
+
2216
+ def del: (*untyped args) -> untyped
2217
+
2218
+ def unlink: (*untyped args) -> untyped
2219
+
2220
+ def exists: (*untyped args) -> untyped
2221
+
2222
+ def exists?: (*untyped args) -> (true | false)
2223
+
2224
+ def keys: (?::String glob) -> untyped
2225
+
2226
+ def move: (untyped key, untyped db) -> untyped
2227
+
2228
+ def copy: (untyped source, untyped destination, **untyped options) -> untyped
2229
+
2230
+ def randomkey: () -> String?
2231
+
2232
+ def rename: (untyped old_name, untyped new_name) -> untyped
2233
+
2234
+ def renamenx: (untyped old_name, untyped new_name) -> untyped
2235
+
2236
+ def sort: (untyped key, **untyped options) -> untyped
2237
+
2238
+ def sort_ro: (untyped key, **untyped options) -> untyped
2239
+
2240
+ def type: (untyped key) -> untyped
2241
+
2242
+ def decr: (untyped key) -> untyped
2243
+
2244
+ def decrby: (untyped key, untyped decrement) -> untyped
2245
+
2246
+ def incr: (untyped key) -> untyped
2247
+
2248
+ def incrby: (untyped key, untyped increment) -> untyped
2249
+
2250
+ def incrbyfloat: (untyped key, untyped increment) -> untyped
2251
+
2252
+ def increx: (untyped key, **untyped options) -> untyped
2253
+
2254
+ def set: (untyped key, untyped value, **untyped options) -> untyped
2255
+
2256
+ def setex: (untyped key, untyped ttl, untyped value) -> untyped
2257
+
2258
+ def psetex: (untyped key, untyped ttl, untyped value) -> untyped
2259
+
2260
+ def setnx: (untyped key, untyped value) -> untyped
2261
+
2262
+ def mset: (*untyped) -> untyped
2263
+
2264
+ def mapped_mset: (untyped _hash) -> untyped
2265
+
2266
+ def msetnx: (*untyped) -> untyped
2267
+
2268
+ def mapped_msetnx: (untyped _hash) -> untyped
2269
+
2270
+ def get: (untyped key) -> String?
2271
+
2272
+ def getdel: (untyped key) -> String?
2273
+
2274
+ def getex: (untyped key, **untyped options) -> String?
2275
+
2276
+ def delex: (untyped key, **untyped options) -> untyped
2277
+
2278
+ def digest: (untyped key) -> untyped
2279
+
2280
+ def json_set: (untyped key, untyped path, untyped value, **untyped options) -> untyped
2281
+
2282
+ def json_get: (untyped key, *untyped paths, **untyped options) -> untyped
2283
+
2284
+ def json_mset: (*untyped) -> untyped
2285
+
2286
+ def json_mget: (*untyped keys, untyped path, **untyped options) -> untyped
2287
+
2288
+ def json_del: (untyped key, ?untyped? path) -> untyped
2289
+
2290
+ def json_forget: (untyped key, ?untyped? path) -> untyped
2291
+
2292
+ def json_clear: (untyped key, ?untyped? path) -> untyped
2293
+
2294
+ def json_merge: (untyped key, untyped path, untyped value, **untyped options) -> untyped
2295
+
2296
+ def json_arrappend: (untyped key, untyped path, *untyped values, **untyped options) -> untyped
2297
+
2298
+ def json_arrindex: (untyped key, untyped path, untyped value, **untyped options) -> untyped
2299
+
2300
+ def json_arrinsert: (untyped key, untyped path, untyped index, *untyped values, **untyped options) -> untyped
2301
+
2302
+ def json_arrlen: (untyped key, ?untyped? path) -> untyped
2303
+
2304
+ def json_arrpop: (untyped key, ?untyped? path, ?untyped? index, **untyped options) -> untyped
2305
+
2306
+ def json_arrtrim: (untyped key, untyped path, untyped start, untyped stop) -> untyped
2307
+
2308
+ def json_numincrby: (untyped key, untyped path, untyped number) -> untyped
2309
+
2310
+ def json_type: (untyped key, ?untyped? path) -> untyped
2311
+
2312
+ def json_objkeys: (untyped key, ?untyped? path) -> untyped
2313
+
2314
+ def json_objlen: (untyped key, ?untyped? path) -> untyped
2315
+
2316
+ def json_strlen: (untyped key, ?untyped? path) -> untyped
2317
+
2318
+ def json_strappend: (untyped key, untyped path, untyped value, **untyped options) -> untyped
2319
+
2320
+ def json_toggle: (untyped key, untyped path) -> untyped
2321
+
2322
+ def json_debug_memory: (untyped key, ?untyped? path) -> untyped
2323
+
2324
+ def mget: (*untyped keys) -> untyped
2325
+
2326
+ def mapped_mget: (*untyped keys) -> untyped
2327
+
2328
+ def setrange: (untyped key, untyped offset, untyped value) -> untyped
2329
+
2330
+ def getrange: (untyped key, untyped start, untyped stop) -> String
2331
+
2332
+ def setbit: (untyped key, untyped offset, untyped value) -> untyped
2333
+
2334
+ def getbit: (untyped key, untyped offset) -> untyped
2335
+
2336
+ def append: (untyped key, untyped value) -> untyped
2337
+
2338
+ def bitcount: (untyped key, ?::Integer start, ?::Integer stop, ?scale: untyped?) -> untyped
2339
+
2340
+ def bitop: (untyped operation, untyped destkey, *untyped keys) -> untyped
2341
+
2342
+ def bitpos: (untyped key, untyped bit, ?untyped? start, ?untyped? stop, ?scale: untyped?) -> untyped
2343
+
2344
+ def bitrangeintarray: (untyped key, untyped start, untyped stop, ?scale: untyped?, ?limit: untyped?, ?zeros: bool) -> untyped
2345
+
2346
+ def getset: (untyped key, untyped value) -> String?
2347
+
2348
+ def strlen: (untyped key) -> untyped
2349
+
2350
+ def lcs: (untyped key1, untyped key2, **untyped options) -> untyped
2351
+
2352
+ def []: (untyped key) -> untyped
2353
+
2354
+ def []=: (untyped key, untyped value) -> untyped
2355
+
2356
+ def llen: (untyped key) -> untyped
2357
+
2358
+ def lmove: (untyped source, untyped destination, untyped where_source, untyped where_destination) -> untyped
2359
+
2360
+ def lmovem: (untyped source, untyped destination, untyped where_source, untyped where_destination, ?count: untyped?, ?exactly: untyped?, ?order: untyped?) -> untyped
2361
+
2362
+ def blmove: (untyped source, untyped destination, untyped where_source, untyped where_destination, ?timeout: ::Integer) -> untyped
2363
+
2364
+ def blmovem: (untyped source, untyped destination, untyped where_source, untyped where_destination, ?timeout: ::Integer, ?count: untyped?, ?exactly: untyped?, ?order: untyped?) -> untyped
2365
+
2366
+ def lpush: (untyped key, untyped value) -> untyped
2367
+
2368
+ def lpushx: (untyped key, untyped value) -> untyped
2369
+
2370
+ def rpush: (untyped key, untyped value) -> untyped
2371
+
2372
+ def rpushx: (untyped key, untyped value) -> untyped
2373
+
2374
+ def lpop: (untyped key, ?untyped? count) -> untyped
2375
+
2376
+ def rpop: (untyped key, ?untyped? count) -> untyped
2377
+
2378
+ def rpoplpush: (untyped source, untyped destination) -> untyped
2379
+
2380
+ def _bpop: (untyped cmd, untyped args) -> untyped
2381
+
2382
+ def blpop: (*untyped args) -> untyped
2383
+
2384
+ def bzpopmax: (*untyped args) -> untyped
2385
+
2386
+ def bzpopmin: (*untyped args) -> untyped
2387
+
2388
+ def brpop: (*untyped args) -> untyped
2389
+
2390
+ def brpoplpush: (untyped source, untyped destination, **untyped options) -> untyped
2391
+
2392
+ def lindex: (untyped key, untyped index) -> String?
2393
+
2394
+ def linsert: (untyped key, untyped where, untyped pivot, untyped value) -> untyped
2395
+
2396
+ def lrange: (untyped key, untyped start, untyped stop) -> untyped
2397
+
2398
+ def lrem: (untyped key, untyped count, untyped value) -> untyped
2399
+
2400
+ def lset: (untyped key, untyped index, untyped value) -> untyped
2401
+
2402
+ def ltrim: (untyped key, untyped start, untyped stop) -> untyped
2403
+
2404
+ def blmpop: (untyped timeout, *untyped keys, ?modifier: ::String, ?count: untyped?) -> untyped
2405
+
2406
+ def lmpop: (*untyped keys, ?modifier: ::String, ?count: untyped?) -> untyped
2407
+
2408
+ def scard: (untyped key) -> untyped
2409
+
2410
+ def sadd: (untyped key, *untyped members) -> untyped
2411
+
2412
+ def sadd?: (untyped key, *untyped members) -> bool
2413
+
2414
+ def saddex: (untyped key, *untyped members, ?mnx: untyped?, ?mxx: untyped?, ?ex: untyped?, ?px: untyped?, ?exat: untyped?, ?pxat: untyped?, ?keepttl: bool) -> untyped
2415
+
2416
+ def srem: (untyped key, *untyped members) -> untyped
2417
+
2418
+ def srem?: (untyped key, *untyped members) -> bool
2419
+
2420
+ def spop: (untyped key, ?untyped? count) -> untyped
2421
+
2422
+ def srandmember: (untyped key, ?untyped? count) -> untyped
2423
+
2424
+ def smove: (untyped source, untyped destination, untyped member) -> untyped
2425
+
2426
+ def sismember: (untyped key, untyped member) -> untyped
2427
+
2428
+ def smismember: (untyped key, *untyped members) -> untyped
2429
+
2430
+ def sexpire: (untyped key, untyped ttl, *untyped members, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> untyped
2431
+
2432
+ def spexpire: (untyped key, untyped ttl, *untyped members, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> untyped
2433
+
2434
+ def sexpireat: (untyped key, untyped unix_time_seconds, *untyped members, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> untyped
2435
+
2436
+ def spexpireat: (untyped key, untyped unix_time_milliseconds, *untyped members, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> untyped
2437
+
2438
+ def sttl: (untyped key, *untyped members) -> untyped
2439
+
2440
+ def spttl: (untyped key, *untyped members) -> untyped
2441
+
2442
+ def sexpiretime: (untyped key, *untyped members) -> untyped
2443
+
2444
+ def spexpiretime: (untyped key, *untyped members) -> untyped
2445
+
2446
+ def spersist: (untyped key, *untyped members) -> untyped
2447
+
2448
+ def smembers: (untyped key) -> untyped
2449
+
2450
+ def sscan: (untyped key, untyped cursor, **untyped options) -> untyped
2451
+
2452
+ def sscan_each: (untyped key, **untyped options) { (?) -> untyped } -> untyped
2453
+
2454
+ def sdiff: (*untyped keys) -> untyped
2455
+
2456
+ def sdiffstore: (untyped destination, *untyped keys) -> untyped
2457
+
2458
+ def sdiffcard: (*untyped keys, ?limit: untyped?) -> untyped
2459
+
2460
+ def sinter: (*untyped keys) -> untyped
2461
+
2462
+ def sintercard: (*untyped keys, ?limit: untyped?) -> untyped
2463
+
2464
+ def sinterstore: (untyped destination, *untyped keys) -> untyped
2465
+
2466
+ def sunion: (*untyped keys) -> untyped
2467
+
2468
+ def sunionstore: (untyped destination, *untyped keys) -> untyped
2469
+
2470
+ def sunioncard: (*untyped keys, ?approx: bool, ?limit: untyped?) -> untyped
2471
+
2472
+ def zcard: (untyped key) -> untyped
2473
+
2474
+ def zadd: (untyped key, *untyped args) -> untyped
2475
+
2476
+ def zincrby: (untyped key, untyped increment, untyped member) -> untyped
2477
+
2478
+ def zrem: (untyped key, untyped member) -> untyped
2479
+
2480
+ def zscore: (untyped key, untyped member) -> Float?
2481
+
2482
+ def zrandmember: (untyped key, ?untyped? count, **untyped options) -> untyped
2483
+
2484
+ def zmscore: (untyped key, *untyped members) -> untyped
2485
+
2486
+ def bzmpop: (untyped timeout, *untyped keys, ?modifier: ::String, ?count: untyped?) -> untyped
2487
+
2488
+ def zmpop: (*untyped keys, ?modifier: ::String, ?count: untyped?) -> untyped
2489
+
2490
+ def zmove: (untyped source, untyped destination, **untyped options) -> untyped
2491
+
2492
+ def bzmove: (untyped source, untyped destination, **untyped options) -> untyped
2493
+
2494
+ def zmovemember: (untyped source, untyped destination, untyped members, **untyped options) -> untyped
2495
+
2496
+ def zrange: (untyped key, untyped start, untyped stop, **untyped options) -> untyped
2497
+
2498
+ def zrangestore: (untyped dest_key, untyped src_key, untyped start, untyped stop, **untyped options) -> untyped
2499
+
2500
+ def zrevrange: (untyped key, untyped start, untyped stop, **untyped options) -> untyped
2501
+
2502
+ def zrank: (untyped key, untyped member, **untyped options) -> untyped
2503
+
2504
+ def zrevrank: (untyped key, untyped member, **untyped options) -> untyped
2505
+
2506
+ def zremrangebyrank: (untyped key, untyped start, untyped stop) -> untyped
2507
+
2508
+ def zrangebyscore: (untyped key, untyped min, untyped max, **untyped options) -> untyped
2509
+
2510
+ def zrevrangebyscore: (untyped key, untyped max, untyped min, **untyped options) -> untyped
2511
+
2512
+ def zremrangebyscore: (untyped key, untyped min, untyped max) -> untyped
2513
+
2514
+ def zcount: (untyped key, untyped min, untyped max) -> untyped
2515
+
2516
+ def zinter: (*untyped keys, **untyped options) -> untyped
2517
+
2518
+ def zintercard: (*untyped keys, ?limit: untyped?) -> untyped
2519
+
2520
+ def zinterstore: (untyped destination, *untyped keys, **untyped options) -> untyped
2521
+
2522
+ def zunion: (*untyped keys, **untyped options) -> untyped
2523
+
2524
+ def zunionstore: (untyped destination, *untyped keys, **untyped options) -> untyped
2525
+
2526
+ def zdiff: (*untyped keys, **untyped options) -> untyped
2527
+
2528
+ def zdiffstore: (untyped destination, *untyped keys, **untyped options) -> untyped
2529
+
2530
+ def hlen: (untyped key) -> untyped
2531
+
2532
+ def hset: (untyped key, *untyped attrs) -> untyped
2533
+
2534
+ def hsetnx: (untyped key, untyped field, untyped value) -> untyped
2535
+
2536
+ def hmset: (untyped key, *untyped attrs) -> untyped
2537
+
2538
+ def mapped_hmset: (untyped key, untyped hash) -> untyped
2539
+
2540
+ def hget: (untyped key, untyped field) -> String?
2541
+
2542
+ def hmget: (untyped key, *untyped fields) -> untyped
2543
+
2544
+ def mapped_hmget: (untyped key, *untyped fields) -> untyped
2545
+
2546
+ def hrandfield: (untyped key, ?untyped? count, **untyped options) -> untyped
2547
+
2548
+ def hdel: (untyped key, *untyped fields) -> untyped
2549
+
2550
+ def hgetdel: (untyped key, *untyped fields) -> untyped
2551
+
2552
+ def hgetex: (untyped key, *untyped fields, ?ex: untyped?, ?px: untyped?, ?exat: untyped?, ?pxat: untyped?, ?persist: bool) -> untyped
2553
+
2554
+ def hsetex: (untyped key, *untyped attrs, ?fnx: untyped?, ?fxx: untyped?, ?ex: untyped?, ?px: untyped?, ?exat: untyped?, ?pxat: untyped?, ?keepttl: bool) -> untyped
2555
+
2556
+ def hexists: (untyped key, untyped field) -> untyped
2557
+
2558
+ def hincrby: (untyped key, untyped field, untyped increment) -> untyped
2559
+
2560
+ def hincrbyfloat: (untyped key, untyped field, untyped increment) -> untyped
2561
+
2562
+ def hkeys: (untyped key) -> untyped
2563
+
2564
+ def hvals: (untyped key) -> untyped
2565
+
2566
+ def hgetall: (untyped key) -> untyped
2567
+
2568
+ def hexpire: (String key, Integer ttl, *Array[String] fields, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> Array[Integer]
2569
+
2570
+ def httl: (untyped key, *untyped fields) -> untyped
2571
+
2572
+ def hscan: (untyped key, untyped cursor, **untyped options) -> untyped
2573
+
2574
+ def hscan_each: (untyped key, **untyped options) { (?) -> untyped } -> untyped
2575
+
2576
+ def hstrlen: (untyped key, untyped field) -> untyped
2577
+
2578
+ def hpexpire: (untyped key, untyped ttl, *untyped fields, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> untyped
2579
+
2580
+ def hpttl: (untyped key, *untyped fields) -> untyped
2581
+
2582
+ def hexpireat: (String key, Integer unix_time_seconds, *Array[String] fields, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> Array[Integer]
2583
+
2584
+ def hpexpireat: (String key, Integer unix_time_milliseconds, *Array[String] fields, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> Array[Integer]
2585
+
2586
+ def hexpiretime: (String key, *Array[String] fields) -> Array[Integer]
2587
+
2588
+ def hpexpiretime: (String key, *Array[String] fields) -> Array[Integer]
2589
+
2590
+ def hpersist: (String key, *Array[String] fields) -> Array[Integer]
2591
+
2592
+ def himport_prepare: (untyped fieldset_name, *untyped fields) -> untyped
2593
+
2594
+ def himport_set: (untyped key, untyped fieldset_name, *untyped values) -> untyped
2595
+
2596
+ def himport_discard: (untyped fieldset_name) -> untyped
2597
+
2598
+ def himport_discard_all: () -> untyped
2599
+
2600
+ def geoadd: (untyped key, *untyped member, **untyped options) -> untyped
2601
+
2602
+ def geohash: (untyped key, untyped member) -> untyped
2603
+
2604
+ def geopos: (untyped key, untyped member) -> Array[::Redis::geo_coordinates?]
2605
+
2606
+ def geodist: (untyped key, untyped member1, untyped member2, ?::String unit) -> untyped
2607
+
2608
+ def georadius: (*untyped args, **untyped geoptions) -> (::Redis::geo_search_reply | Integer)
2609
+
2610
+ def georadiusbymember: (*untyped args, **untyped geoptions) -> (::Redis::geo_search_reply | Integer)
2611
+
2612
+ def geosearch: (untyped key, **untyped options) -> ::Redis::geo_search_reply
2613
+
2614
+ def geosearchstore: (untyped destination, untyped source, **untyped options) -> untyped
2615
+
2616
+ def publish: (untyped channel, untyped message) -> untyped
2617
+
2618
+ def subscribed?: () -> bool
2619
+
2620
+ def subscribe: (untyped channel, *untyped channels) { (?) -> untyped } -> untyped
2621
+
2622
+ def unsubscribe: (*untyped channels) -> untyped
2623
+
2624
+ def psubscribe: (*untyped channels) { (?) -> untyped } -> untyped
2625
+
2626
+ def punsubscribe: (*untyped channels) -> untyped
2627
+
2628
+ def watch: (*untyped keys) { (?) -> untyped } -> untyped
2629
+
2630
+ def unwatch: () -> untyped
2631
+
2632
+ def pipelined: () -> untyped
2633
+
2634
+ def multi: () { (?) -> untyped } -> untyped
2635
+
2636
+ def exec: () -> untyped
2637
+
2638
+ def discard: () -> untyped
2639
+
2640
+ def script: (untyped subcommand, *untyped args) -> untyped
2641
+
2642
+ def function: (untyped subcommand, *untyped args, **untyped options) -> untyped
2643
+
2644
+ def vadd: (untyped key, untyped vector, untyped element, **untyped options) -> untyped
2645
+
2646
+ def vcard: (untyped key) -> untyped
2647
+
2648
+ def vdim: (untyped key) -> untyped
2649
+
2650
+ def vemb: (untyped key, untyped element, **untyped options) -> untyped
2651
+
2652
+ def vsetattr: (untyped key, untyped element, untyped attributes) -> untyped
2653
+
2654
+ def vgetattr: (untyped key, untyped element, **untyped options) -> untyped
2655
+
2656
+ def vsim: (untyped key, **untyped options) -> untyped
2657
+
2658
+ def vrem: (untyped key, untyped element) -> untyped
2659
+
2660
+ def vismember: (untyped key, untyped element) -> untyped
2661
+
2662
+ def vlinks: (untyped key, untyped element, **untyped options) -> untyped
2663
+
2664
+ def vinfo: (untyped key) -> untyped
2665
+
2666
+ def vrandmember: (untyped key, ?untyped? count) -> untyped
2667
+
2668
+ def vrange: (untyped key, untyped start, untyped stop, ?untyped? count) -> untyped
2669
+
2670
+ def arset: (untyped key, untyped index, *untyped values) -> untyped
2671
+
2672
+ def arget: (untyped key, untyped index) -> untyped
2673
+
2674
+ def armset: (untyped key, *untyped pairs) -> untyped
2675
+
2676
+ def armget: (untyped key, *untyped indices) -> untyped
2677
+
2678
+ def argetrange: (untyped key, untyped start, untyped stop) -> untyped
2679
+
2680
+ def arlen: (untyped key) -> untyped
2681
+
2682
+ def arcount: (untyped key) -> untyped
2683
+
2684
+ def ardel: (untyped key, *untyped indices) -> untyped
2685
+
2686
+ def ardelrange: (untyped key, *untyped ranges) -> untyped
2687
+
2688
+ def arinsert: (untyped key, *untyped values) -> untyped
2689
+
2690
+ def arseek: (untyped key, untyped index) -> untyped
2691
+
2692
+ def arnext: (untyped key) -> untyped
2693
+
2694
+ def arlastitems: (untyped key, untyped count, ?rev: bool) -> untyped
2695
+
2696
+ def arring: (untyped key, untyped size, *untyped values) -> untyped
2697
+
2698
+ def arscan: (untyped key, untyped start, untyped stop, ?limit: untyped?) -> untyped
2699
+
2700
+ def argrep: (untyped key, untyped start, untyped stop, **untyped options) -> untyped
2701
+
2702
+ def arop: (untyped key, untyped start, untyped stop, untyped operation, ?value: untyped?) -> untyped
2703
+
2704
+ def arinfo: (untyped key, ?full: bool) -> untyped
2705
+
2706
+ def bless_get: (untyped key) -> untyped
2707
+
2708
+ def bless_set: (untyped key, untyped flag) -> untyped
2709
+
2710
+ def bless_clear: (untyped key, untyped flag) -> untyped
2711
+
2712
+ def bless_scan: (untyped _cursor, untyped _flag, **untyped _options) -> untyped
2713
+
2714
+ def bless_scan_each: (untyped flag, **untyped options) ?{ (?) -> untyped } -> untyped
2715
+
2716
+ def pfadd: (untyped key, untyped member) -> untyped
2717
+
2718
+ def pfcount: (*untyped keys) -> untyped
2719
+
2720
+ def pfmerge: (untyped dest_key, *untyped source_key) -> untyped
2721
+
2722
+ def _eval: (untyped cmd, untyped args) -> untyped
2723
+
2724
+ def eval: (*untyped args) -> untyped
2725
+
2726
+ def evalsha: (*untyped args) -> untyped
2727
+
2728
+ def fcall: (*untyped args) -> untyped
2729
+
2730
+ def fcall_ro: (*untyped args) -> untyped
2731
+
2732
+ def inspect: () -> ::String
2733
+
2734
+ def dup: () -> untyped
2735
+
2736
+ def on_each_node: (untyped command, *untyped args) -> untyped
2737
+
2738
+ def node_index_for: (untyped key) -> untyped
2739
+
2740
+ def key_tag: (untyped key) -> untyped
2741
+
2742
+ def transaction_key: () -> untyped
2743
+
2744
+ def release_watch_key: (untyped key) -> untyped
2745
+
2746
+ def unwatch_after_error: (untyped key) -> untyped
2747
+
2748
+ def sort_keys: (untyped key, untyped options) -> untyped
2749
+
2750
+ def ensure_same_node: (untyped command, untyped keys) { (untyped) -> untyped } -> untyped
2751
+ end
2752
+ end
2753
+
2754
+ class Redis
2755
+ class BaseError < StandardError
2756
+ end
2757
+
2758
+ class ProtocolError < BaseError
2759
+ def initialize: (untyped reply_type) -> void
2760
+ end
2761
+
2762
+ class CommandError < BaseError
2763
+ end
2764
+
2765
+ class PermissionError < CommandError
2766
+ end
2767
+
2768
+ class WrongTypeError < CommandError
2769
+ end
2770
+
2771
+ class OutOfMemoryError < CommandError
2772
+ end
2773
+
2774
+ class NoScriptError < CommandError
2775
+ end
2776
+
2777
+ class BaseConnectionError < BaseError
2778
+ end
2779
+
2780
+ class CannotConnectError < BaseConnectionError
2781
+ end
2782
+
2783
+ class ConnectionError < BaseConnectionError
2784
+ end
2785
+
2786
+ class TimeoutError < BaseConnectionError
2787
+ end
2788
+
2789
+ class InheritedError < BaseConnectionError
2790
+ end
2791
+
2792
+ class ReadOnlyError < BaseConnectionError
2793
+ end
2794
+
2795
+ class InvalidClientOptionError < BaseError
2796
+ end
2797
+
2798
+ class SubscriptionError < BaseError
2799
+ end
2800
+ end
2801
+
2802
+ class Redis
2803
+ class HashRing
2804
+ @replicas: untyped
2805
+
2806
+ @ring: untyped
2807
+
2808
+ @nodes: untyped
2809
+
2810
+ @sorted_keys: untyped
2811
+
2812
+ POINTS_PER_SERVER: 160
2813
+
2814
+ attr_reader ring: untyped
2815
+
2816
+ attr_reader sorted_keys: untyped
2817
+
2818
+ attr_reader replicas: untyped
2819
+
2820
+ attr_reader nodes: untyped
2821
+
2822
+ def initialize: (?untyped nodes, ?untyped replicas) -> void
2823
+
2824
+ def add_node: (untyped node) -> untyped
2825
+
2826
+ def remove_node: (untyped node) -> untyped
2827
+
2828
+ def get_node: (untyped key) -> untyped
2829
+
2830
+ def iter_nodes: (untyped key) { (untyped) -> untyped } -> (::Array[nil] | untyped)
2831
+
2832
+ private
2833
+
2834
+ def hash_for: (untyped key) -> untyped
2835
+
2836
+ def server_hash_for: (untyped key) -> untyped
2837
+
2838
+ def binary_search: (untyped ary, untyped value) -> untyped
2839
+ end
2840
+ end
2841
+
2842
+ class Redis
2843
+ module KeyspaceNotifications
2844
+ class ParseError < BaseError
2845
+ @channel: untyped
2846
+
2847
+ @payload: untyped
2848
+
2849
+ attr_reader channel: untyped
908
2850
 
909
- def append: (untyped key, untyped value) -> untyped
2851
+ attr_reader payload: untyped
910
2852
 
911
- def bitcount: (untyped key, ?::Integer start, ?::Integer stop, ?scale: untyped?) -> untyped
2853
+ def initialize: (untyped message, ?channel: untyped?, ?payload: untyped?) -> void
2854
+ end
2855
+ end
912
2856
 
913
- def bitop: (untyped operation, untyped destkey, *untyped keys) -> untyped
2857
+ def keyspace_notifications: (?error_handler: untyped?, ?reconnect_attempts: untyped) -> KeyspaceNotifications::Manager
2858
+ end
914
2859
 
915
- def bitpos: (untyped key, untyped bit, ?untyped? start, ?untyped? stop, ?scale: untyped?) -> untyped
2860
+ class Redis
2861
+ module KeyspaceNotifications
2862
+ module Channels
2863
+ FAMILIES: { keyspace: "__keyspace@", keyevent: "__keyevent@", subkeyspace: "__subkeyspace@", subkeyevent: "__subkeyevent@", subkeyspaceitem: "__subkeyspaceitem@", subkeyspaceevent: "__subkeyspaceevent@" }
916
2864
 
917
- def getset: (untyped key, untyped value) -> String?
2865
+ def self?.keyspace: (untyped key, ?db: ::Integer) -> String
918
2866
 
919
- def strlen: (untyped key) -> untyped
2867
+ def self?.keyevent: (untyped event, ?db: ::Integer) -> String
920
2868
 
921
- def []: (untyped key) -> untyped
2869
+ def self?.subkeyspace: (untyped key, ?db: ::Integer) -> String
922
2870
 
923
- def []=: (untyped key, untyped value) -> untyped
2871
+ def self?.subkeyevent: (untyped event, ?db: ::Integer) -> String
924
2872
 
925
- def llen: (untyped key) -> untyped
2873
+ def self?.subkeyspaceitem: (untyped key, untyped subkey, ?db: ::Integer) -> String
926
2874
 
927
- def lmove: (untyped source, untyped destination, untyped where_source, untyped where_destination) -> untyped
2875
+ def self?.subkeyspaceevent: (untyped event, untyped key, ?db: ::Integer) -> String
928
2876
 
929
- def blmove: (untyped source, untyped destination, untyped where_source, untyped where_destination, ?timeout: ::Integer) -> untyped
2877
+ def self?.glob_escape: (untyped value) -> String
930
2878
 
931
- def lpush: (untyped key, untyped value) -> untyped
2879
+ def self?.build: (untyped family, untyped db, untyped suffix) -> untyped
932
2880
 
933
- def lpushx: (untyped key, untyped value) -> untyped
2881
+ def self?.validate_db!: (untyped db) -> (nil | untyped)
2882
+ end
2883
+ end
2884
+ end
934
2885
 
935
- def rpush: (untyped key, untyped value) -> untyped
2886
+ class Redis
2887
+ module KeyspaceNotifications
2888
+ class Manager
2889
+ @redis: untyped
936
2890
 
937
- def rpushx: (untyped key, untyped value) -> untyped
2891
+ @error_handler: untyped
938
2892
 
939
- def lpop: (untyped key, ?untyped? count) -> untyped
2893
+ @reconnect_attempts: untyped
940
2894
 
941
- def rpop: (untyped key, ?untyped? count) -> untyped
2895
+ @handlers: untyped
942
2896
 
943
- def rpoplpush: (untyped source, untyped destination) -> untyped
2897
+ @confirmed: untyped
944
2898
 
945
- def _bpop: (untyped cmd, untyped args) -> untyped
2899
+ @confirm_seq: untyped
946
2900
 
947
- def blpop: (*untyped args) -> untyped
2901
+ @pending_acks: untyped
948
2902
 
949
- def bzpopmax: (*untyped args) -> untyped
2903
+ @default_handler: untyped
950
2904
 
951
- def bzpopmin: (*untyped args) -> untyped
2905
+ @reconnect_handler: untyped
952
2906
 
953
- def brpop: (*untyped args) -> untyped
2907
+ @lock: untyped
954
2908
 
955
- def brpoplpush: (untyped source, untyped destination, **untyped options) -> untyped
2909
+ @cond: untyped
956
2910
 
957
- def lindex: (untyped key, untyped index) -> String?
2911
+ @thread: untyped
958
2912
 
959
- def linsert: (untyped key, untyped where, untyped pivot, untyped value) -> untyped
2913
+ @listener_error: untyped
960
2914
 
961
- def lrange: (untyped key, untyped start, untyped stop) -> untyped
2915
+ @listener_error_epoch: untyped
962
2916
 
963
- def lrem: (untyped key, untyped count, untyped value) -> untyped
2917
+ @reconnect_now: untyped
964
2918
 
965
- def lset: (untyped key, untyped index, untyped value) -> untyped
2919
+ @removing: untyped
966
2920
 
967
- def ltrim: (untyped key, untyped start, untyped stop) -> untyped
2921
+ @unvalidated: untyped
968
2922
 
969
- def blmpop: (untyped timeout, *untyped keys, ?modifier: ::String, ?count: untyped?) -> untyped
2923
+ @probe_inflight: untyped
970
2924
 
971
- def lmpop: (*untyped keys, ?modifier: ::String, ?count: untyped?) -> untyped
2925
+ @opening_pending: untyped
972
2926
 
973
- def scard: (untyped key) -> untyped
2927
+ @opening_seq: untyped
974
2928
 
975
- def sadd: (untyped key, *untyped members) -> untyped
2929
+ @establishing: untyped
976
2930
 
977
- def sadd?: (untyped key, *untyped members) -> bool
2931
+ @rejected_wait: untyped
978
2932
 
979
- def srem: (untyped key, *untyped members) -> untyped
2933
+ @probe_replay: untyped
980
2934
 
981
- def srem?: (untyped key, *untyped members) -> bool
2935
+ @resume_reconnecting: untyped
982
2936
 
983
- def spop: (untyped key, ?untyped? count) -> untyped
2937
+ @issue_seq: untyped
984
2938
 
985
- def srandmember: (untyped key, ?untyped? count) -> untyped
2939
+ @inflight_waits: untyped
986
2940
 
987
- def smove: (untyped source, untyped destination, untyped member) -> untyped
2941
+ @session_seq: untyped
988
2942
 
989
- def sismember: (untyped key, untyped member) -> untyped
2943
+ @closing: untyped
990
2944
 
991
- def smismember: (untyped key, *untyped members) -> untyped
2945
+ @closed: untyped
992
2946
 
993
- def smembers: (untyped key) -> untyped
2947
+ DEFAULT_CLOSE_TIMEOUT: 2
994
2948
 
995
- def sscan: (untyped key, untyped cursor, **untyped options) -> untyped
2949
+ Registration: untyped
996
2950
 
997
- def sscan_each: (untyped key, **untyped options) { (?) -> untyped } -> untyped
2951
+ DEFAULT_RECONNECT_ATTEMPTS: ::Array[::Float | 1 | 2 | 4 | 8 | 16 | 30]
998
2952
 
999
- def sdiff: (*untyped keys) -> untyped
2953
+ SUBSCRIBE_ACK_TIMEOUT: 5
1000
2954
 
1001
- def sdiffstore: (untyped destination, *untyped keys) -> untyped
2955
+ def initialize: (redis: untyped, ?error_handler: untyped?, ?reconnect_attempts: untyped) -> void
1002
2956
 
1003
- def sinter: (*untyped keys) -> untyped
2957
+ def subscribe: (*untyped patterns, ?handler: untyped?) { (?) -> untyped } -> (nil | untyped)
1004
2958
 
1005
- def sinterstore: (untyped destination, *untyped keys) -> untyped
2959
+ def unsubscribe: (*untyped patterns) -> nil
1006
2960
 
1007
- def sunion: (*untyped keys) -> untyped
2961
+ def subscribe_keyspace: (?::String key, ?db: ::Integer) { (?) -> untyped } -> untyped
1008
2962
 
1009
- def sunionstore: (untyped destination, *untyped keys) -> untyped
2963
+ def subscribe_keyevent: (?::String event, ?db: ::Integer) { (?) -> untyped } -> untyped
1010
2964
 
1011
- def zcard: (untyped key) -> untyped
2965
+ def subscribe_subkeyspace: (?::String key, ?db: ::Integer) { (?) -> untyped } -> untyped
1012
2966
 
1013
- def zadd: (untyped key, *untyped args) -> untyped
2967
+ def subscribe_subkeyevent: (?::String event, ?db: ::Integer) { (?) -> untyped } -> untyped
1014
2968
 
1015
- def zincrby: (untyped key, untyped increment, untyped member) -> untyped
2969
+ def subscribe_subkeyspaceitem: (untyped key, ?::String subkey, ?db: ::Integer) { (?) -> untyped } -> untyped
1016
2970
 
1017
- def zrem: (untyped key, untyped member) -> untyped
2971
+ def subscribe_subkeyspaceevent: (?::String event, ?::String key, ?db: ::Integer) { (?) -> untyped } -> untyped
1018
2972
 
1019
- def zscore: (untyped key, untyped member) -> Float?
2973
+ def on_notification: () { (?) -> untyped } -> nil
1020
2974
 
1021
- def zrandmember: (untyped key, ?untyped? count, **untyped options) -> untyped
2975
+ def on_error: () { (?) -> untyped } -> nil
1022
2976
 
1023
- def zmscore: (untyped key, *untyped members) -> untyped
2977
+ def on_reconnect: () { (?) -> untyped } -> nil
1024
2978
 
1025
- def bzmpop: (untyped timeout, *untyped keys, ?modifier: ::String, ?count: untyped?) -> untyped
2979
+ def patterns: () -> Array[String]
1026
2980
 
1027
- def zmpop: (*untyped keys, ?modifier: ::String, ?count: untyped?) -> untyped
2981
+ def registered_patterns: () -> Array[String]
1028
2982
 
1029
- def zrange: (untyped key, untyped start, untyped stop, **untyped options) -> untyped
2983
+ def subscribed?: () -> bool
1030
2984
 
1031
- def zrangestore: (untyped dest_key, untyped src_key, untyped start, untyped stop, **untyped options) -> untyped
2985
+ def closed?: () -> bool
1032
2986
 
1033
- def zrevrange: (untyped key, untyped start, untyped stop, **untyped options) -> untyped
2987
+ def close: (?timeout: untyped) -> nil
1034
2988
 
1035
- def zrank: (untyped key, untyped member, **untyped options) -> untyped
2989
+ alias stop close
1036
2990
 
1037
- def zrevrank: (untyped key, untyped member, **untyped options) -> untyped
2991
+ private
1038
2992
 
1039
- def zremrangebyrank: (untyped key, untyped start, untyped stop) -> untyped
2993
+ def listening?: () -> bool
1040
2994
 
1041
- def zrangebyscore: (untyped key, untyped min, untyped max, **untyped options) -> untyped
2995
+ def listener_thread?: () -> bool
1042
2996
 
1043
- def zrevrangebyscore: (untyped key, untyped max, untyped min, **untyped options) -> untyped
2997
+ def interruptible_backoff: (untyped delay) -> (true | false)
1044
2998
 
1045
- def zremrangebyscore: (untyped key, untyped min, untyped max) -> untyped
2999
+ def restart_dead_listener: () -> (nil | untyped)
1046
3000
 
1047
- def zcount: (untyped key, untyped min, untyped max) -> untyped
3001
+ def start_listener: (untyped patterns) -> untyped
1048
3002
 
1049
- def zinter: (*untyped keys, **untyped options) -> untyped
3003
+ def run_listener: (untyped patterns, ?reconnecting: bool) -> untyped
1050
3004
 
1051
- def zinterstore: (untyped destination, *untyped keys, **untyped options) -> untyped
3005
+ def listen: (untyped patterns, untyped reconnected) -> untyped
1052
3006
 
1053
- def zunion: (*untyped keys, **untyped options) -> untyped
3007
+ def dispatch: (untyped pattern, untyped channel, untyped payload) -> untyped
1054
3008
 
1055
- def zunionstore: (untyped destination, *untyped keys, **untyped options) -> untyped
3009
+ def wait_for_confirmation: (untyped patterns, untyped installed, untyped issue_seq, untyped stale_confirmations, untyped entry_epoch) -> nil
1056
3010
 
1057
- def zdiff: (*untyped keys, **untyped options) -> untyped
3011
+ def reissue_unconfirmed: (untyped patterns, untyped installed, untyped issue_seq, untyped stale_confirmations) -> untyped
1058
3012
 
1059
- def zdiffstore: (untyped destination, *untyped keys, **untyped options) -> untyped
3013
+ def confirmed_or_replaced?: (untyped pattern, untyped installed, untyped stale_confirmations) -> bool
1060
3014
 
1061
- def hlen: (untyped key) -> untyped
3015
+ def fresh_confirmation?: (untyped pattern, untyped stale_confirmations) -> bool
1062
3016
 
1063
- def hset: (untyped key, *untyped attrs) -> untyped
3017
+ def wait_for_removal: (untyped patterns, untyped owned) -> nil
1064
3018
 
1065
- def hsetnx: (untyped key, untyped field, untyped value) -> untyped
3019
+ def punsubscribe_quietly: (untyped patterns) -> (false | untyped)
1066
3020
 
1067
- def hmset: (untyped key, *untyped attrs) -> untyped
3021
+ def psubscribe_quietly: (untyped patterns, ?untyped? batch_seq) -> (false | untyped)
1068
3022
 
1069
- def mapped_hmset: (untyped key, untyped hash) -> untyped
3023
+ def track_pending_acks: (untyped patterns, ?untyped? batch_seq) -> untyped
1070
3024
 
1071
- def hget: (untyped key, untyped field) -> String?
3025
+ def track_opening_acks: (untyped patterns) -> untyped
1072
3026
 
1073
- def hmget: (untyped key, *untyped fields) -> untyped
3027
+ def mark_probes: (untyped patterns) -> untyped
1074
3028
 
1075
- def mapped_hmget: (untyped key, *untyped fields) -> untyped
3029
+ def issue_probes: (untyped patterns) -> untyped
1076
3030
 
1077
- def hrandfield: (untyped key, ?untyped? count, **untyped options) -> untyped
3031
+ def write_to_session: (untyped verb, untyped patterns) -> untyped
1078
3032
 
1079
- def hdel: (untyped key, *untyped fields) -> untyped
3033
+ def rollback_registration: (untyped previous, untyped installed) -> (nil | untyped)
1080
3034
 
1081
- def hexists: (untyped key, untyped field) -> untyped
3035
+ def revert_subscription: (untyped pattern) -> untyped
1082
3036
 
1083
- def hincrby: (untyped key, untyped field, untyped increment) -> untyped
3037
+ def fire_reconnect: () -> untyped
1084
3038
 
1085
- def hincrbyfloat: (untyped key, untyped field, untyped increment) -> untyped
3039
+ def report_error: (untyped error) -> untyped
1086
3040
 
1087
- def hkeys: (untyped key) -> untyped
3041
+ def force_close_redis: () -> untyped
1088
3042
 
1089
- def hvals: (untyped key) -> untyped
3043
+ def translate_error: (untyped error) -> untyped
3044
+ end
3045
+ end
3046
+ end
1090
3047
 
1091
- def hgetall: (untyped key) -> untyped
3048
+ class Redis
3049
+ module KeyspaceNotifications
3050
+ class Notification
3051
+ @family: untyped
1092
3052
 
1093
- def publish: (untyped channel, untyped message) -> untyped
3053
+ @db: untyped
1094
3054
 
1095
- def subscribed?: () -> bool
3055
+ @event: untyped
1096
3056
 
1097
- def subscribe: (untyped channel, *untyped channels) { (?) -> untyped } -> untyped
3057
+ @key: untyped
1098
3058
 
1099
- def unsubscribe: (*untyped channels) -> untyped
3059
+ @subkeys: untyped
1100
3060
 
1101
- def psubscribe: (*untyped channels) { (?) -> untyped } -> untyped
3061
+ @channel: untyped
1102
3062
 
1103
- def punsubscribe: (*untyped channels) -> untyped
3063
+ @payload: untyped
1104
3064
 
1105
- def watch: (*untyped keys) { (?) -> untyped } -> untyped
3065
+ @pattern: untyped
1106
3066
 
1107
- def unwatch: () -> untyped
3067
+ FAMILIES: ::Array[:keyspace | :keyevent | :subkeyspace | :subkeyevent | :subkeyspaceitem | :subkeyspaceevent]
1108
3068
 
1109
- def pipelined: () -> untyped
3069
+ attr_reader family: untyped
1110
3070
 
1111
- def multi: () { (?) -> untyped } -> untyped
3071
+ attr_reader db: untyped
1112
3072
 
1113
- def exec: () -> untyped
3073
+ attr_reader event: untyped
1114
3074
 
1115
- def discard: () -> untyped
3075
+ attr_reader key: untyped
1116
3076
 
1117
- def script: (untyped subcommand, *untyped args) -> untyped
3077
+ attr_reader subkeys: untyped
1118
3078
 
1119
- def pfadd: (untyped key, untyped member) -> untyped
3079
+ attr_reader channel: untyped
1120
3080
 
1121
- def pfcount: (*untyped keys) -> untyped
3081
+ attr_reader payload: untyped
1122
3082
 
1123
- def pfmerge: (untyped dest_key, *untyped source_key) -> untyped
3083
+ attr_reader pattern: untyped
1124
3084
 
1125
- def _eval: (untyped cmd, untyped args) -> untyped
3085
+ def initialize: (family: untyped, db: untyped, event: untyped, key: untyped, channel: untyped, payload: untyped, ?subkeys: untyped, ?pattern: untyped?) -> void
1126
3086
 
1127
- def eval: (*untyped args) -> untyped
3087
+ def subkey: () -> (String | nil)
1128
3088
 
1129
- def evalsha: (*untyped args) -> untyped
3089
+ def subkey_family?: () -> bool
1130
3090
 
1131
- def inspect: () -> ::String
3091
+ def to_h: () -> { family: untyped, db: untyped, event: untyped, key: untyped, subkeys: untyped, channel: untyped, payload: untyped, pattern: untyped }
1132
3092
 
1133
- def dup: () -> untyped
3093
+ def ==: (untyped other) -> bool
1134
3094
 
1135
- def on_each_node: (untyped command, *untyped args) -> untyped
3095
+ alias eql? ==
1136
3096
 
1137
- def node_index_for: (untyped key) -> untyped
3097
+ def hash: () -> Integer
1138
3098
 
1139
- def key_tag: (untyped key) -> untyped
3099
+ private
1140
3100
 
1141
- def ensure_same_node: (untyped command, untyped keys) { (untyped) -> untyped } -> untyped
3101
+ def frozen_copy: (untyped value) -> untyped
3102
+ end
1142
3103
  end
1143
3104
  end
1144
3105
 
1145
3106
  class Redis
1146
- class BaseError < StandardError
1147
- end
1148
-
1149
- class ProtocolError < BaseError
1150
- def initialize: (untyped reply_type) -> void
1151
- end
1152
-
1153
- class CommandError < BaseError
1154
- end
3107
+ module KeyspaceNotifications
3108
+ module Parser
3109
+ HEADER: ::Regexp
1155
3110
 
1156
- class PermissionError < CommandError
1157
- end
3111
+ COMMA: 44
1158
3112
 
1159
- class WrongTypeError < CommandError
1160
- end
3113
+ PIPE: 124
1161
3114
 
1162
- class OutOfMemoryError < CommandError
1163
- end
3115
+ def self?.parse: (untyped channel, untyped payload, ?pattern: untyped?) -> (nil | untyped)
1164
3116
 
1165
- class NoScriptError < CommandError
1166
- end
3117
+ def self?.parse_keyspace: (untyped rest, untyped payload, untyped _channel) -> ::Array[untyped | ::Array[untyped]]
1167
3118
 
1168
- class BaseConnectionError < BaseError
1169
- end
3119
+ def self?.parse_keyevent: (untyped rest, untyped payload, untyped _channel) -> ::Array[untyped | ::Array[untyped]]
1170
3120
 
1171
- class CannotConnectError < BaseConnectionError
1172
- end
3121
+ def self?.parse_subkeyspace: (untyped rest, untyped payload, untyped channel) -> ::Array[untyped]
1173
3122
 
1174
- class ConnectionError < BaseConnectionError
1175
- end
3123
+ def self?.parse_subkeyevent: (untyped rest, untyped payload, untyped channel) -> ::Array[untyped]
1176
3124
 
1177
- class TimeoutError < BaseConnectionError
1178
- end
3125
+ def self?.parse_subkeyspaceitem: (untyped rest, untyped payload, untyped channel) -> ::Array[untyped | ::Array[untyped]]
1179
3126
 
1180
- class InheritedError < BaseConnectionError
1181
- end
3127
+ def self?.parse_subkeyspaceevent: (untyped rest, untyped payload, untyped channel) -> ::Array[untyped]
1182
3128
 
1183
- class ReadOnlyError < BaseConnectionError
1184
- end
3129
+ def self?.read_length_prefixed: (untyped buf, untyped pos, untyped channel) -> ::Array[untyped]
1185
3130
 
1186
- class InvalidClientOptionError < BaseError
1187
- end
3131
+ def self?.parse_subkey_list: (untyped buf, untyped pos, untyped channel) -> untyped
1188
3132
 
1189
- class SubscriptionError < BaseError
3133
+ def self?.error: (untyped message, untyped channel, untyped payload) -> untyped
3134
+ end
1190
3135
  end
1191
3136
  end
1192
3137
 
1193
3138
  class Redis
1194
- class HashRing
1195
- @replicas: untyped
1196
-
1197
- @ring: untyped
1198
-
1199
- @nodes: untyped
1200
-
1201
- @sorted_keys: untyped
1202
-
1203
- POINTS_PER_SERVER: 160
3139
+ module LibIdentity
3140
+ MARKER: "redis-rb_v"
1204
3141
 
1205
- attr_reader ring: untyped
1206
-
1207
- attr_reader sorted_keys: untyped
3142
+ LIB_NAME: "redis-rb"
1208
3143
 
1209
- attr_reader replicas: untyped
3144
+ SEPARATOR: ";"
1210
3145
 
1211
- attr_reader nodes: untyped
3146
+ OWN_INFO: ::String
1212
3147
 
1213
- def initialize: (?untyped nodes, ?untyped replicas) -> void
3148
+ OWN_PREFIX: ::String
1214
3149
 
1215
- def add_node: (untyped node) -> untyped
3150
+ INVALID_CHARS: ::Regexp
1216
3151
 
1217
- def remove_node: (untyped node) -> untyped
3152
+ def self.driver_info: (?untyped? downstream) -> untyped
1218
3153
 
1219
- def get_node: (untyped key) -> untyped
3154
+ def self.ours?: (untyped info) -> bool
1220
3155
 
1221
- def iter_nodes: (untyped key) { (untyped) -> untyped } -> (::Array[nil] | untyped)
3156
+ def self.setinfo_commands: (untyped info) -> ::Array[::Array["CLIENT" | "SETINFO" | "LIB-NAME" | untyped] | ::Array["CLIENT" | "SETINFO" | "LIB-VER" | untyped]]
1222
3157
 
1223
3158
  private
1224
3159
 
1225
- def hash_for: (untyped key) -> untyped
3160
+ def self.combine: (untyped downstream) -> untyped
1226
3161
 
1227
- def server_hash_for: (untyped key) -> untyped
3162
+ def self.lib_name: (untyped info) -> untyped
1228
3163
 
1229
- def binary_search: (untyped ary, untyped value) -> untyped
3164
+ public
3165
+
3166
+ def connection_prelude: () -> untyped
1230
3167
  end
1231
3168
  end
1232
3169
 
@@ -1234,13 +3171,15 @@ class Redis
1234
3171
  class PipelinedConnection
1235
3172
  @pipeline: untyped
1236
3173
 
3174
+ @client: untyped
3175
+
1237
3176
  @futures: untyped
1238
3177
 
1239
3178
  @exception: untyped
1240
3179
 
1241
3180
  attr_accessor db: untyped
1242
3181
 
1243
- def initialize: (untyped pipeline, ?untyped futures, ?exception: bool) -> void
3182
+ def initialize: (untyped pipeline, ?untyped futures, ?client: untyped, ?exception: bool) -> void
1244
3183
 
1245
3184
  include Commands
1246
3185
 
@@ -1267,6 +3206,8 @@ class Redis
1267
3206
 
1268
3207
  class FutureNotReady < RuntimeError
1269
3208
  def initialize: () -> void
3209
+
3210
+ def exception: (*untyped) -> untyped
1270
3211
  end
1271
3212
 
1272
3213
  class Future < BasicObject
@@ -1286,6 +3227,8 @@ class Redis
1286
3227
 
1287
3228
  def _set: (untyped object) -> untyped
1288
3229
 
3230
+ def _set_unless_error: (untyped object) -> (untyped | nil)
3231
+
1289
3232
  def value: () -> untyped
1290
3233
 
1291
3234
  def is_a?: (untyped other) -> bool
@@ -1312,6 +3255,14 @@ class Redis
1312
3255
 
1313
3256
  @write_monitor: untyped
1314
3257
 
3258
+ @pending_writes: untyped
3259
+
3260
+ @pending_writes_lock: untyped
3261
+
3262
+ @closed: untyped
3263
+
3264
+ READ_SLICE: ::Float
3265
+
1315
3266
  def initialize: (untyped client) -> void
1316
3267
 
1317
3268
  def call_v: (untyped command) -> untyped
@@ -1337,11 +3288,19 @@ class Redis
1337
3288
  def close: () -> nil
1338
3289
 
1339
3290
  def subscription: (untyped start, untyped stop, untyped channels, untyped block, ?::Integer timeout) -> untyped
3291
+
3292
+ def next_event: (untyped timeout) -> (nil | untyped | untyped)
3293
+
3294
+ def guarded_read: (untyped slice) -> untyped
3295
+
3296
+ def writer_priority_wait: () -> untyped
1340
3297
  end
1341
3298
 
1342
3299
  class Subscription
1343
3300
  @callbacks: untyped
1344
3301
 
3302
+ attr_reader callbacks: untyped
3303
+
1345
3304
  def initialize: () { (untyped) -> untyped } -> void
1346
3305
 
1347
3306
  def subscribe: () { (?) -> untyped } -> untyped
@@ -1365,5 +3324,107 @@ class Redis
1365
3324
  end
1366
3325
 
1367
3326
  class Redis
1368
- VERSION: "5.4.1"
3327
+ VERSION: "6.1.0"
3328
+ end
3329
+
3330
+ class Redis
3331
+ module XXH3
3332
+ MASK64: untyped
3333
+
3334
+ MASK32: 4294967295
3335
+
3336
+ PRIME32_1: 2654435761
3337
+
3338
+ PRIME32_2: 2246822519
3339
+
3340
+ PRIME32_3: 3266489917
3341
+
3342
+ PRIME64_1: 11400714785074694791
3343
+
3344
+ PRIME64_2: 14029467366897019727
3345
+
3346
+ PRIME64_3: 1609587929392839161
3347
+
3348
+ PRIME64_4: 9650029242287828579
3349
+
3350
+ PRIME64_5: 2870177450012600261
3351
+
3352
+ PRIME_MX1: 1609587791953885689
3353
+
3354
+ PRIME_MX2: 11507291218515648293
3355
+
3356
+ SECRET: untyped
3357
+
3358
+ STRIPE_LEN: 64
3359
+
3360
+ SECRET_CONSUME_RATE: 8
3361
+
3362
+ SECRET_SIZE_MIN: 136
3363
+
3364
+ MIDSIZE_MAX: 240
3365
+
3366
+ MIDSIZE_STARTOFFSET: 3
3367
+
3368
+ MIDSIZE_LASTOFFSET: 17
3369
+
3370
+ SECRET_LASTACC_START: 7
3371
+
3372
+ SECRET_MERGEACCS_START: 11
3373
+
3374
+ INIT_ACC: ::Array[untyped]
3375
+
3376
+ IMPLEMENTATION_CONSTANTS: ::Array[:MASK64 | :MASK32 | :PRIME32_1 | :PRIME32_2 | :PRIME32_3 | :PRIME64_1 | :PRIME64_2 | :PRIME64_3 | :PRIME64_4 | :PRIME64_5 | :PRIME_MX1 | :PRIME_MX2 | :SECRET | :STRIPE_LEN | :SECRET_CONSUME_RATE | :SECRET_SIZE_MIN | :MIDSIZE_MAX | :MIDSIZE_STARTOFFSET | :MIDSIZE_LASTOFFSET | :SECRET_LASTACC_START | :SECRET_MERGEACCS_START | :INIT_ACC]
3377
+
3378
+ def self.hexdigest: (untyped value) -> String
3379
+
3380
+ private
3381
+
3382
+ def self.hash64: (untyped input) -> untyped
3383
+
3384
+ def self.read_le32: (untyped str, untyped offset) -> untyped
3385
+
3386
+ def self.read_le64: (untyped str, untyped offset) -> untyped
3387
+
3388
+ def self.rotl64: (untyped x, untyped r) -> untyped
3389
+
3390
+ def self.swap64: (untyped x) -> untyped
3391
+
3392
+ def self.mul128_fold64: (untyped lhs, untyped rhs) -> untyped
3393
+
3394
+ def self.xorshift64: (untyped v, untyped shift) -> untyped
3395
+
3396
+ def self.avalanche: (untyped h64) -> untyped
3397
+
3398
+ def self.avalanche64: (untyped h) -> untyped
3399
+
3400
+ def self.rrmxmx: (untyped h64, untyped len) -> untyped
3401
+
3402
+ def self.len_0to16_64b: (untyped input, untyped len) -> untyped
3403
+
3404
+ def self.len_1to3_64b: (untyped input, untyped len) -> untyped
3405
+
3406
+ def self.len_4to8_64b: (untyped input, untyped len) -> untyped
3407
+
3408
+ def self.len_9to16_64b: (untyped input, untyped len) -> untyped
3409
+
3410
+ def self.mix16b: (untyped input, untyped input_off, untyped secret_off) -> untyped
3411
+
3412
+ def self.len_17to128_64b: (untyped input, untyped len) -> untyped
3413
+
3414
+ def self.len_129to240_64b: (untyped input, untyped len) -> untyped
3415
+
3416
+ def self.hash_long_64b: (untyped input, untyped len) -> untyped
3417
+
3418
+ def self.hash_long_internal_loop: (untyped acc, untyped input, untyped len) -> untyped
3419
+
3420
+ def self.accumulate: (untyped acc, untyped input, untyped input_off, untyped nb_stripes) -> untyped
3421
+
3422
+ def self.accumulate_512: (untyped acc, untyped input, untyped input_off, untyped secret_off) -> untyped
3423
+
3424
+ def self.scramble_acc: (untyped acc, untyped secret_off) -> untyped
3425
+
3426
+ def self.finalize_long_64b: (untyped acc, untyped len) -> untyped
3427
+
3428
+ def self.merge_accs: (untyped acc, untyped secret_off, untyped start) -> untyped
3429
+ end
1369
3430
  end