redis-rbs 0.1.4 → 0.2.0

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 +29 -5
  3. data/sig/redis.rbs +2494 -433
  4. metadata +13 -7
data/sig/redis.rbs CHANGED
@@ -1,4 +1,4 @@
1
- # Generated from redis 5.4.1. Do not edit by hand.
1
+ # Generated from redis 6.1.1. Do not edit by hand.
2
2
  class Redis
3
3
  type key = String | Symbol
4
4
  type geo_coordinates = [String | Float, String | Float]
@@ -9,6 +9,12 @@ class Redis
9
9
 
10
10
  @options: untyped
11
11
 
12
+ @inherit_socket: untyped
13
+
14
+ @himport_auto_prepare: untyped
15
+
16
+ @himport_fieldsets: untyped
17
+
12
18
  @subscription_client: untyped
13
19
 
14
20
  @client: untyped
@@ -51,12 +57,22 @@ class Redis
51
57
 
52
58
  def inspect: () -> ::String
53
59
 
54
- def dup: () -> untyped
60
+ def dup: (**untyped option_overrides) -> untyped
55
61
 
56
62
  def connection: () -> { host: untyped, port: untyped, db: untyped, id: untyped, location: ::String }
57
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
+
58
72
  private
59
73
 
74
+ def build_client: () -> untyped
75
+
60
76
  def initialize_client: (untyped options) -> untyped
61
77
 
62
78
  def synchronize: () { (untyped) -> untyped } -> untyped
@@ -65,6 +81,8 @@ class Redis
65
81
 
66
82
  def send_blocking_command: (untyped command, untyped timeout) { (?) -> untyped } -> untyped
67
83
 
84
+ def with_protocol_fallback: () { () -> untyped } -> untyped
85
+
68
86
  def _subscription: (untyped method, untyped timeout, untyped channels, untyped block) -> untyped
69
87
  end
70
88
 
@@ -74,12 +92,14 @@ class Redis
74
92
 
75
93
  ERROR_MAPPING: ::Hash[untyped, untyped]
76
94
 
77
- def self.config: (**untyped kwargs) -> untyped
95
+ def self.config: (?protocol: ::Integer, **untyped kwargs) -> untyped
78
96
 
79
- def self.sentinel: (**untyped kwargs) -> untyped
97
+ def self.sentinel: (?protocol: ::Integer, **untyped kwargs) -> untyped
80
98
 
81
99
  def self.translate_error!: (untyped error, ?mapping: untyped) -> untyped
82
100
 
101
+ def self.resp3_unsupported?: (untyped error) -> (true | untyped)
102
+
83
103
  private
84
104
 
85
105
  def self.translate_error_class: (untyped error_class, ?mapping: untyped) -> untyped
@@ -94,6 +114,8 @@ class Redis
94
114
 
95
115
  def db: () -> untyped
96
116
 
117
+ def protocol: () -> untyped
118
+
97
119
  def host: () -> (untyped | nil)
98
120
 
99
121
  def port: () -> (untyped | nil)
@@ -104,8 +126,6 @@ class Redis
104
126
 
105
127
  def password: () -> untyped
106
128
 
107
- def ensure_connected: (?retryable: bool) { (?) -> untyped } -> untyped
108
-
109
129
  def call_v: (untyped command) { (?) -> untyped } -> untyped
110
130
 
111
131
  def blocking_call_v: (untyped timeout, untyped command) { (?) -> untyped } -> untyped
@@ -120,8 +140,12 @@ end
120
140
 
121
141
  class Redis
122
142
  module Commands
143
+ include Arrays
144
+
123
145
  include Bitmaps
124
146
 
147
+ include Bless
148
+
125
149
  include Cluster
126
150
 
127
151
  include Connection
@@ -136,10 +160,14 @@ class Redis
136
160
 
137
161
  include Lists
138
162
 
163
+ include Json
164
+
139
165
  include Pubsub
140
166
 
141
167
  include Scripting
142
168
 
169
+ include Search
170
+
143
171
  include Server
144
172
 
145
173
  include Sets
@@ -152,8 +180,12 @@ class Redis
152
180
 
153
181
  include Transactions
154
182
 
183
+ include VectorSets
184
+
155
185
  Boolify: untyped
156
186
 
187
+ BoolifyBoolean: untyped
188
+
157
189
  BoolifySet: untyped
158
190
 
159
191
  Hashify: untyped
@@ -162,10 +194,22 @@ class Redis
162
194
 
163
195
  Floatify: untyped
164
196
 
197
+ FloatifyArray: untyped
198
+
165
199
  FloatifyPair: untyped
166
200
 
167
201
  FloatifyPairs: untyped
168
202
 
203
+ HashifyArrayInfo: untyped
204
+
205
+ HashifyVectorEmbeddingRaw: untyped
206
+
207
+ HashifyVectorScores: untyped
208
+
209
+ HashifyVectorScoresWithAttribs: untyped
210
+
211
+ HashifyVectorLinksWithScores: untyped
212
+
169
213
  HashifyInfo: untyped
170
214
 
171
215
  HashifyStreams: untyped
@@ -190,6 +234,14 @@ class Redis
190
234
 
191
235
  HashifyClusterSlaves: untyped
192
236
 
237
+ HashifyClusterSlotStats: untyped
238
+
239
+ HashifyHotkeys: untyped
240
+
241
+ HashifyFunctionList: untyped
242
+
243
+ HashifyFunctionStats: untyped
244
+
193
245
  Noop: untyped
194
246
 
195
247
  def call: (*untyped command) { (?) -> untyped } -> untyped
@@ -202,6 +254,52 @@ class Redis
202
254
  end
203
255
  end
204
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
+
205
303
  class Redis
206
304
  module Commands
207
305
  module Bitmaps
@@ -214,6 +312,24 @@ class Redis
214
312
  def bitop: (String operation, String destkey, *(String | Array[String]) keys) -> Integer
215
313
 
216
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]
217
333
  end
218
334
  end
219
335
  end
@@ -247,7 +363,7 @@ end
247
363
  class Redis
248
364
  module Commands
249
365
  module Geo
250
- def geoadd: (String key, *Array[untyped] member) -> Integer
366
+ def geoadd: (String key, *Array[untyped] member, ?nx: bool, ?xx: bool, ?ch: bool) -> Integer
251
367
 
252
368
  def geohash: (String key, (String | Array[String]) member) -> Array[(String | nil)]
253
369
 
@@ -257,11 +373,15 @@ class Redis
257
373
 
258
374
  def geopos: (String key, (String | Array[String]) member) -> Array[::Redis::geo_coordinates?]
259
375
 
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
379
+
260
380
  def geodist: (untyped key, untyped member1, untyped member2, ?::String unit) -> (String | nil)
261
381
 
262
382
  private
263
383
 
264
- 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
265
385
  end
266
386
  end
267
387
  end
@@ -271,7 +391,7 @@ class Redis
271
391
  module Hashes
272
392
  def hlen: (String key) -> Integer
273
393
 
274
- def hset: (String key, *(Array[String] | Hash[String, String]) attrs) -> Integer
394
+ def hset: (String key, *(Array[String] | Hash[String, String]) attrs) -> (0 | untyped)
275
395
 
276
396
  def hsetnx: (String key, String field, String value) -> bool
277
397
 
@@ -289,6 +409,12 @@ class Redis
289
409
 
290
410
  def hdel: (String key, *untyped fields) -> Integer
291
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
+
292
418
  def hexists: (String key, String field) -> bool
293
419
 
294
420
  def hincrby: (String key, String field, Integer increment) -> Integer
@@ -301,9 +427,39 @@ class Redis
301
427
 
302
428
  def hgetall: (String key) -> Hash[String, String]
303
429
 
304
- 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])
305
431
 
306
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
307
463
  end
308
464
  end
309
465
  end
@@ -353,7 +509,7 @@ class Redis
353
509
 
354
510
  def del: (*(String | Array[String]) keys) -> (0 | untyped)
355
511
 
356
- def unlink: (*(String | Array[String]) keys) -> Integer
512
+ def unlink: (*(String | Array[String]) keys) -> (0 | untyped)
357
513
 
358
514
  def exists: (*(String | Array[String]) keys) -> Integer
359
515
 
@@ -375,11 +531,15 @@ class Redis
375
531
 
376
532
  def sort: (String key, ?by: untyped?, ?limit: untyped?, ?get: untyped?, ?order: untyped?, ?store: untyped?) -> (Array[String] | Array[Array[String]] | Integer)
377
533
 
534
+ def sort_ro: (String key, ?by: untyped?, ?limit: untyped?, ?get: untyped?, ?order: untyped?) -> (Array[String] | Array[Array[String]])
535
+
378
536
  def type: (String key) -> String
379
537
 
380
538
  private
381
539
 
382
- 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
383
543
  end
384
544
  end
385
545
  end
@@ -391,6 +551,10 @@ class Redis
391
551
 
392
552
  def lmove: (String source, String destination, (String | Symbol) where_source, (String | Symbol) where_destination) -> (nil | String)
393
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
+
394
558
  def blmove: (String source, String destination, (String | Symbol) where_source, (String | Symbol) where_destination, ?timeout: ::Integer) -> (nil | String)
395
559
 
396
560
  def lpush: (String key, (String | Array[String]) value) -> Integer
@@ -433,6 +597,8 @@ class Redis
433
597
 
434
598
  def _bpop: (untyped cmd, untyped args) { (?) -> untyped } -> untyped
435
599
 
600
+ def _movem_amount_args: (untyped count, untyped exactly, untyped order) -> untyped
601
+
436
602
  def _normalize_move_wheres: (untyped where_source, untyped where_destination) -> ::Array[untyped]
437
603
  end
438
604
  end
@@ -440,795 +606,2564 @@ end
440
606
 
441
607
  class Redis
442
608
  module Commands
443
- module Pubsub
444
- def publish: (untyped channel, untyped message) -> untyped
445
-
446
- def subscribed?: () -> bool
447
-
448
- def subscribe: (*untyped channels) { (?) -> untyped } -> untyped
449
-
450
- def subscribe_with_timeout: (untyped timeout, *untyped channels) { (?) -> untyped } -> untyped
451
-
452
- def unsubscribe: (*untyped channels) -> untyped
453
-
454
- def psubscribe: (*untyped channels) { (?) -> untyped } -> untyped
455
-
456
- def psubscribe_with_timeout: (untyped timeout, *untyped channels) { (?) -> untyped } -> untyped
457
-
458
- def punsubscribe: (*untyped channels) -> untyped
609
+ module Json
610
+ JSON_SET_FPHA_TYPES: ::Array["BF16" | "FP16" | "FP32" | "FP64"]
459
611
 
460
- def pubsub: (untyped subcommand, *untyped args) -> untyped
612
+ NumincrbyNormalize: untyped
461
613
 
462
- def spublish: (untyped channel, untyped message) -> untyped
614
+ TypeNormalize: untyped
463
615
 
464
- 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)
465
617
 
466
- def ssubscribe_with_timeout: (untyped timeout, *untyped channels) { (?) -> untyped } -> untyped
618
+ def json_get: (String key, *Array[String] paths, ?raw: bool) -> untyped
467
619
 
468
- def sunsubscribe: (*untyped channels) -> untyped
469
- end
470
- end
471
- end
620
+ def json_mset: (*Array[untyped] args, ?raw: bool) -> String
472
621
 
473
- class Redis
474
- module Commands
475
- module Scripting
476
- def script: (String subcommand, *Array[String] args) -> untyped
622
+ def json_mget: (*Array[String] keys, String path, ?raw: bool) -> Array[untyped]
477
623
 
478
- def eval: (*untyped args) -> untyped
624
+ def json_del: (String key, ?String path) -> Integer
479
625
 
480
- def evalsha: (*untyped args) -> untyped
626
+ def json_forget: (String key, ?String path) -> Integer
481
627
 
482
- private
628
+ def json_clear: (String key, ?String path) -> Integer
483
629
 
484
- def _eval: (untyped cmd, untyped args) -> untyped
485
- end
486
- end
487
- end
630
+ def json_merge: (String key, String path, untyped value, ?raw: bool) -> String
488
631
 
489
- class Redis
490
- module Commands
491
- module Server
492
- def bgrewriteaof: () -> String
632
+ def json_arrappend: (String key, String path, *Array[untyped] values, ?raw: bool) -> (Array[Integer] | Integer)
493
633
 
494
- def bgsave: () -> String
634
+ def json_arrindex: (String key, String path, untyped value, ?start: Integer?, ?stop: Integer?, ?raw: bool) -> (Array[Integer] | Integer)
495
635
 
496
- 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)
497
637
 
498
- def client: ((String | Symbol) subcommand, *untyped args) -> (String | Hash[untyped, untyped])
638
+ def json_arrlen: (String key, ?String path) -> (Array[Integer] | Integer | nil)
499
639
 
500
- def dbsize: () -> Integer
640
+ def json_arrpop: (String key, ?String path, ?Integer index, ?raw: bool) -> untyped
501
641
 
502
- def flushall: (?Hash[untyped, untyped] options) -> String
642
+ def json_arrtrim: (String key, String path, Integer start, Integer stop) -> (Array[Integer] | Integer)
503
643
 
504
- def flushdb: (?Hash[untyped, untyped] options) -> String
644
+ def json_numincrby: (String key, String path, Numeric number) -> (Array[Numeric] | Numeric | nil)
505
645
 
506
- def info: (?(String | Symbol) cmd) -> Hash[String, String]
646
+ def json_type: (String key, ?String path) -> (Array[String] | String | nil)
507
647
 
508
- def lastsave: () -> Integer
648
+ def json_objkeys: (String key, ?String path) -> Array[untyped]
509
649
 
510
- def monitor: () { (untyped) -> untyped } -> untyped
650
+ def json_objlen: (String key, ?String path) -> (Array[Integer] | Integer | nil)
511
651
 
512
- def save: () -> String
652
+ def json_strlen: (String key, ?String path) -> (Array[Integer] | Integer | nil)
513
653
 
514
- def shutdown: () -> untyped
654
+ def json_strappend: (String key, String path, String value, ?raw: bool) -> (Array[Integer] | Integer | nil)
515
655
 
516
- def slaveof: (untyped host, untyped port) -> untyped
656
+ def json_toggle: (String key, String path) -> untyped
517
657
 
518
- def slowlog: (String subcommand, ?Integer length) -> (Array[String] | Integer | String)
658
+ def json_debug_memory: (String key, ?String path) -> (Array[Integer] | Integer)
519
659
 
520
- def sync: () -> untyped
660
+ private
521
661
 
522
- def time: () -> Array[Integer]
662
+ def json_path?: (untyped path) -> bool
663
+ end
664
+ end
665
+ end
523
666
 
524
- def debug: (*untyped args) -> untyped
667
+ class Redis
668
+ module Commands
669
+ module Search
525
670
  end
526
671
  end
527
672
  end
528
673
 
529
674
  class Redis
530
675
  module Commands
531
- module Sets
532
- def scard: (String key) -> Integer
676
+ module Search
677
+ class AggregateRequest
678
+ @query: untyped
533
679
 
534
- def sadd: (String key, *untyped members) -> Integer
680
+ @with_cursor: untyped
535
681
 
536
- def sadd?: (String key, *untyped members) -> bool
682
+ @cursor_count: untyped
537
683
 
538
- def srem: (String key, *untyped members) -> Integer
684
+ @cursor_max_idle: untyped
539
685
 
540
- def srem?: (String key, *untyped members) -> bool
686
+ @dialect: untyped
541
687
 
542
- def spop: (String key, ?Integer count) -> String
688
+ @steps: untyped
543
689
 
544
- def srandmember: (String key, ?Integer count) -> String
690
+ @add_scores: untyped
545
691
 
546
- 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
547
693
 
548
- def sismember: (String key, String member) -> bool
694
+ def group_by: (untyped fields, *untyped reducers) -> self
549
695
 
550
- def smismember: (String key, *(String | Array[String]) members) -> Array[bool]
696
+ def sort_by: (*untyped sort_by_fields, ?max: untyped?) -> self
551
697
 
552
- def smembers: (String key) -> Array[String]
698
+ def apply: (untyped expressions) -> self
553
699
 
554
- def sdiff: (*(String | Array[String]) keys) -> Array[String]
700
+ def limit: (untyped offset, untyped num) -> self
555
701
 
556
- def sdiffstore: (String destination, *(String | Array[String]) keys) -> Integer
702
+ def filter: (untyped expression) -> self
557
703
 
558
- def sinter: (*(String | Array[String]) keys) -> Array[String]
704
+ def load: (*untyped fields) -> self
559
705
 
560
- def sinterstore: (String destination, *(String | Array[String]) keys) -> Integer
706
+ def add_scores: (?add_scores: bool) -> self
561
707
 
562
- def sunion: (*(String | Array[String]) keys) -> Array[String]
708
+ def dialect: (untyped dialect_version) -> self
563
709
 
564
- def sunionstore: (String destination, *(String | Array[String]) keys) -> Integer
710
+ def to_redis_args: () -> Array[untyped]
711
+ end
565
712
 
566
- def sscan: (untyped key, (String | Integer) cursor, **Hash[untyped, untyped] options) -> (String | Array[String])
713
+ class Asc
714
+ @name: untyped
567
715
 
568
- def sscan_each: (untyped key, **Hash[untyped, untyped] options) ?{ (?) -> untyped } -> Enumerator[untyped, untyped]
569
- end
570
- end
571
- end
716
+ @order: untyped
572
717
 
573
- class Redis
574
- module Commands
575
- module SortedSets
576
- def zcard: (String key) -> Integer
718
+ attr_reader name: untyped
577
719
 
578
- 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
579
721
 
580
- def zincrby: (String key, Float increment, String member) -> Float
722
+ def initialize: (untyped name) -> void
723
+ end
581
724
 
582
- def zrem: (String key, (String | Array[String]) member) -> (0 | untyped)
725
+ class Desc
726
+ @name: untyped
583
727
 
584
- def zpopmax: (untyped key, ?untyped? count) -> Array[Array[(String | Float)]]
728
+ @order: untyped
585
729
 
586
- def zpopmin: (untyped key, ?untyped? count) -> Array[Array[(String | Float)]]
730
+ attr_reader name: untyped
587
731
 
588
- def bzmpop: (untyped timeout, *untyped keys, ?modifier: ::String, ?count: untyped?) -> Array[(String | Array[(String | Float)])]
732
+ attr_reader order: untyped
589
733
 
590
- def zmpop: (*untyped keys, ?modifier: ::String, ?count: untyped?) -> Array[(String | Array[(String | Float)])]
734
+ def initialize: (untyped name) -> void
735
+ end
591
736
 
592
- def bzpopmax: (*untyped args) -> nil
737
+ class Reducers
738
+ @name: untyped
593
739
 
594
- def bzpopmin: (*untyped args) -> nil
740
+ @args: untyped
595
741
 
596
- def zscore: (String key, String member) -> Float?
742
+ @alias_name: untyped
597
743
 
598
- def zmscore: (String key, *(String | Array[String]) members) -> Array[Float]
744
+ def self.count: (?alias_name: untyped?) -> Reducers
599
745
 
600
- 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
601
747
 
602
- 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
603
749
 
604
- 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
605
751
 
606
- def zrevrange: (untyped key, untyped start, untyped stop, ?withscores: bool, ?with_scores: untyped) -> untyped
752
+ def self.min: (untyped property, ?alias_name: untyped?) -> Reducers
607
753
 
608
- def zrank: (String key, String member, ?withscore: bool, ?with_score: untyped) -> (Integer | [Integer, Float])
754
+ def self.max: (untyped property, ?alias_name: untyped?) -> Reducers
609
755
 
610
- def zrevrank: (String key, String member, ?withscore: bool, ?with_score: untyped) -> (Integer | [Integer, Float])
756
+ def self.avg: (untyped property, ?alias_name: untyped?) -> Reducers
611
757
 
612
- def zremrangebyrank: (String key, Integer start, Integer stop) -> Integer
758
+ def self.stddev: (untyped property, ?alias_name: untyped?) -> Reducers
613
759
 
614
- def zlexcount: (String key, String min, String max) -> Integer
760
+ def self.quantile: (untyped property, untyped quantile, ?alias_name: untyped?) -> Reducers
615
761
 
616
- 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
617
763
 
618
- 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
619
765
 
620
- 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
621
767
 
622
- 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
623
769
 
624
- def zremrangebyscore: (String key, String min, String max) -> Integer
770
+ def self.collect_fields_tokens: (untyped fields) -> (::Array["FIELDS" | "*"] | untyped)
625
771
 
626
- def zcount: (String key, String min, String max) -> Integer
772
+ def self.collect_sortby_tokens: (untyped sort_by) -> (::Array[untyped] | untyped)
627
773
 
628
- def zinter: (*untyped args) -> (Array[String] | Array[[String, Float]])
774
+ attr_reader name: untyped
629
775
 
630
- def zinterstore: (*untyped args) -> Integer
776
+ attr_reader args: untyped
631
777
 
632
- def zunion: (*untyped args) -> (Array[String] | Array[[String, Float]])
778
+ attr_reader alias_name: untyped
633
779
 
634
- def zunionstore: (*untyped args) -> Integer
780
+ def initialize: (untyped name, *untyped args, ?alias_name: untyped?) -> void
635
781
 
636
- def zdiff: (*(String | Array[String]) keys, ?with_scores: bool) -> (Array[String] | Array[[String, Float]])
782
+ def as: (untyped alias_name) -> self
783
+ end
637
784
 
638
- def zdiffstore: (*untyped args) -> Integer
785
+ class Cursor
786
+ @cid: untyped
639
787
 
640
- def zscan: (untyped key, (String | Integer) cursor, **Hash[untyped, untyped] options) -> (String | Array[[String, Float]])
788
+ @count: untyped
641
789
 
642
- def zscan_each: (untyped key, **Hash[untyped, untyped] options) ?{ (?) -> untyped } -> Enumerator[untyped, untyped]
790
+ attr_accessor cid: untyped
643
791
 
644
- private
792
+ attr_accessor count: untyped
645
793
 
646
- def _zsets_operation: (untyped cmd, *untyped keys, ?weights: untyped?, ?aggregate: untyped?, ?with_scores: bool) -> untyped
794
+ def initialize: (untyped cid) -> void
647
795
 
648
- def _zsets_operation_store: (untyped cmd, untyped destination, untyped keys, ?weights: untyped?, ?aggregate: untyped?) -> untyped
796
+ def build_args: () -> Array[String]
797
+ end
649
798
  end
650
799
  end
651
800
  end
652
801
 
653
802
  class Redis
654
803
  module Commands
655
- module Streams
656
- def xinfo: (untyped subcommand, untyped key, ?untyped? group) -> Array[Hash[untyped, untyped]]
657
-
658
- 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
659
809
 
660
- 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
661
815
 
662
- def xdel: (untyped key, *untyped ids) -> Integer
816
+ @type: untyped
663
817
 
664
- def xrange: (untyped key, ?::String start, ?::String range_end, ?count: untyped?) -> Array[Array[(String | Hash[untyped, untyped])]]
818
+ @query: untyped
665
819
 
666
- def xrevrange: (untyped key, ?::String range_end, ?::String start, ?count: untyped?) -> Array[Array[(String | Hash[untyped, untyped])]]
820
+ @options: untyped
667
821
 
668
- def xlen: (untyped key) -> Integer
822
+ @alias_name: untyped
669
823
 
670
- def xread: (untyped keys, untyped ids, ?count: untyped?, ?block: untyped?) -> Hash[String, Hash[String, Hash[untyped, untyped]]]
824
+ attr_reader name: untyped
671
825
 
672
- def xgroup: (untyped subcommand, untyped key, untyped group, ?untyped? id_or_consumer, ?mkstream: bool) -> Integer
826
+ attr_reader type: untyped
673
827
 
674
- 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
675
829
 
676
- def xack: (untyped key, untyped group, *untyped ids) -> Integer
830
+ attr_reader alias_name: untyped
677
831
 
678
- def xclaim: (untyped key, untyped group, untyped consumer, untyped min_idle_time, *untyped ids, **untyped opts) -> Array[String]
832
+ attr_accessor query: untyped
679
833
 
680
- 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
681
835
 
682
- def xpending: (untyped key, untyped group, *untyped args, ?idle: untyped?) -> Array[Hash[untyped, untyped]]
836
+ def to_args: () -> Array[untyped]
837
+ end
683
838
 
684
- private
839
+ class TagField < Field
840
+ def initialize: ((String | Symbol) name, ?(Query | nil) query, **untyped options) -> void
685
841
 
686
- def _xread: (untyped args, untyped keys, untyped ids, untyped blocking_timeout_msec) -> untyped
687
- end
688
- end
689
- end
842
+ def eq: (String value) -> Query
843
+ end
690
844
 
691
- class Redis
692
- module Commands
693
- module Strings
694
- def decr: (String key) -> Integer
845
+ class TextField < Field
846
+ def initialize: ((String | Symbol) name, ?(Query | nil) query, **untyped options) -> void
695
847
 
696
- def decrby: (String key, Integer decrement) -> Integer
848
+ def to_args: () -> Array[untyped]
697
849
 
698
- def incr: (String key) -> Integer
850
+ def match: (String pattern, ?raw: bool) -> Query
851
+ end
699
852
 
700
- def incrby: (String key, Integer increment) -> Integer
853
+ class NumericField < Field
854
+ def initialize: ((String | Symbol) name, ?(Query | nil) query, **untyped options) -> void
701
855
 
702
- def incrbyfloat: (String key, Float increment) -> Float
856
+ def gt: (Numeric value) -> Query
703
857
 
704
- 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
705
859
 
706
- def setex: (String key, Integer ttl, String value) -> String
860
+ def between: (Numeric min, Numeric max) -> Query
861
+ end
707
862
 
708
- 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
709
866
 
710
- def setnx: (String key, String value) -> bool
867
+ class GeoShapeField < Field
868
+ @coord_system: untyped
711
869
 
712
- def mset: (*Array[String] args) -> String
870
+ FLAT: "FLAT"
713
871
 
714
- def mapped_mset: (Hash[untyped, untyped] hash) -> String
872
+ SPHERICAL: "SPHERICAL"
715
873
 
716
- def msetnx: (*Array[String] args) -> bool
874
+ def initialize: ((String | Symbol) name, ?(String | nil) coord_system, **untyped options) -> void
717
875
 
718
- def mapped_msetnx: (Hash[untyped, untyped] hash) -> bool
876
+ def to_args: () -> Array[untyped]
877
+ end
719
878
 
720
- def get: (String key) -> String?
879
+ class VectorField < Field
880
+ @algorithm: untyped
721
881
 
722
- def mget: (*Array[String] keys) { (?) -> untyped } -> Array[String]
882
+ @attributes: untyped
723
883
 
724
- def mapped_mget: (*Array[String] keys) -> Hash[untyped, untyped]
884
+ attr_reader algorithm: untyped
725
885
 
726
- def setrange: (String key, Integer offset, String value) -> Integer
886
+ attr_reader attributes: untyped
727
887
 
728
- 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
729
889
 
730
- def append: (String key, String value) -> Integer
890
+ def add_attribute: ((String | Symbol) key, untyped value) -> untyped
731
891
 
732
- def getset: (String key, String value) -> String?
892
+ def to_args: () -> Array[untyped]
733
893
 
734
- def getdel: (String key) -> String?
894
+ def args: () -> Array[untyped]
735
895
 
736
- def getex: (String key, ?ex: untyped?, ?px: untyped?, ?exat: untyped?, ?pxat: untyped?, ?persist: bool) -> String?
896
+ private
737
897
 
738
- def strlen: (String key) -> Integer
898
+ def field_args: () -> untyped
899
+ end
739
900
  end
740
901
  end
741
902
  end
742
903
 
743
904
  class Redis
744
905
  module Commands
745
- module Transactions
746
- def multi: () { (untyped) -> untyped } -> untyped
906
+ module Search
907
+ class HybridSearchQuery
908
+ @query_string: untyped
747
909
 
748
- def watch: (*(String | Array[String]) keys) ?{ (untyped) -> untyped } -> String
910
+ @scorer: untyped
749
911
 
750
- def unwatch: () -> String
912
+ @yield_score_as: untyped
751
913
 
752
- def exec: () -> untyped
914
+ attr_reader query_string: untyped
753
915
 
754
- 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
755
1042
  end
756
1043
  end
757
1044
  end
758
1045
 
759
1046
  class Redis
760
- class Distributed
761
- @tag: untyped
1047
+ module Commands
1048
+ module Search
1049
+ class Index
1050
+ @redis: untyped
762
1051
 
763
- @ring: untyped
1052
+ @name: untyped
764
1053
 
765
- @node_configs: untyped
1054
+ @prefix: untyped
766
1055
 
767
- @default_options: untyped
1056
+ @schema: untyped
768
1057
 
769
- @subscribed_node: untyped
1058
+ @storage_type: untyped
770
1059
 
771
- @watch_key: untyped
1060
+ @stopwords: untyped
772
1061
 
773
- class CannotDistribute < RuntimeError
774
- @command: untyped
1062
+ attr_reader name: untyped
775
1063
 
776
- def initialize: (untyped command) -> void
1064
+ attr_reader prefix: untyped
777
1065
 
778
- 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
779
1104
  end
1105
+ end
1106
+ end
780
1107
 
781
- attr_reader ring: untyped
1108
+ class Redis
1109
+ module Commands
1110
+ module Search
1111
+ module IndexType
1112
+ HASH: "HASH"
782
1113
 
783
- def initialize: (untyped node_configs, ?::Hash[untyped, untyped] options) -> void
1114
+ JSON: "JSON"
1115
+ end
784
1116
 
785
- def node_for: (untyped key) -> untyped
1117
+ class IndexDefinition
1118
+ @args: untyped
786
1119
 
787
- def nodes: () -> untyped
1120
+ @index_type: untyped
788
1121
 
789
- def add_node: (untyped options) -> untyped
1122
+ @prefixes: untyped
790
1123
 
791
- def select: (untyped db) -> untyped
1124
+ attr_reader args: untyped
792
1125
 
793
- def ping: () -> untyped
1126
+ attr_reader prefixes: untyped
794
1127
 
795
- def echo: (untyped value) -> untyped
1128
+ attr_reader index_type: untyped
796
1129
 
797
- 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
798
1131
 
799
- def close: () -> nil
1132
+ private
800
1133
 
801
- def bgsave: () -> untyped
1134
+ def append_index_type: (untyped index_type) -> (untyped | untyped | untyped | nil)
802
1135
 
803
- def dbsize: () -> untyped
1136
+ def append_prefix: (untyped prefix) -> (untyped | nil)
804
1137
 
805
- def flushall: () -> untyped
1138
+ def append_filter: (untyped filter) -> (untyped | nil)
806
1139
 
807
- def flushdb: () -> untyped
1140
+ def append_language: (untyped language_field, untyped language) -> untyped
808
1141
 
809
- def info: (?untyped? cmd) -> untyped
1142
+ def append_score: (untyped score_field, untyped score) -> untyped
810
1143
 
811
- def lastsave: () -> untyped
1144
+ def append_payload: (untyped payload_field) -> (untyped | nil)
1145
+ end
1146
+ end
1147
+ end
1148
+ end
812
1149
 
813
- 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
814
1154
 
815
- 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
816
1156
 
817
- def time: () -> untyped
1157
+ def ft_search: (untyped index_name, untyped query, **untyped options) -> Search::SearchResult
818
1158
 
819
- def persist: (untyped key) -> untyped
1159
+ def ft_info: (untyped index_name) -> Hash[untyped, untyped]
820
1160
 
821
- def expire: (untyped key, untyped seconds, **untyped kwargs) -> untyped
1161
+ def ft_dropindex: (untyped index_name, ?delete_documents: bool) -> String
822
1162
 
823
- def expireat: (untyped key, untyped unix_time, **untyped kwargs) -> untyped
1163
+ def ft_aggregate: (untyped index_name, untyped query, *untyped args) -> Search::AggregateResult
824
1164
 
825
- def expiretime: (untyped key) -> untyped
1165
+ def ft_explain: (untyped index_name, untyped query) -> String
826
1166
 
827
- def ttl: (untyped key) -> untyped
1167
+ def ft_alter: (untyped index_name, untyped field_or_args) -> String
828
1168
 
829
- def pexpire: (untyped key, untyped milliseconds, **untyped kwarg) -> untyped
1169
+ def ft_cursor_read: (untyped index_name, untyped cursor_id) -> Search::AggregateResult
830
1170
 
831
- def pexpireat: (untyped key, untyped ms_unix_time, **untyped kwarg) -> untyped
1171
+ def ft_cursor_del: (untyped index_name, untyped cursor_id) -> String
832
1172
 
833
- def pexpiretime: (untyped key) -> untyped
1173
+ def ft_profile: (untyped index_name, *untyped args) -> Array[untyped]
834
1174
 
835
- 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
836
1176
 
837
- def dump: (untyped key) -> String?
1177
+ def ft_sugadd: (untyped key, untyped string, untyped score, ?::Hash[untyped, untyped] options) -> Integer
838
1178
 
839
- 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]
840
1180
 
841
- def migrate: (untyped _key, untyped _options) -> untyped
1181
+ def ft_suglen: (untyped key) -> Integer
842
1182
 
843
- def del: (*untyped args) -> untyped
1183
+ def ft_sugdel: (untyped key, untyped string) -> Integer
844
1184
 
845
- 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]]]
846
1186
 
847
- def exists: (*untyped args) -> untyped
1187
+ def ft_synupdate: (untyped index_name, untyped group_id, *untyped terms, ?skip_initial_scan: bool) -> String
848
1188
 
849
- def exists?: (*untyped args) -> (true | false)
1189
+ def ft_syndump: (untyped index_name) -> Hash[String, Array[String]]
850
1190
 
851
- def keys: (?::String glob) -> untyped
1191
+ def ft_tagvals: (untyped index_name, untyped field_name) -> Array[String]
852
1192
 
853
- def move: (untyped key, untyped db) -> untyped
1193
+ def ft_aliasadd: (untyped alias_name, untyped index_name) -> String
854
1194
 
855
- def copy: (untyped source, untyped destination, **untyped options) -> untyped
1195
+ def ft_aliasupdate: (untyped alias_name, untyped index_name) -> String
856
1196
 
857
- def randomkey: () -> String?
1197
+ def ft_aliasdel: (untyped alias_name) -> String
858
1198
 
859
- def rename: (untyped old_name, untyped new_name) -> untyped
1199
+ def ft_aliaslist: (untyped index_name) -> Array[String]
860
1200
 
861
- def renamenx: (untyped old_name, untyped new_name) -> untyped
1201
+ def ft_dictadd: (untyped dict_name, *untyped terms) -> Integer
862
1202
 
863
- def sort: (untyped key, **untyped options) -> untyped
1203
+ def ft_dictdel: (untyped dict_name, *untyped terms) -> Integer
864
1204
 
865
- def type: (untyped key) -> untyped
1205
+ def ft_dictdump: (untyped dict_name) -> Array[String]
866
1206
 
867
- def decr: (untyped key) -> untyped
1207
+ def ft_config_set: (untyped option, untyped value) -> String
868
1208
 
869
- def decrby: (untyped key, untyped decrement) -> untyped
1209
+ def ft_config_get: (untyped option) -> Hash[untyped, untyped]
1210
+ end
1211
+ end
1212
+ end
870
1213
 
871
- def incr: (untyped key) -> untyped
1214
+ class Redis
1215
+ module Commands
1216
+ module Search
1217
+ class Query
1218
+ @base: untyped
872
1219
 
873
- def incrby: (untyped key, untyped increment) -> untyped
1220
+ @predicate_collection: untyped
874
1221
 
875
- def incrbyfloat: (untyped key, untyped increment) -> untyped
1222
+ @filters: untyped
876
1223
 
877
- def set: (untyped key, untyped value, **untyped options) -> untyped
1224
+ @options: untyped
878
1225
 
879
- def setex: (untyped key, untyped ttl, untyped value) -> untyped
1226
+ @return_fields: untyped
880
1227
 
881
- def psetex: (untyped key, untyped ttl, untyped value) -> untyped
1228
+ @return_fields_decode: untyped
882
1229
 
883
- def setnx: (untyped key, untyped value) -> untyped
1230
+ @summarize_options: untyped
884
1231
 
885
- def mset: (*untyped) -> untyped
1232
+ @highlight_options: untyped
886
1233
 
887
- def mapped_mset: (untyped _hash) -> untyped
1234
+ @language: untyped
888
1235
 
889
- def msetnx: (*untyped) -> untyped
1236
+ @verbatim: untyped
890
1237
 
891
- def mapped_msetnx: (untyped _hash) -> untyped
1238
+ @no_stopwords: untyped
892
1239
 
893
- def get: (untyped key) -> String?
1240
+ @with_payloads: untyped
894
1241
 
895
- def getdel: (untyped key) -> String?
1242
+ @slop: untyped
896
1243
 
897
- def getex: (untyped key, **untyped options) -> String?
1244
+ @in_order: untyped
898
1245
 
899
- def mget: (*untyped keys) -> untyped
1246
+ @no_content: untyped
900
1247
 
901
- def mapped_mget: (*untyped keys) -> untyped
1248
+ @limit_ids: untyped
902
1249
 
903
- def setrange: (untyped key, untyped offset, untyped value) -> untyped
1250
+ @geo_filters: untyped
904
1251
 
905
- def getrange: (untyped key, untyped start, untyped stop) -> String
1252
+ @expander: untyped
906
1253
 
907
- def setbit: (untyped key, untyped offset, untyped value) -> untyped
1254
+ @timeout: untyped
908
1255
 
909
- def getbit: (untyped key, untyped offset) -> untyped
1256
+ @limit_fields: untyped
910
1257
 
911
- def append: (untyped key, untyped value) -> untyped
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
2850
+
2851
+ attr_reader payload: untyped
912
2852
 
913
- 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
914
2856
 
915
- def bitop: (untyped operation, untyped destkey, *untyped keys) -> untyped
2857
+ def keyspace_notifications: (?error_handler: untyped?, ?reconnect_attempts: untyped) -> KeyspaceNotifications::Manager
2858
+ end
916
2859
 
917
- 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@" }
918
2864
 
919
- def getset: (untyped key, untyped value) -> String?
2865
+ def self?.keyspace: (untyped key, ?db: ::Integer) -> String
920
2866
 
921
- def strlen: (untyped key) -> untyped
2867
+ def self?.keyevent: (untyped event, ?db: ::Integer) -> String
922
2868
 
923
- def []: (untyped key) -> untyped
2869
+ def self?.subkeyspace: (untyped key, ?db: ::Integer) -> String
924
2870
 
925
- def []=: (untyped key, untyped value) -> untyped
2871
+ def self?.subkeyevent: (untyped event, ?db: ::Integer) -> String
926
2872
 
927
- def llen: (untyped key) -> untyped
2873
+ def self?.subkeyspaceitem: (untyped key, untyped subkey, ?db: ::Integer) -> String
928
2874
 
929
- def lmove: (untyped source, untyped destination, untyped where_source, untyped where_destination) -> untyped
2875
+ def self?.subkeyspaceevent: (untyped event, untyped key, ?db: ::Integer) -> String
930
2876
 
931
- def blmove: (untyped source, untyped destination, untyped where_source, untyped where_destination, ?timeout: ::Integer) -> untyped
2877
+ def self?.glob_escape: (untyped value) -> String
932
2878
 
933
- def lpush: (untyped key, untyped value) -> untyped
2879
+ def self?.build: (untyped family, untyped db, untyped suffix) -> untyped
934
2880
 
935
- def lpushx: (untyped key, untyped value) -> untyped
2881
+ def self?.validate_db!: (untyped db) -> (nil | untyped)
2882
+ end
2883
+ end
2884
+ end
936
2885
 
937
- def rpush: (untyped key, untyped value) -> untyped
2886
+ class Redis
2887
+ module KeyspaceNotifications
2888
+ class Manager
2889
+ @redis: untyped
938
2890
 
939
- def rpushx: (untyped key, untyped value) -> untyped
2891
+ @error_handler: untyped
940
2892
 
941
- def lpop: (untyped key, ?untyped? count) -> untyped
2893
+ @reconnect_attempts: untyped
942
2894
 
943
- def rpop: (untyped key, ?untyped? count) -> untyped
2895
+ @handlers: untyped
944
2896
 
945
- def rpoplpush: (untyped source, untyped destination) -> untyped
2897
+ @confirmed: untyped
946
2898
 
947
- def _bpop: (untyped cmd, untyped args) -> untyped
2899
+ @confirm_seq: untyped
948
2900
 
949
- def blpop: (*untyped args) -> untyped
2901
+ @pending_acks: untyped
950
2902
 
951
- def bzpopmax: (*untyped args) -> untyped
2903
+ @default_handler: untyped
952
2904
 
953
- def bzpopmin: (*untyped args) -> untyped
2905
+ @reconnect_handler: untyped
954
2906
 
955
- def brpop: (*untyped args) -> untyped
2907
+ @lock: untyped
956
2908
 
957
- def brpoplpush: (untyped source, untyped destination, **untyped options) -> untyped
2909
+ @cond: untyped
958
2910
 
959
- def lindex: (untyped key, untyped index) -> String?
2911
+ @thread: untyped
960
2912
 
961
- def linsert: (untyped key, untyped where, untyped pivot, untyped value) -> untyped
2913
+ @listener_error: untyped
962
2914
 
963
- def lrange: (untyped key, untyped start, untyped stop) -> untyped
2915
+ @listener_error_epoch: untyped
964
2916
 
965
- def lrem: (untyped key, untyped count, untyped value) -> untyped
2917
+ @reconnect_now: untyped
966
2918
 
967
- def lset: (untyped key, untyped index, untyped value) -> untyped
2919
+ @removing: untyped
968
2920
 
969
- def ltrim: (untyped key, untyped start, untyped stop) -> untyped
2921
+ @unvalidated: untyped
970
2922
 
971
- def blmpop: (untyped timeout, *untyped keys, ?modifier: ::String, ?count: untyped?) -> untyped
2923
+ @probe_inflight: untyped
972
2924
 
973
- def lmpop: (*untyped keys, ?modifier: ::String, ?count: untyped?) -> untyped
2925
+ @opening_pending: untyped
974
2926
 
975
- def scard: (untyped key) -> untyped
2927
+ @opening_seq: untyped
976
2928
 
977
- def sadd: (untyped key, *untyped members) -> untyped
2929
+ @establishing: untyped
978
2930
 
979
- def sadd?: (untyped key, *untyped members) -> bool
2931
+ @rejected_wait: untyped
980
2932
 
981
- def srem: (untyped key, *untyped members) -> untyped
2933
+ @probe_replay: untyped
982
2934
 
983
- def srem?: (untyped key, *untyped members) -> bool
2935
+ @resume_reconnecting: untyped
984
2936
 
985
- def spop: (untyped key, ?untyped? count) -> untyped
2937
+ @issue_seq: untyped
986
2938
 
987
- def srandmember: (untyped key, ?untyped? count) -> untyped
2939
+ @inflight_waits: untyped
988
2940
 
989
- def smove: (untyped source, untyped destination, untyped member) -> untyped
2941
+ @session_seq: untyped
990
2942
 
991
- def sismember: (untyped key, untyped member) -> untyped
2943
+ @closing: untyped
992
2944
 
993
- def smismember: (untyped key, *untyped members) -> untyped
2945
+ @closed: untyped
994
2946
 
995
- def smembers: (untyped key) -> untyped
2947
+ DEFAULT_CLOSE_TIMEOUT: 2
996
2948
 
997
- def sscan: (untyped key, untyped cursor, **untyped options) -> untyped
2949
+ Registration: untyped
998
2950
 
999
- def sscan_each: (untyped key, **untyped options) { (?) -> untyped } -> untyped
2951
+ DEFAULT_RECONNECT_ATTEMPTS: ::Array[::Float | 1 | 2 | 4 | 8 | 16 | 30]
1000
2952
 
1001
- def sdiff: (*untyped keys) -> untyped
2953
+ SUBSCRIBE_ACK_TIMEOUT: 5
1002
2954
 
1003
- def sdiffstore: (untyped destination, *untyped keys) -> untyped
2955
+ def initialize: (redis: untyped, ?error_handler: untyped?, ?reconnect_attempts: untyped) -> void
1004
2956
 
1005
- def sinter: (*untyped keys) -> untyped
2957
+ def subscribe: (*untyped patterns, ?handler: untyped?) { (?) -> untyped } -> (nil | untyped)
1006
2958
 
1007
- def sinterstore: (untyped destination, *untyped keys) -> untyped
2959
+ def unsubscribe: (*untyped patterns) -> nil
1008
2960
 
1009
- def sunion: (*untyped keys) -> untyped
2961
+ def subscribe_keyspace: (?::String key, ?db: ::Integer) { (?) -> untyped } -> untyped
1010
2962
 
1011
- def sunionstore: (untyped destination, *untyped keys) -> untyped
2963
+ def subscribe_keyevent: (?::String event, ?db: ::Integer) { (?) -> untyped } -> untyped
1012
2964
 
1013
- def zcard: (untyped key) -> untyped
2965
+ def subscribe_subkeyspace: (?::String key, ?db: ::Integer) { (?) -> untyped } -> untyped
1014
2966
 
1015
- def zadd: (untyped key, *untyped args) -> untyped
2967
+ def subscribe_subkeyevent: (?::String event, ?db: ::Integer) { (?) -> untyped } -> untyped
1016
2968
 
1017
- def zincrby: (untyped key, untyped increment, untyped member) -> untyped
2969
+ def subscribe_subkeyspaceitem: (untyped key, ?::String subkey, ?db: ::Integer) { (?) -> untyped } -> untyped
1018
2970
 
1019
- def zrem: (untyped key, untyped member) -> untyped
2971
+ def subscribe_subkeyspaceevent: (?::String event, ?::String key, ?db: ::Integer) { (?) -> untyped } -> untyped
1020
2972
 
1021
- def zscore: (untyped key, untyped member) -> Float?
2973
+ def on_notification: () { (?) -> untyped } -> nil
1022
2974
 
1023
- def zrandmember: (untyped key, ?untyped? count, **untyped options) -> untyped
2975
+ def on_error: () { (?) -> untyped } -> nil
1024
2976
 
1025
- def zmscore: (untyped key, *untyped members) -> untyped
2977
+ def on_reconnect: () { (?) -> untyped } -> nil
1026
2978
 
1027
- def bzmpop: (untyped timeout, *untyped keys, ?modifier: ::String, ?count: untyped?) -> untyped
2979
+ def patterns: () -> Array[String]
1028
2980
 
1029
- def zmpop: (*untyped keys, ?modifier: ::String, ?count: untyped?) -> untyped
2981
+ def registered_patterns: () -> Array[String]
1030
2982
 
1031
- def zrange: (untyped key, untyped start, untyped stop, **untyped options) -> untyped
2983
+ def subscribed?: () -> bool
1032
2984
 
1033
- def zrangestore: (untyped dest_key, untyped src_key, untyped start, untyped stop, **untyped options) -> untyped
2985
+ def closed?: () -> bool
1034
2986
 
1035
- def zrevrange: (untyped key, untyped start, untyped stop, **untyped options) -> untyped
2987
+ def close: (?timeout: untyped) -> nil
1036
2988
 
1037
- def zrank: (untyped key, untyped member, **untyped options) -> untyped
2989
+ alias stop close
1038
2990
 
1039
- def zrevrank: (untyped key, untyped member, **untyped options) -> untyped
2991
+ private
1040
2992
 
1041
- def zremrangebyrank: (untyped key, untyped start, untyped stop) -> untyped
2993
+ def listening?: () -> bool
1042
2994
 
1043
- def zrangebyscore: (untyped key, untyped min, untyped max, **untyped options) -> untyped
2995
+ def listener_thread?: () -> bool
1044
2996
 
1045
- def zrevrangebyscore: (untyped key, untyped max, untyped min, **untyped options) -> untyped
2997
+ def interruptible_backoff: (untyped delay) -> (true | false)
1046
2998
 
1047
- def zremrangebyscore: (untyped key, untyped min, untyped max) -> untyped
2999
+ def restart_dead_listener: () -> (nil | untyped)
1048
3000
 
1049
- def zcount: (untyped key, untyped min, untyped max) -> untyped
3001
+ def start_listener: (untyped patterns) -> untyped
1050
3002
 
1051
- def zinter: (*untyped keys, **untyped options) -> untyped
3003
+ def run_listener: (untyped patterns, ?reconnecting: bool) -> untyped
1052
3004
 
1053
- def zinterstore: (untyped destination, *untyped keys, **untyped options) -> untyped
3005
+ def listen: (untyped patterns, untyped reconnected) -> untyped
1054
3006
 
1055
- def zunion: (*untyped keys, **untyped options) -> untyped
3007
+ def dispatch: (untyped pattern, untyped channel, untyped payload) -> untyped
1056
3008
 
1057
- 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
1058
3010
 
1059
- def zdiff: (*untyped keys, **untyped options) -> untyped
3011
+ def reissue_unconfirmed: (untyped patterns, untyped installed, untyped issue_seq, untyped stale_confirmations) -> untyped
1060
3012
 
1061
- def zdiffstore: (untyped destination, *untyped keys, **untyped options) -> untyped
3013
+ def confirmed_or_replaced?: (untyped pattern, untyped installed, untyped stale_confirmations) -> bool
1062
3014
 
1063
- def hlen: (untyped key) -> untyped
3015
+ def fresh_confirmation?: (untyped pattern, untyped stale_confirmations) -> bool
1064
3016
 
1065
- def hset: (untyped key, *untyped attrs) -> untyped
3017
+ def wait_for_removal: (untyped patterns, untyped owned) -> nil
1066
3018
 
1067
- def hsetnx: (untyped key, untyped field, untyped value) -> untyped
3019
+ def punsubscribe_quietly: (untyped patterns) -> (false | untyped)
1068
3020
 
1069
- def hmset: (untyped key, *untyped attrs) -> untyped
3021
+ def psubscribe_quietly: (untyped patterns, ?untyped? batch_seq) -> (false | untyped)
1070
3022
 
1071
- def mapped_hmset: (untyped key, untyped hash) -> untyped
3023
+ def track_pending_acks: (untyped patterns, ?untyped? batch_seq) -> untyped
1072
3024
 
1073
- def hget: (untyped key, untyped field) -> String?
3025
+ def track_opening_acks: (untyped patterns) -> untyped
1074
3026
 
1075
- def hmget: (untyped key, *untyped fields) -> untyped
3027
+ def mark_probes: (untyped patterns) -> untyped
1076
3028
 
1077
- def mapped_hmget: (untyped key, *untyped fields) -> untyped
3029
+ def issue_probes: (untyped patterns) -> untyped
1078
3030
 
1079
- def hrandfield: (untyped key, ?untyped? count, **untyped options) -> untyped
3031
+ def write_to_session: (untyped verb, untyped patterns) -> untyped
1080
3032
 
1081
- def hdel: (untyped key, *untyped fields) -> untyped
3033
+ def rollback_registration: (untyped previous, untyped installed) -> (nil | untyped)
1082
3034
 
1083
- def hexists: (untyped key, untyped field) -> untyped
3035
+ def revert_subscription: (untyped pattern) -> untyped
1084
3036
 
1085
- def hincrby: (untyped key, untyped field, untyped increment) -> untyped
3037
+ def fire_reconnect: () -> untyped
1086
3038
 
1087
- def hincrbyfloat: (untyped key, untyped field, untyped increment) -> untyped
3039
+ def report_error: (untyped error) -> untyped
1088
3040
 
1089
- def hkeys: (untyped key) -> untyped
3041
+ def force_close_redis: () -> untyped
1090
3042
 
1091
- def hvals: (untyped key) -> untyped
3043
+ def translate_error: (untyped error) -> untyped
3044
+ end
3045
+ end
3046
+ end
1092
3047
 
1093
- def hgetall: (untyped key) -> untyped
3048
+ class Redis
3049
+ module KeyspaceNotifications
3050
+ class Notification
3051
+ @family: untyped
1094
3052
 
1095
- def publish: (untyped channel, untyped message) -> untyped
3053
+ @db: untyped
1096
3054
 
1097
- def subscribed?: () -> bool
3055
+ @event: untyped
1098
3056
 
1099
- def subscribe: (untyped channel, *untyped channels) { (?) -> untyped } -> untyped
3057
+ @key: untyped
1100
3058
 
1101
- def unsubscribe: (*untyped channels) -> untyped
3059
+ @subkeys: untyped
1102
3060
 
1103
- def psubscribe: (*untyped channels) { (?) -> untyped } -> untyped
3061
+ @channel: untyped
1104
3062
 
1105
- def punsubscribe: (*untyped channels) -> untyped
3063
+ @payload: untyped
1106
3064
 
1107
- def watch: (*untyped keys) { (?) -> untyped } -> untyped
3065
+ @pattern: untyped
1108
3066
 
1109
- def unwatch: () -> untyped
3067
+ FAMILIES: ::Array[:keyspace | :keyevent | :subkeyspace | :subkeyevent | :subkeyspaceitem | :subkeyspaceevent]
1110
3068
 
1111
- def pipelined: () -> untyped
3069
+ attr_reader family: untyped
1112
3070
 
1113
- def multi: () { (?) -> untyped } -> untyped
3071
+ attr_reader db: untyped
1114
3072
 
1115
- def exec: () -> untyped
3073
+ attr_reader event: untyped
1116
3074
 
1117
- def discard: () -> untyped
3075
+ attr_reader key: untyped
1118
3076
 
1119
- def script: (untyped subcommand, *untyped args) -> untyped
3077
+ attr_reader subkeys: untyped
1120
3078
 
1121
- def pfadd: (untyped key, untyped member) -> untyped
3079
+ attr_reader channel: untyped
1122
3080
 
1123
- def pfcount: (*untyped keys) -> untyped
3081
+ attr_reader payload: untyped
1124
3082
 
1125
- def pfmerge: (untyped dest_key, *untyped source_key) -> untyped
3083
+ attr_reader pattern: untyped
1126
3084
 
1127
- 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
1128
3086
 
1129
- def eval: (*untyped args) -> untyped
3087
+ def subkey: () -> (String | nil)
1130
3088
 
1131
- def evalsha: (*untyped args) -> untyped
3089
+ def subkey_family?: () -> bool
1132
3090
 
1133
- def inspect: () -> ::String
3091
+ def to_h: () -> { family: untyped, db: untyped, event: untyped, key: untyped, subkeys: untyped, channel: untyped, payload: untyped, pattern: untyped }
1134
3092
 
1135
- def dup: () -> untyped
3093
+ def ==: (untyped other) -> bool
1136
3094
 
1137
- def on_each_node: (untyped command, *untyped args) -> untyped
3095
+ alias eql? ==
1138
3096
 
1139
- def node_index_for: (untyped key) -> untyped
3097
+ def hash: () -> Integer
1140
3098
 
1141
- def key_tag: (untyped key) -> untyped
3099
+ private
1142
3100
 
1143
- def ensure_same_node: (untyped command, untyped keys) { (untyped) -> untyped } -> untyped
3101
+ def frozen_copy: (untyped value) -> untyped
3102
+ end
1144
3103
  end
1145
3104
  end
1146
3105
 
1147
3106
  class Redis
1148
- class BaseError < StandardError
1149
- end
1150
-
1151
- class ProtocolError < BaseError
1152
- def initialize: (untyped reply_type) -> void
1153
- end
1154
-
1155
- class CommandError < BaseError
1156
- end
3107
+ module KeyspaceNotifications
3108
+ module Parser
3109
+ HEADER: ::Regexp
1157
3110
 
1158
- class PermissionError < CommandError
1159
- end
3111
+ COMMA: 44
1160
3112
 
1161
- class WrongTypeError < CommandError
1162
- end
3113
+ PIPE: 124
1163
3114
 
1164
- class OutOfMemoryError < CommandError
1165
- end
3115
+ def self?.parse: (untyped channel, untyped payload, ?pattern: untyped?) -> (nil | untyped)
1166
3116
 
1167
- class NoScriptError < CommandError
1168
- end
3117
+ def self?.parse_keyspace: (untyped rest, untyped payload, untyped _channel) -> ::Array[untyped | ::Array[untyped]]
1169
3118
 
1170
- class BaseConnectionError < BaseError
1171
- end
3119
+ def self?.parse_keyevent: (untyped rest, untyped payload, untyped _channel) -> ::Array[untyped | ::Array[untyped]]
1172
3120
 
1173
- class CannotConnectError < BaseConnectionError
1174
- end
3121
+ def self?.parse_subkeyspace: (untyped rest, untyped payload, untyped channel) -> ::Array[untyped]
1175
3122
 
1176
- class ConnectionError < BaseConnectionError
1177
- end
3123
+ def self?.parse_subkeyevent: (untyped rest, untyped payload, untyped channel) -> ::Array[untyped]
1178
3124
 
1179
- class TimeoutError < BaseConnectionError
1180
- end
3125
+ def self?.parse_subkeyspaceitem: (untyped rest, untyped payload, untyped channel) -> ::Array[untyped | ::Array[untyped]]
1181
3126
 
1182
- class InheritedError < BaseConnectionError
1183
- end
3127
+ def self?.parse_subkeyspaceevent: (untyped rest, untyped payload, untyped channel) -> ::Array[untyped]
1184
3128
 
1185
- class ReadOnlyError < BaseConnectionError
1186
- end
3129
+ def self?.read_length_prefixed: (untyped buf, untyped pos, untyped channel) -> ::Array[untyped]
1187
3130
 
1188
- class InvalidClientOptionError < BaseError
1189
- end
3131
+ def self?.parse_subkey_list: (untyped buf, untyped pos, untyped channel) -> untyped
1190
3132
 
1191
- class SubscriptionError < BaseError
3133
+ def self?.error: (untyped message, untyped channel, untyped payload) -> untyped
3134
+ end
1192
3135
  end
1193
3136
  end
1194
3137
 
1195
3138
  class Redis
1196
- class HashRing
1197
- @replicas: untyped
1198
-
1199
- @ring: untyped
1200
-
1201
- @nodes: untyped
1202
-
1203
- @sorted_keys: untyped
1204
-
1205
- POINTS_PER_SERVER: 160
1206
-
1207
- attr_reader ring: untyped
3139
+ module LibIdentity
3140
+ MARKER: "redis-rb_v"
1208
3141
 
1209
- attr_reader sorted_keys: untyped
3142
+ LIB_NAME: "redis-rb"
1210
3143
 
1211
- attr_reader replicas: untyped
3144
+ SEPARATOR: ";"
1212
3145
 
1213
- attr_reader nodes: untyped
3146
+ OWN_INFO: ::String
1214
3147
 
1215
- def initialize: (?untyped nodes, ?untyped replicas) -> void
3148
+ OWN_PREFIX: ::String
1216
3149
 
1217
- def add_node: (untyped node) -> untyped
3150
+ INVALID_CHARS: ::Regexp
1218
3151
 
1219
- def remove_node: (untyped node) -> untyped
3152
+ def self.driver_info: (?untyped? downstream) -> untyped
1220
3153
 
1221
- def get_node: (untyped key) -> untyped
3154
+ def self.ours?: (untyped info) -> bool
1222
3155
 
1223
- 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]]
1224
3157
 
1225
3158
  private
1226
3159
 
1227
- def hash_for: (untyped key) -> untyped
3160
+ def self.combine: (untyped downstream) -> untyped
1228
3161
 
1229
- def server_hash_for: (untyped key) -> untyped
3162
+ def self.lib_name: (untyped info) -> untyped
1230
3163
 
1231
- def binary_search: (untyped ary, untyped value) -> untyped
3164
+ public
3165
+
3166
+ def connection_prelude: () -> untyped
1232
3167
  end
1233
3168
  end
1234
3169
 
@@ -1236,13 +3171,15 @@ class Redis
1236
3171
  class PipelinedConnection
1237
3172
  @pipeline: untyped
1238
3173
 
3174
+ @client: untyped
3175
+
1239
3176
  @futures: untyped
1240
3177
 
1241
3178
  @exception: untyped
1242
3179
 
1243
3180
  attr_accessor db: untyped
1244
3181
 
1245
- def initialize: (untyped pipeline, ?untyped futures, ?exception: bool) -> void
3182
+ def initialize: (untyped pipeline, ?untyped futures, ?client: untyped, ?exception: bool) -> void
1246
3183
 
1247
3184
  include Commands
1248
3185
 
@@ -1269,6 +3206,8 @@ class Redis
1269
3206
 
1270
3207
  class FutureNotReady < RuntimeError
1271
3208
  def initialize: () -> void
3209
+
3210
+ def exception: (*untyped) -> untyped
1272
3211
  end
1273
3212
 
1274
3213
  class Future < BasicObject
@@ -1288,6 +3227,8 @@ class Redis
1288
3227
 
1289
3228
  def _set: (untyped object) -> untyped
1290
3229
 
3230
+ def _set_unless_error: (untyped object) -> (untyped | nil)
3231
+
1291
3232
  def value: () -> untyped
1292
3233
 
1293
3234
  def is_a?: (untyped other) -> bool
@@ -1314,6 +3255,14 @@ class Redis
1314
3255
 
1315
3256
  @write_monitor: untyped
1316
3257
 
3258
+ @pending_writes: untyped
3259
+
3260
+ @pending_writes_lock: untyped
3261
+
3262
+ @closed: untyped
3263
+
3264
+ READ_SLICE: ::Float
3265
+
1317
3266
  def initialize: (untyped client) -> void
1318
3267
 
1319
3268
  def call_v: (untyped command) -> untyped
@@ -1339,11 +3288,21 @@ class Redis
1339
3288
  def close: () -> nil
1340
3289
 
1341
3290
  def subscription: (untyped start, untyped stop, untyped channels, untyped block, ?::Integer timeout) -> untyped
3291
+
3292
+ def next_event: (untyped timeout) -> (nil | untyped)
3293
+
3294
+ def guarded_read: (untyped timeout) -> untyped
3295
+
3296
+ def data_ready?: (untyped slice) -> bool
3297
+
3298
+ def writer_priority_wait: () -> untyped
1342
3299
  end
1343
3300
 
1344
3301
  class Subscription
1345
3302
  @callbacks: untyped
1346
3303
 
3304
+ attr_reader callbacks: untyped
3305
+
1347
3306
  def initialize: () { (untyped) -> untyped } -> void
1348
3307
 
1349
3308
  def subscribe: () { (?) -> untyped } -> untyped
@@ -1367,5 +3326,107 @@ class Redis
1367
3326
  end
1368
3327
 
1369
3328
  class Redis
1370
- VERSION: "5.4.1"
3329
+ VERSION: "6.1.1"
3330
+ end
3331
+
3332
+ class Redis
3333
+ module XXH3
3334
+ MASK64: untyped
3335
+
3336
+ MASK32: 4294967295
3337
+
3338
+ PRIME32_1: 2654435761
3339
+
3340
+ PRIME32_2: 2246822519
3341
+
3342
+ PRIME32_3: 3266489917
3343
+
3344
+ PRIME64_1: 11400714785074694791
3345
+
3346
+ PRIME64_2: 14029467366897019727
3347
+
3348
+ PRIME64_3: 1609587929392839161
3349
+
3350
+ PRIME64_4: 9650029242287828579
3351
+
3352
+ PRIME64_5: 2870177450012600261
3353
+
3354
+ PRIME_MX1: 1609587791953885689
3355
+
3356
+ PRIME_MX2: 11507291218515648293
3357
+
3358
+ SECRET: untyped
3359
+
3360
+ STRIPE_LEN: 64
3361
+
3362
+ SECRET_CONSUME_RATE: 8
3363
+
3364
+ SECRET_SIZE_MIN: 136
3365
+
3366
+ MIDSIZE_MAX: 240
3367
+
3368
+ MIDSIZE_STARTOFFSET: 3
3369
+
3370
+ MIDSIZE_LASTOFFSET: 17
3371
+
3372
+ SECRET_LASTACC_START: 7
3373
+
3374
+ SECRET_MERGEACCS_START: 11
3375
+
3376
+ INIT_ACC: ::Array[untyped]
3377
+
3378
+ 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]
3379
+
3380
+ def self.hexdigest: (untyped value) -> String
3381
+
3382
+ private
3383
+
3384
+ def self.hash64: (untyped input) -> untyped
3385
+
3386
+ def self.read_le32: (untyped str, untyped offset) -> untyped
3387
+
3388
+ def self.read_le64: (untyped str, untyped offset) -> untyped
3389
+
3390
+ def self.rotl64: (untyped x, untyped r) -> untyped
3391
+
3392
+ def self.swap64: (untyped x) -> untyped
3393
+
3394
+ def self.mul128_fold64: (untyped lhs, untyped rhs) -> untyped
3395
+
3396
+ def self.xorshift64: (untyped v, untyped shift) -> untyped
3397
+
3398
+ def self.avalanche: (untyped h64) -> untyped
3399
+
3400
+ def self.avalanche64: (untyped h) -> untyped
3401
+
3402
+ def self.rrmxmx: (untyped h64, untyped len) -> untyped
3403
+
3404
+ def self.len_0to16_64b: (untyped input, untyped len) -> untyped
3405
+
3406
+ def self.len_1to3_64b: (untyped input, untyped len) -> untyped
3407
+
3408
+ def self.len_4to8_64b: (untyped input, untyped len) -> untyped
3409
+
3410
+ def self.len_9to16_64b: (untyped input, untyped len) -> untyped
3411
+
3412
+ def self.mix16b: (untyped input, untyped input_off, untyped secret_off) -> untyped
3413
+
3414
+ def self.len_17to128_64b: (untyped input, untyped len) -> untyped
3415
+
3416
+ def self.len_129to240_64b: (untyped input, untyped len) -> untyped
3417
+
3418
+ def self.hash_long_64b: (untyped input, untyped len) -> untyped
3419
+
3420
+ def self.hash_long_internal_loop: (untyped acc, untyped input, untyped len) -> untyped
3421
+
3422
+ def self.accumulate: (untyped acc, untyped input, untyped input_off, untyped nb_stripes) -> untyped
3423
+
3424
+ def self.accumulate_512: (untyped acc, untyped input, untyped input_off, untyped secret_off) -> untyped
3425
+
3426
+ def self.scramble_acc: (untyped acc, untyped secret_off) -> untyped
3427
+
3428
+ def self.finalize_long_64b: (untyped acc, untyped len) -> untyped
3429
+
3430
+ def self.merge_accs: (untyped acc, untyped secret_off, untyped start) -> untyped
3431
+ end
1371
3432
  end