redis-rbs 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -26
  3. data/sig/redis.rbs +1466 -201
  4. metadata +7 -7
data/sig/redis.rbs CHANGED
@@ -1,12 +1,20 @@
1
- # Generated from redis 5.4.1. Do not edit by hand.
1
+ # Generated from redis 6.0.0. Do not edit by hand.
2
2
  class Redis
3
3
  type key = String | Symbol
4
+ type geo_coordinates = [String | Float, String | Float]
5
+ type geo_search_reply = Array[String | Array[String | Float | Integer | geo_coordinates]]
4
6
  type scalar = nil | bool | Integer | Float | String | Symbol
5
7
  type reply = scalar | Array[reply] | Hash[scalar, reply]
6
8
  @monitor: untyped
7
9
 
8
10
  @options: untyped
9
11
 
12
+ @inherit_socket: untyped
13
+
14
+ @himport_auto_prepare: untyped
15
+
16
+ @himport_fieldsets: untyped
17
+
10
18
  @subscription_client: untyped
11
19
 
12
20
  @client: untyped
@@ -53,8 +61,18 @@ class Redis
53
61
 
54
62
  def connection: () -> { host: untyped, port: untyped, db: untyped, id: untyped, location: ::String }
55
63
 
64
+ def himport_prepare: (untyped fieldset_name, *untyped fields) -> untyped
65
+
66
+ def himport_set: (untyped key, untyped fieldset_name, *untyped values) -> untyped
67
+
68
+ def himport_discard: (untyped fieldset_name) -> untyped
69
+
70
+ def himport_discard_all: () -> untyped
71
+
56
72
  private
57
73
 
74
+ def build_client: () -> untyped
75
+
58
76
  def initialize_client: (untyped options) -> untyped
59
77
 
60
78
  def synchronize: () { (untyped) -> untyped } -> untyped
@@ -63,6 +81,8 @@ class Redis
63
81
 
64
82
  def send_blocking_command: (untyped command, untyped timeout) { (?) -> untyped } -> untyped
65
83
 
84
+ def with_protocol_fallback: () { () -> untyped } -> untyped
85
+
66
86
  def _subscription: (untyped method, untyped timeout, untyped channels, untyped block) -> untyped
67
87
  end
68
88
 
@@ -72,366 +92,1481 @@ class Redis
72
92
 
73
93
  ERROR_MAPPING: ::Hash[untyped, untyped]
74
94
 
75
- def self.config: (**untyped kwargs) -> untyped
95
+ def self.config: (?protocol: ::Integer, **untyped kwargs) -> untyped
76
96
 
77
- def self.sentinel: (**untyped kwargs) -> untyped
97
+ def self.sentinel: (?protocol: ::Integer, **untyped kwargs) -> untyped
78
98
 
79
99
  def self.translate_error!: (untyped error, ?mapping: untyped) -> untyped
80
100
 
101
+ def self.resp3_unsupported?: (untyped error) -> (true | untyped)
102
+
81
103
  private
82
104
 
83
105
  def self.translate_error_class: (untyped error_class, ?mapping: untyped) -> untyped
84
106
 
85
- public
107
+ public
108
+
109
+ def id: () -> untyped
110
+
111
+ def server_url: () -> untyped
112
+
113
+ def timeout: () -> untyped
114
+
115
+ def db: () -> untyped
116
+
117
+ def protocol: () -> untyped
118
+
119
+ def host: () -> (untyped | nil)
120
+
121
+ def port: () -> (untyped | nil)
122
+
123
+ def path: () -> untyped
124
+
125
+ def username: () -> untyped
126
+
127
+ def password: () -> untyped
128
+
129
+ def call_v: (untyped command) { (?) -> untyped } -> untyped
130
+
131
+ def blocking_call_v: (untyped timeout, untyped command) { (?) -> untyped } -> untyped
132
+
133
+ def pipelined: (?exception: bool) -> untyped
134
+
135
+ def multi: (?watch: untyped?) -> untyped
136
+
137
+ def inherit_socket!: () -> untyped
138
+ end
139
+ end
140
+
141
+ class Redis
142
+ module Commands
143
+ include Bitmaps
144
+
145
+ include Cluster
146
+
147
+ include Connection
148
+
149
+ include Geo
150
+
151
+ include Hashes
152
+
153
+ include HyperLogLog
154
+
155
+ include Keys
156
+
157
+ include Lists
158
+
159
+ include Json
160
+
161
+ include Pubsub
162
+
163
+ include Scripting
164
+
165
+ include Search
166
+
167
+ include Server
168
+
169
+ include Sets
170
+
171
+ include SortedSets
172
+
173
+ include Streams
174
+
175
+ include Strings
176
+
177
+ include Transactions
178
+
179
+ Boolify: untyped
180
+
181
+ BoolifySet: untyped
182
+
183
+ Hashify: untyped
184
+
185
+ Pairify: untyped
186
+
187
+ Floatify: untyped
188
+
189
+ FloatifyPair: untyped
190
+
191
+ FloatifyPairs: untyped
192
+
193
+ HashifyInfo: untyped
194
+
195
+ HashifyStreams: untyped
196
+
197
+ EMPTY_STREAM_RESPONSE: ::Array[nil]
198
+
199
+ HashifyStreamEntries: untyped
200
+
201
+ HashifyStreamAutoclaim: untyped
202
+
203
+ HashifyStreamAutoclaimJustId: untyped
204
+
205
+ HashifyStreamPendings: untyped
206
+
207
+ HashifyStreamPendingDetails: untyped
208
+
209
+ HashifyClusterNodeInfo: untyped
210
+
211
+ HashifyClusterSlots: untyped
212
+
213
+ HashifyClusterNodes: untyped
214
+
215
+ HashifyClusterSlaves: untyped
216
+
217
+ Noop: untyped
218
+
219
+ def call: (*untyped command) { (?) -> untyped } -> untyped
220
+
221
+ def sentinel: (String subcommand, *Array[String] args) -> (Array[String] | Hash[String, String] | String)
222
+
223
+ private
224
+
225
+ def method_missing: (*untyped command) -> untyped
226
+ end
227
+ end
228
+
229
+ class Redis
230
+ module Commands
231
+ module Bitmaps
232
+ def setbit: (String key, Integer offset, Integer value) -> Integer
233
+
234
+ def getbit: (String key, Integer offset) -> Integer
235
+
236
+ def bitcount: (String key, ?::Integer start, ?::Integer stop, ?scale: (String | Symbol)?) -> Integer
237
+
238
+ def bitop: (String operation, String destkey, *(String | Array[String]) keys) -> Integer
239
+
240
+ def bitpos: (String key, Integer bit, ?Integer start, ?Integer stop, ?scale: (String | Symbol)?) -> Integer
241
+ end
242
+ end
243
+ end
244
+
245
+ class Redis
246
+ module Commands
247
+ module Cluster
248
+ def cluster: (untyped subcommand, *untyped args) -> untyped
249
+
250
+ def asking: () -> String
251
+ end
252
+ end
253
+ end
254
+
255
+ class Redis
256
+ module Commands
257
+ module Connection
258
+ def auth: (*Array[String] args) -> String
259
+
260
+ def ping: (?String message) -> String
261
+
262
+ def echo: (String value) -> String
263
+
264
+ def select: (Integer db) -> String
265
+
266
+ def quit: () -> String
267
+ end
268
+ end
269
+ end
270
+
271
+ class Redis
272
+ module Commands
273
+ module Geo
274
+ def geoadd: (String key, *Array[untyped] member, ?nx: bool, ?xx: bool, ?ch: bool) -> Integer
275
+
276
+ def geohash: (String key, (String | Array[String]) member) -> Array[(String | nil)]
277
+
278
+ def georadius: (*Array[untyped] args, **untyped geoptions) -> (::Redis::geo_search_reply | Integer)
279
+
280
+ def georadiusbymember: (*Array[untyped] args, **untyped geoptions) -> (::Redis::geo_search_reply | Integer)
281
+
282
+ def geopos: (String key, (String | Array[String]) member) -> Array[::Redis::geo_coordinates?]
283
+
284
+ 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
285
+
286
+ 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
287
+
288
+ def geodist: (untyped key, untyped member1, untyped member2, ?::String unit) -> (String | nil)
289
+
290
+ private
291
+
292
+ def _geoarguments: (*untyped args, ?options: untyped?, ?sort: untyped?, ?count: untyped?, ?count_any: bool) -> untyped
293
+ end
294
+ end
295
+ end
296
+
297
+ class Redis
298
+ module Commands
299
+ module Hashes
300
+ def hlen: (String key) -> Integer
301
+
302
+ def hset: (String key, *(Array[String] | Hash[String, String]) attrs) -> Integer
303
+
304
+ def hsetnx: (String key, String field, String value) -> bool
305
+
306
+ def hmset: (String key, *Array[String] attrs) -> String
307
+
308
+ def mapped_hmset: (String key, Hash[untyped, untyped] hash) -> String
309
+
310
+ def hget: (String key, String field) -> String?
311
+
312
+ def hmget: (String key, *Array[String] fields) { (?) -> untyped } -> Array[String]
313
+
314
+ def mapped_hmget: (String key, *Array[String] fields) -> Hash[untyped, untyped]
315
+
316
+ def hrandfield: (String key, ?Integer count, ?withvalues: bool, ?with_values: untyped) -> (nil | String | Array[String] | Array[[String, Float]])
317
+
318
+ def hdel: (String key, *untyped fields) -> Integer
319
+
320
+ def hexists: (String key, String field) -> bool
321
+
322
+ def hincrby: (String key, String field, Integer increment) -> Integer
323
+
324
+ def hincrbyfloat: (String key, String field, Float increment) -> Float
325
+
326
+ def hkeys: (String key) -> Array[String]
327
+
328
+ def hvals: (String key) -> Array[String]
329
+
330
+ def hgetall: (String key) -> Hash[String, String]
331
+
332
+ def hscan: (untyped key, (String | Integer) cursor, **Hash[untyped, untyped] options) -> (String | Array[[String, String]] | Array[String])
333
+
334
+ def hscan_each: (untyped key, **Hash[untyped, untyped] options) ?{ (?) -> untyped } -> Enumerator[untyped, untyped]
335
+
336
+ def hexpire: (String key, Integer ttl, *Array[String] fields) -> Array[Integer]
337
+
338
+ def httl: (String key, *Array[String] fields) -> Array[Integer]
339
+
340
+ def hpexpire: (String key, Integer ttl, *Array[String] fields, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> Array[Integer]
341
+
342
+ def hpttl: (String key, *Array[String] fields) -> Array[Integer]
343
+
344
+ def himport_prepare: (String fieldset_name, *(String | Array[String]) fields) -> String
345
+
346
+ def himport_set: (String key, String fieldset_name, *(String | Array[String]) values) -> String
347
+
348
+ def himport_discard: (String fieldset_name) -> Integer
349
+
350
+ def himport_discard_all: () -> Integer
351
+ end
352
+ end
353
+ end
354
+
355
+ class Redis
356
+ module Commands
357
+ module HyperLogLog
358
+ def pfadd: (String key, (String | Array[String]) member) -> bool
359
+
360
+ def pfcount: (*(String | Array[String]) keys) -> Integer
361
+
362
+ def pfmerge: (String dest_key, *(String | Array[String]) source_key) -> bool
363
+ end
364
+ end
365
+ end
366
+
367
+ class Redis
368
+ module Commands
369
+ module Keys
370
+ def scan: ((String | Integer) cursor, **Hash[untyped, untyped] options) -> (String | Array[String])
371
+
372
+ def scan_each: (**Hash[untyped, untyped] options) ?{ (?) -> untyped } -> Enumerator[untyped, untyped]
373
+
374
+ def persist: (String key) -> bool
375
+
376
+ def expire: (String key, Integer seconds, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> bool
377
+
378
+ def expireat: (String key, Integer unix_time, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> bool
379
+
380
+ def expiretime: (String key) -> Integer
381
+
382
+ def ttl: (String key) -> Integer
383
+
384
+ def pexpire: (String key, Integer milliseconds, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> bool
385
+
386
+ def pexpireat: (String key, Integer ms_unix_time, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> bool
387
+
388
+ def pexpiretime: (String key) -> Integer
389
+
390
+ def pttl: (String key) -> Integer
391
+
392
+ def dump: (String key) -> String?
393
+
394
+ def restore: (String key, String ttl, String serialized_value, ?replace: untyped?) -> String
395
+
396
+ def migrate: ((String | Array[String]) key, Hash[untyped, untyped] options) -> String
397
+
398
+ def del: (*(String | Array[String]) keys) -> (0 | untyped)
399
+
400
+ def unlink: (*(String | Array[String]) keys) -> (0 | untyped)
401
+
402
+ def exists: (*(String | Array[String]) keys) -> Integer
403
+
404
+ def exists?: (*(String | Array[String]) keys) -> bool
405
+
406
+ def keys: (?::String pattern) -> Array[String]
407
+
408
+ def move: (String key, Integer db) -> bool
409
+
410
+ def copy: (String source, String destination, ?db: Integer?, ?replace: bool) -> bool
411
+
412
+ def object: (*untyped args) -> untyped
413
+
414
+ def randomkey: () -> String?
415
+
416
+ def rename: (String old_name, String new_name) -> String
417
+
418
+ def renamenx: (String old_name, String new_name) -> bool
419
+
420
+ def sort: (String key, ?by: untyped?, ?limit: untyped?, ?get: untyped?, ?order: untyped?, ?store: untyped?) -> (Array[String] | Array[Array[String]] | Integer)
421
+
422
+ def type: (String key) -> String
423
+
424
+ private
425
+
426
+ def _scan: (untyped command, untyped cursor, untyped args, ?match: untyped?, ?count: untyped?, ?type: untyped?, ?novalues: bool) { (?) -> untyped } -> untyped
427
+ end
428
+ end
429
+ end
430
+
431
+ class Redis
432
+ module Commands
433
+ module Lists
434
+ def llen: (String key) -> Integer
435
+
436
+ def lmove: (String source, String destination, (String | Symbol) where_source, (String | Symbol) where_destination) -> (nil | String)
437
+
438
+ def lmovem: (String source, String destination, (String | Symbol) where_source, (String | Symbol) where_destination, ?count: Integer?, ?exactly: Integer?, ?order: (String | Symbol)?) -> (nil | Array[String])
439
+
440
+ 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])
441
+
442
+ def blmove: (String source, String destination, (String | Symbol) where_source, (String | Symbol) where_destination, ?timeout: ::Integer) -> (nil | String)
443
+
444
+ def lpush: (String key, (String | Array[String]) value) -> Integer
445
+
446
+ def lpushx: (String key, String value) -> Integer
447
+
448
+ def rpush: (String key, (String | Array[String]) value) -> Integer
449
+
450
+ def rpushx: (String key, String value) -> Integer
451
+
452
+ def lpop: (String key, ?Integer count) -> (nil | String | Array[String])
453
+
454
+ def rpop: (String key, ?Integer count) -> (nil | String | Array[String])
455
+
456
+ def rpoplpush: (String source, String destination) -> (nil | String)
457
+
458
+ def blpop: (*untyped args) -> (nil | [String, String])
459
+
460
+ def brpop: (*untyped args) -> (nil | [String, String])
461
+
462
+ def brpoplpush: (String source, String destination, ?timeout: ::Integer) -> (nil | String)
463
+
464
+ def blmpop: (untyped timeout, *untyped keys, ?modifier: ::String, ?count: untyped?) -> Array[(String | Array[(String | Float)])]
465
+
466
+ def lmpop: (*untyped keys, ?modifier: ::String, ?count: untyped?) -> Array[(String | Array[(String | Float)])]
467
+
468
+ def lindex: (String key, Integer index) -> String?
469
+
470
+ def linsert: (String key, (String | Symbol) where, String pivot, String value) -> Integer
471
+
472
+ def lrange: (String key, Integer start, Integer stop) -> Array[String]
473
+
474
+ def lrem: (String key, Integer count, String value) -> Integer
475
+
476
+ def lset: (String key, Integer index, String value) -> String
477
+
478
+ def ltrim: (String key, Integer start, Integer stop) -> String
479
+
480
+ private
481
+
482
+ def _bpop: (untyped cmd, untyped args) { (?) -> untyped } -> untyped
483
+
484
+ def _movem_amount_args: (untyped count, untyped exactly, untyped order) -> untyped
485
+
486
+ def _normalize_move_wheres: (untyped where_source, untyped where_destination) -> ::Array[untyped]
487
+ end
488
+ end
489
+ end
490
+
491
+ class Redis
492
+ module Commands
493
+ module Json
494
+ NumincrbyNormalize: untyped
495
+
496
+ TypeNormalize: untyped
497
+
498
+ def json_set: (String key, String path, untyped value, ?nx: bool, ?xx: bool, ?raw: bool) -> (bool | String)
499
+
500
+ def json_get: (String key, *Array[String] paths, ?raw: bool) -> untyped
501
+
502
+ def json_mset: (*Array[untyped] args, ?raw: bool) -> String
503
+
504
+ def json_mget: (*Array[String] keys, String path, ?raw: bool) -> Array[untyped]
505
+
506
+ def json_del: (String key, ?String path) -> Integer
507
+
508
+ def json_forget: (String key, ?String path) -> Integer
509
+
510
+ def json_clear: (String key, ?String path) -> Integer
511
+
512
+ def json_merge: (String key, String path, untyped value, ?raw: bool) -> String
513
+
514
+ def json_arrappend: (String key, String path, *Array[untyped] values, ?raw: bool) -> (Array[Integer] | Integer)
515
+
516
+ def json_arrindex: (String key, String path, untyped value, ?start: Integer?, ?stop: Integer?, ?raw: bool) -> (Array[Integer] | Integer)
517
+
518
+ def json_arrinsert: (String key, String path, Integer index, *Array[untyped] values, ?raw: bool) -> (Array[Integer] | Integer)
519
+
520
+ def json_arrlen: (String key, ?String path) -> (Array[Integer] | Integer | nil)
521
+
522
+ def json_arrpop: (String key, ?String path, ?Integer index, ?raw: bool) -> untyped
523
+
524
+ def json_arrtrim: (String key, String path, Integer start, Integer stop) -> (Array[Integer] | Integer)
525
+
526
+ def json_numincrby: (String key, String path, Numeric number) -> (Array[Numeric] | Numeric | nil)
527
+
528
+ def json_type: (String key, ?String path) -> (Array[String] | String | nil)
529
+
530
+ def json_objkeys: (String key, ?String path) -> Array[untyped]
531
+
532
+ def json_objlen: (String key, ?String path) -> (Array[Integer] | Integer | nil)
533
+
534
+ def json_strlen: (String key, ?String path) -> (Array[Integer] | Integer | nil)
535
+
536
+ def json_strappend: (String key, String path, String value, ?raw: bool) -> (Array[Integer] | Integer | nil)
537
+
538
+ def json_toggle: (String key, String path) -> untyped
539
+
540
+ def json_debug_memory: (String key, ?String path) -> (Array[Integer] | Integer)
541
+
542
+ private
543
+
544
+ def json_path?: (untyped path) -> bool
545
+ end
546
+ end
547
+ end
548
+
549
+ class Redis
550
+ module Commands
551
+ module Search
552
+ end
553
+ end
554
+ end
555
+
556
+ class Redis
557
+ module Commands
558
+ module Search
559
+ class AggregateRequest
560
+ @query: untyped
561
+
562
+ @with_cursor: untyped
563
+
564
+ @cursor_count: untyped
565
+
566
+ @cursor_max_idle: untyped
567
+
568
+ @dialect: untyped
569
+
570
+ @steps: untyped
571
+
572
+ @add_scores: untyped
573
+
574
+ def initialize: (?::String query, ?with_cursor: bool, ?cursor_count: untyped?, ?cursor_max_idle: untyped?, ?dialect: untyped) -> void
575
+
576
+ def group_by: (untyped fields, *untyped reducers) -> self
577
+
578
+ def sort_by: (*untyped sort_by_fields, ?max: untyped?) -> self
579
+
580
+ def apply: (untyped expressions) -> self
581
+
582
+ def limit: (untyped offset, untyped num) -> self
583
+
584
+ def filter: (untyped expression) -> self
585
+
586
+ def load: (*untyped fields) -> self
587
+
588
+ def add_scores: (?add_scores: bool) -> self
589
+
590
+ def dialect: (untyped dialect_version) -> self
591
+
592
+ def to_redis_args: () -> Array[untyped]
593
+ end
594
+
595
+ class Asc
596
+ @name: untyped
597
+
598
+ @order: untyped
599
+
600
+ attr_reader name: untyped
601
+
602
+ attr_reader order: untyped
603
+
604
+ def initialize: (untyped name) -> void
605
+ end
606
+
607
+ class Desc
608
+ @name: untyped
609
+
610
+ @order: untyped
611
+
612
+ attr_reader name: untyped
613
+
614
+ attr_reader order: untyped
615
+
616
+ def initialize: (untyped name) -> void
617
+ end
618
+
619
+ class Reducers
620
+ @name: untyped
621
+
622
+ @args: untyped
623
+
624
+ @alias_name: untyped
625
+
626
+ def self.count: (?alias_name: untyped?) -> Reducers
627
+
628
+ def self.count_distinct: (untyped property, ?alias_name: untyped?) -> Reducers
629
+
630
+ def self.count_distinctish: (untyped property, ?alias_name: untyped?) -> Reducers
631
+
632
+ def self.sum: (untyped property, ?alias_name: untyped?) -> Reducers
633
+
634
+ def self.min: (untyped property, ?alias_name: untyped?) -> Reducers
635
+
636
+ def self.max: (untyped property, ?alias_name: untyped?) -> Reducers
637
+
638
+ def self.avg: (untyped property, ?alias_name: untyped?) -> Reducers
639
+
640
+ def self.stddev: (untyped property, ?alias_name: untyped?) -> Reducers
641
+
642
+ def self.quantile: (untyped property, untyped quantile, ?alias_name: untyped?) -> Reducers
643
+
644
+ def self.tolist: (untyped property, ?alias_name: untyped?) -> Reducers
645
+
646
+ def self.first_value: (untyped property, ?alias_name: untyped?, ?sort_by: untyped?, ?sort_order: untyped?) -> Reducers
647
+
648
+ def self.random_sample: (untyped property, untyped sample_size, ?alias_name: untyped?) -> Reducers
649
+
650
+ def self.collect: (fields: untyped, ?distinct: bool, ?sort_by: untyped?, ?limit: untyped?, ?alias_name: untyped?) -> Reducers
651
+
652
+ def self.collect_fields_tokens: (untyped fields) -> (::Array["FIELDS" | "*"] | untyped)
653
+
654
+ def self.collect_sortby_tokens: (untyped sort_by) -> (::Array[untyped] | untyped)
655
+
656
+ attr_reader name: untyped
657
+
658
+ attr_reader args: untyped
659
+
660
+ attr_reader alias_name: untyped
661
+
662
+ def initialize: (untyped name, *untyped args, ?alias_name: untyped?) -> void
663
+
664
+ def as: (untyped alias_name) -> self
665
+ end
666
+
667
+ class Cursor
668
+ @cid: untyped
669
+
670
+ @count: untyped
671
+
672
+ attr_accessor cid: untyped
673
+
674
+ attr_accessor count: untyped
675
+
676
+ def initialize: (untyped cid) -> void
677
+
678
+ def build_args: () -> Array[String]
679
+ end
680
+ end
681
+ end
682
+ end
683
+
684
+ class Redis
685
+ module Commands
686
+ module Search
687
+ DEFAULT_DIALECT: 2
688
+ end
689
+ end
690
+ end
691
+
692
+ class Redis
693
+ module Commands
694
+ module Search
695
+ class Field
696
+ @name: untyped
697
+
698
+ @type: untyped
699
+
700
+ @query: untyped
701
+
702
+ @options: untyped
703
+
704
+ @alias_name: untyped
705
+
706
+ attr_reader name: untyped
707
+
708
+ attr_reader type: untyped
709
+
710
+ attr_reader options: untyped
711
+
712
+ attr_reader alias_name: untyped
713
+
714
+ attr_accessor query: untyped
715
+
716
+ def initialize: ((String | Symbol) name, Symbol type, ?(Query | nil) query, **untyped options) -> void
717
+
718
+ def to_args: () -> Array[untyped]
719
+ end
720
+
721
+ class TagField < Field
722
+ def initialize: ((String | Symbol) name, ?(Query | nil) query, **untyped options) -> void
723
+
724
+ def eq: (String value) -> Query
725
+ end
726
+
727
+ class TextField < Field
728
+ def initialize: ((String | Symbol) name, ?(Query | nil) query, **untyped options) -> void
729
+
730
+ def to_args: () -> Array[untyped]
731
+
732
+ def match: (String pattern, ?raw: bool) -> Query
733
+ end
734
+
735
+ class NumericField < Field
736
+ def initialize: ((String | Symbol) name, ?(Query | nil) query, **untyped options) -> void
737
+
738
+ def gt: (Numeric value) -> Query
739
+
740
+ def lt: (Numeric value) -> Query
741
+
742
+ def between: (Numeric min, Numeric max) -> Query
743
+ end
744
+
745
+ class GeoField < Field
746
+ def initialize: ((String | Symbol) name, ?(Query | nil) query, **untyped options) -> void
747
+ end
748
+
749
+ class GeoShapeField < Field
750
+ @coord_system: untyped
751
+
752
+ FLAT: "FLAT"
753
+
754
+ SPHERICAL: "SPHERICAL"
755
+
756
+ def initialize: ((String | Symbol) name, ?(String | nil) coord_system, **untyped options) -> void
757
+
758
+ def to_args: () -> Array[untyped]
759
+ end
760
+
761
+ class VectorField < Field
762
+ @algorithm: untyped
763
+
764
+ @attributes: untyped
765
+
766
+ attr_reader algorithm: untyped
767
+
768
+ attr_reader attributes: untyped
769
+
770
+ def initialize: ((String | Symbol) name, (String | Symbol) algorithm, ?::Hash[untyped, untyped] attributes, **untyped options) -> void
771
+
772
+ def add_attribute: ((String | Symbol) key, untyped value) -> untyped
773
+
774
+ def to_args: () -> Array[untyped]
775
+
776
+ def args: () -> Array[untyped]
777
+
778
+ private
779
+
780
+ def field_args: () -> untyped
781
+ end
782
+ end
783
+ end
784
+ end
785
+
786
+ class Redis
787
+ module Commands
788
+ module Search
789
+ class HybridSearchQuery
790
+ @query_string: untyped
791
+
792
+ @scorer: untyped
793
+
794
+ @yield_score_as: untyped
795
+
796
+ attr_reader query_string: untyped
797
+
798
+ def initialize: (untyped query_string, ?scorer: untyped?, ?yield_score_as: untyped?) -> void
799
+
800
+ def scorer: (untyped scorer) -> self
801
+
802
+ def yield_score_as: (untyped alias_name) -> self
803
+
804
+ def args: () -> Array[untyped]
805
+ end
806
+
807
+ class HybridVsimQuery
808
+ @vector_field: untyped
809
+
810
+ @vector_data: untyped
811
+
812
+ @vsim_method_params: untyped
813
+
814
+ @filter: untyped
815
+
816
+ @yield_score_as: untyped
817
+
818
+ attr_reader vector_field: untyped
819
+
820
+ attr_reader vector_data: untyped
821
+
822
+ 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
823
+
824
+ def vsim_method_params: (untyped method, **untyped kwargs) -> self
825
+
826
+ def filter: (untyped flt) -> self
827
+
828
+ def yield_score_as: (untyped alias_name) -> self
829
+
830
+ def args: () -> Array[untyped]
831
+ end
832
+
833
+ class HybridQuery
834
+ @search_query: untyped
835
+
836
+ @vector_similarity_query: untyped
837
+
838
+ def initialize: (untyped search_query, untyped vector_similarity_query) -> void
839
+
840
+ def args: () -> Array[untyped]
841
+ end
842
+
843
+ module CombinationMethods
844
+ RRF: "RRF"
845
+
846
+ LINEAR: "LINEAR"
847
+ end
848
+
849
+ module VectorSearchMethods
850
+ KNN: "KNN"
851
+
852
+ RANGE: "RANGE"
853
+ end
854
+
855
+ class CombineResultsMethod
856
+ @method: untyped
857
+
858
+ @kwargs: untyped
859
+
860
+ def initialize: (untyped method, **untyped kwargs) -> void
861
+
862
+ def args: () -> Array[String]
863
+
864
+ def self.rrf: (?window: untyped?, ?constant: untyped?) -> CombineResultsMethod
865
+
866
+ def self.linear: (?alpha: untyped?, ?beta: untyped?) -> CombineResultsMethod
867
+ end
868
+
869
+ class HybridFilter
870
+ @args: untyped
871
+
872
+ attr_reader args: untyped
873
+
874
+ def initialize: (untyped conditions) -> void
875
+ end
876
+
877
+ class HybridPostProcessingConfig
878
+ @load_statements: untyped
879
+
880
+ @apply_statements: untyped
881
+
882
+ @groupby_statements: untyped
883
+
884
+ @sortby_fields: untyped
885
+
886
+ @filter: untyped
887
+
888
+ @limit: untyped
889
+
890
+ def initialize: () -> void
891
+
892
+ def load: (*untyped fields) -> self
893
+
894
+ def group_by: (untyped fields, *untyped reducers) -> self
895
+
896
+ def apply: (**untyped kwexpr) -> self
897
+
898
+ def sort_by: (*untyped sortby_fields) -> self
899
+
900
+ def filter: (untyped flt) -> self
901
+
902
+ def limit: (untyped offset, untyped num) -> self
903
+
904
+ def build_args: () -> Array[untyped]
905
+ end
906
+
907
+ class HybridCursorQuery
908
+ @count: untyped
909
+
910
+ @max_idle: untyped
911
+
912
+ def initialize: (?count: ::Integer, ?max_idle: ::Integer) -> void
913
+
914
+ def build_args: () -> Array[String]
915
+ end
916
+
917
+ class SortbyField
918
+ @args: untyped
919
+
920
+ attr_reader args: untyped
921
+
922
+ def initialize: (untyped field, ?asc: bool) -> void
923
+ end
924
+ end
925
+ end
926
+ end
927
+
928
+ class Redis
929
+ module Commands
930
+ module Search
931
+ class Index
932
+ @redis: untyped
933
+
934
+ @name: untyped
935
+
936
+ @prefix: untyped
937
+
938
+ @schema: untyped
939
+
940
+ @storage_type: untyped
941
+
942
+ @stopwords: untyped
943
+
944
+ attr_reader name: untyped
945
+
946
+ attr_reader prefix: untyped
947
+
948
+ def initialize: (untyped redis, untyped name, untyped schema, untyped storage_type, ?prefix: untyped?, ?stopwords: untyped?) -> void
949
+
950
+ def self.create: (untyped redis, untyped name, untyped schema, untyped storage_type, ?prefix: untyped?, ?stopwords: untyped?, ?skip_initial_scan: bool, **untyped options) -> Index
951
+
952
+ def self.key_prefix: (untyped prefix, untyped definition) -> (untyped | ::String | nil)
953
+
954
+ def self.resolve_storage_type: (untyped storage_type, untyped definition) -> untyped
955
+
956
+ def add: (untyped doc_id, **untyped fields) -> (Integer | String)
957
+
958
+ 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
959
+
960
+ def info: () -> Hash[untyped, untyped]
961
+
962
+ def drop: (?delete_documents: bool) -> String
963
+
964
+ def aggregate: (untyped query, *untyped args) -> AggregateResult
965
+
966
+ def hybrid_search: (query: untyped, ?combine_method: untyped?, ?post_processing: untyped?, ?params_substitution: untyped?, ?timeout: untyped?, ?cursor: untyped?) -> Search::HybridResult
967
+
968
+ def explain: (untyped query) -> String
969
+
970
+ def alter: (untyped field_or_args) -> String
971
+
972
+ def spellcheck: (untyped query, ?distance: untyped?, ?include: untyped?, ?exclude: untyped?) -> Hash[String, Array[Hash[untyped, untyped]]]
973
+
974
+ def synupdate: (untyped group_id, *untyped terms, ?skip_initial_scan: bool) -> String
975
+
976
+ def syndump: () -> Hash[String, Array[String]]
977
+
978
+ def tagvals: (untyped field_name) -> Array[String]
979
+
980
+ def profile: (*untyped args) -> Array[untyped]
981
+
982
+ private
983
+
984
+ def json?: () -> bool
985
+ end
986
+ end
987
+ end
988
+ end
989
+
990
+ class Redis
991
+ module Commands
992
+ module Search
993
+ module IndexType
994
+ HASH: "HASH"
995
+
996
+ JSON: "JSON"
997
+ end
998
+
999
+ class IndexDefinition
1000
+ @args: untyped
1001
+
1002
+ @index_type: untyped
1003
+
1004
+ @prefixes: untyped
1005
+
1006
+ attr_reader args: untyped
1007
+
1008
+ attr_reader prefixes: untyped
1009
+
1010
+ attr_reader index_type: untyped
1011
+
1012
+ 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
1013
+
1014
+ private
1015
+
1016
+ def append_index_type: (untyped index_type) -> (untyped | untyped | untyped | nil)
1017
+
1018
+ def append_prefix: (untyped prefix) -> (untyped | nil)
1019
+
1020
+ def append_filter: (untyped filter) -> (untyped | nil)
1021
+
1022
+ def append_language: (untyped language_field, untyped language) -> untyped
1023
+
1024
+ def append_score: (untyped score_field, untyped score) -> untyped
1025
+
1026
+ def append_payload: (untyped payload_field) -> (untyped | nil)
1027
+ end
1028
+ end
1029
+ end
1030
+ end
1031
+
1032
+ class Redis
1033
+ module Commands
1034
+ module Search
1035
+ 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
1036
+
1037
+ 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
1038
+
1039
+ def ft_search: (untyped index_name, untyped query, **untyped options) -> Search::SearchResult
1040
+
1041
+ def ft_info: (untyped index_name) -> Hash[untyped, untyped]
1042
+
1043
+ def ft_dropindex: (untyped index_name, ?delete_documents: bool) -> String
1044
+
1045
+ def ft_aggregate: (untyped index_name, untyped query, *untyped args) -> Search::AggregateResult
1046
+
1047
+ def ft_explain: (untyped index_name, untyped query) -> String
1048
+
1049
+ def ft_alter: (untyped index_name, untyped field_or_args) -> String
1050
+
1051
+ def ft_cursor_read: (untyped index_name, untyped cursor_id) -> Search::AggregateResult
1052
+
1053
+ def ft_cursor_del: (untyped index_name, untyped cursor_id) -> String
1054
+
1055
+ def ft_profile: (untyped index_name, *untyped args) -> Array[untyped]
1056
+
1057
+ 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
1058
+
1059
+ def ft_sugadd: (untyped key, untyped string, untyped score, ?::Hash[untyped, untyped] options) -> Integer
1060
+
1061
+ def ft_sugget: (untyped key, untyped prefix, ?::Hash[untyped, untyped] options) -> Array[String]
1062
+
1063
+ def ft_suglen: (untyped key) -> Integer
1064
+
1065
+ def ft_sugdel: (untyped key, untyped string) -> Integer
1066
+
1067
+ def ft_spellcheck: (untyped index_name, untyped query, ?distance: untyped?, ?include: untyped?, ?exclude: untyped?) -> Hash[String, Array[Hash[untyped, untyped]]]
1068
+
1069
+ def ft_synupdate: (untyped index_name, untyped group_id, *untyped terms, ?skip_initial_scan: bool) -> String
1070
+
1071
+ def ft_syndump: (untyped index_name) -> Hash[String, Array[String]]
1072
+
1073
+ def ft_tagvals: (untyped index_name, untyped field_name) -> Array[String]
1074
+
1075
+ def ft_aliasadd: (untyped alias_name, untyped index_name) -> String
1076
+
1077
+ def ft_aliasupdate: (untyped alias_name, untyped index_name) -> String
1078
+
1079
+ def ft_aliasdel: (untyped alias_name) -> String
1080
+
1081
+ def ft_aliaslist: (untyped index_name) -> Array[String]
1082
+
1083
+ def ft_dictadd: (untyped dict_name, *untyped terms) -> Integer
1084
+
1085
+ def ft_dictdel: (untyped dict_name, *untyped terms) -> Integer
1086
+
1087
+ def ft_dictdump: (untyped dict_name) -> Array[String]
1088
+
1089
+ def ft_config_set: (untyped option, untyped value) -> String
1090
+
1091
+ def ft_config_get: (untyped option) -> Hash[untyped, untyped]
1092
+ end
1093
+ end
1094
+ end
1095
+
1096
+ class Redis
1097
+ module Commands
1098
+ module Search
1099
+ class Query
1100
+ @base: untyped
1101
+
1102
+ @predicate_collection: untyped
1103
+
1104
+ @filters: untyped
1105
+
1106
+ @options: untyped
1107
+
1108
+ @return_fields: untyped
1109
+
1110
+ @return_fields_decode: untyped
1111
+
1112
+ @summarize_options: untyped
1113
+
1114
+ @highlight_options: untyped
1115
+
1116
+ @language: untyped
1117
+
1118
+ @verbatim: untyped
1119
+
1120
+ @no_stopwords: untyped
1121
+
1122
+ @with_payloads: untyped
1123
+
1124
+ @slop: untyped
1125
+
1126
+ @in_order: untyped
1127
+
1128
+ @no_content: untyped
1129
+
1130
+ @limit_ids: untyped
1131
+
1132
+ @geo_filters: untyped
1133
+
1134
+ @expander: untyped
1135
+
1136
+ @timeout: untyped
1137
+
1138
+ @limit_fields: untyped
1139
+
1140
+ attr_reader options: untyped
1141
+
1142
+ attr_reader return_fields_decode: untyped
1143
+
1144
+ attr_reader filters: untyped
1145
+
1146
+ attr_reader geo_filters: untyped
1147
+
1148
+ attr_accessor return_fields: untyped
1149
+
1150
+ attr_accessor highlight_options: untyped
1151
+
1152
+ attr_accessor summarize_options: untyped
1153
+
1154
+ def initialize: (?untyped? base) -> void
1155
+
1156
+ def self.build: () { (?) -> untyped } -> Query
1157
+
1158
+ def filter: (untyped field, untyped min, ?untyped? max) -> self
1159
+
1160
+ def geo_filter: (untyped field, untyped lon, untyped lat, untyped radius, ?::String unit) -> self
1161
+
1162
+ def limit_ids: (*untyped ids) -> self
1163
+
1164
+ def paging: (untyped offset, untyped limit) -> self
1165
+
1166
+ def sort_by: (untyped field, ?untyped? order, ?asc: bool) -> self
1167
+
1168
+ def return: (*untyped fields) -> self
1169
+
1170
+ def return_field: (untyped field, ?as_field: untyped?, ?decode_field: bool) -> self
1171
+
1172
+ def language: (untyped lang) -> self
1173
+
1174
+ def verbatim: () -> self
1175
+
1176
+ def expander: (untyped expander_name) -> self
1177
+
1178
+ def no_stopwords: () -> self
1179
+
1180
+ def with_scores: () -> self
1181
+
1182
+ def scorer: (untyped scorer_name) -> self
1183
+
1184
+ def with_payloads: () -> self
1185
+
1186
+ def slop: (untyped value) -> self
1187
+
1188
+ def in_order: () -> self
1189
+
1190
+ def timeout: (untyped milliseconds) -> self
1191
+
1192
+ def no_content: () -> self
1193
+
1194
+ def limit_fields: (*untyped fields) -> self
1195
+
1196
+ def highlight: (?fields: untyped?, ?tags: ::Array[untyped]) -> self
1197
+
1198
+ def summarize: (?fields: untyped?, ?separator: ::String, ?len: ::Integer, ?frags: ::Integer) -> self
1199
+
1200
+ def dialect: (untyped dialect_version) -> self
1201
+
1202
+ def explain_score: () -> self
1203
+
1204
+ def limit_ids_value: () -> untyped
1205
+
1206
+ def language_value: () -> untyped
1207
+
1208
+ def verbatim_value: () -> untyped
1209
+
1210
+ def no_stopwords_value: () -> untyped
1211
+
1212
+ def no_content_value: () -> untyped
1213
+
1214
+ def with_payloads_value: () -> untyped
1215
+
1216
+ def slop_value: () -> untyped
1217
+
1218
+ def in_order_value: () -> untyped
1219
+
1220
+ def timeout_value: () -> untyped
1221
+
1222
+ def limit_fields_value: () -> untyped
1223
+
1224
+ def expander_value: () -> untyped
1225
+
1226
+ def or_: () { (?) -> untyped } -> self
1227
+
1228
+ def and_: () { (?) -> untyped } -> self
1229
+
1230
+ def add_predicate: (untyped predicate) -> self
1231
+
1232
+ def new_collection: (untyped type) ?{ () -> untyped } -> self
86
1233
 
87
- def id: () -> untyped
1234
+ def tag: (untyped field) -> TagField
88
1235
 
89
- def server_url: () -> untyped
1236
+ def text: (untyped field) -> TextField
90
1237
 
91
- def timeout: () -> untyped
1238
+ def numeric: (untyped field) -> NumericField
92
1239
 
93
- def db: () -> untyped
1240
+ def to_redis_args: () -> Array[untyped]
94
1241
 
95
- def host: () -> (untyped | nil)
1242
+ def evaluate: () ?{ (?) -> untyped } -> untyped
96
1243
 
97
- def port: () -> (untyped | nil)
1244
+ private
98
1245
 
99
- def path: () -> untyped
1246
+ def query_string: () -> untyped
100
1247
 
101
- def username: () -> untyped
1248
+ def append_boolean_options: (untyped args) -> untyped
102
1249
 
103
- def password: () -> untyped
1250
+ def append_scorer: (untyped args) -> (untyped | nil)
104
1251
 
105
- def ensure_connected: (?retryable: bool) { (?) -> untyped } -> untyped
1252
+ def append_with_scores: (untyped args) -> untyped
106
1253
 
107
- def call_v: (untyped command) { (?) -> untyped } -> untyped
1254
+ def append_limit_fields: (untyped args) -> (untyped | nil)
108
1255
 
109
- def blocking_call_v: (untyped timeout, untyped command) { (?) -> untyped } -> untyped
1256
+ def append_limit_ids: (untyped args) -> (untyped | nil)
110
1257
 
111
- def pipelined: (?exception: bool) -> untyped
1258
+ def append_filters: (untyped args) -> untyped
112
1259
 
113
- def multi: (?watch: untyped?) -> untyped
1260
+ def coerce_filter_bound: (untyped value) -> untyped
114
1261
 
115
- def inherit_socket!: () -> untyped
116
- end
117
- end
1262
+ def append_geo_filters: (untyped args) -> untyped
118
1263
 
119
- class Redis
120
- module Commands
121
- include Bitmaps
1264
+ def append_return_fields: (untyped args) -> (untyped | nil)
122
1265
 
123
- include Cluster
1266
+ def append_summarize_options: (untyped args) -> (untyped | nil)
124
1267
 
125
- include Connection
1268
+ def append_highlight_options: (untyped args) -> (untyped | nil)
126
1269
 
127
- include Geo
1270
+ def append_slop: (untyped args) -> (untyped | nil)
128
1271
 
129
- include Hashes
1272
+ def append_timeout: (untyped args) -> (untyped | nil)
130
1273
 
131
- include HyperLogLog
1274
+ def append_language: (untyped args) -> (untyped | nil)
132
1275
 
133
- include Keys
1276
+ def append_expander: (untyped args) -> (untyped | nil)
134
1277
 
135
- include Lists
1278
+ def append_in_order: (untyped args) -> (untyped | nil)
136
1279
 
137
- include Pubsub
1280
+ def append_sort_by: (untyped args) -> (untyped | nil)
138
1281
 
139
- include Scripting
1282
+ def append_limit: (untyped args) -> (untyped | nil)
140
1283
 
141
- include Server
1284
+ def append_dialect: (untyped args) -> (untyped | nil)
1285
+ end
142
1286
 
143
- include Sets
1287
+ class Predicate
1288
+ @field: untyped
144
1289
 
145
- include SortedSets
1290
+ attr_reader field: untyped
146
1291
 
147
- include Streams
1292
+ TEXT_SPECIAL_CHARACTERS: ::Array["," | "." | "<" | ">" | "{" | "}" | "[" | "]" | "\"" | "'" | ":" | ";" | "!" | "@" | "#" | "$" | "%" | "^" | "&" | "*" | "(" | ")" | "-" | "+" | "=" | "~" | "|" | "/" | "\\"]
148
1293
 
149
- include Strings
1294
+ TAG_SPECIAL_CHARACTERS: untyped
150
1295
 
151
- include Transactions
1296
+ TEXT_ESCAPE_PATTERN: untyped
152
1297
 
153
- Boolify: untyped
1298
+ TAG_ESCAPE_PATTERN: untyped
154
1299
 
155
- BoolifySet: untyped
1300
+ def initialize: (untyped field) -> void
156
1301
 
157
- Hashify: untyped
1302
+ def to_s: () -> String
158
1303
 
159
- Pairify: untyped
1304
+ private
160
1305
 
161
- Floatify: untyped
1306
+ def escape_text: (untyped value) -> untyped
162
1307
 
163
- FloatifyPair: untyped
1308
+ def escape_tag: (untyped value) -> untyped
1309
+ end
164
1310
 
165
- FloatifyPairs: untyped
1311
+ class TagEqualityPredicate < Predicate
1312
+ @value: untyped
166
1313
 
167
- HashifyInfo: untyped
1314
+ def initialize: (untyped field, untyped value) -> void
168
1315
 
169
- HashifyStreams: untyped
1316
+ def to_s: () -> ::String
1317
+ end
170
1318
 
171
- EMPTY_STREAM_RESPONSE: ::Array[nil]
1319
+ class TextMatchPredicate < Predicate
1320
+ @pattern: untyped
172
1321
 
173
- HashifyStreamEntries: untyped
1322
+ @raw: untyped
174
1323
 
175
- HashifyStreamAutoclaim: untyped
1324
+ def initialize: (untyped field, untyped pattern, ?raw: bool) -> void
176
1325
 
177
- HashifyStreamAutoclaimJustId: untyped
1326
+ def to_s: () -> ::String
1327
+ end
178
1328
 
179
- HashifyStreamPendings: untyped
1329
+ class RangePredicate < Predicate
1330
+ @min: untyped
180
1331
 
181
- HashifyStreamPendingDetails: untyped
1332
+ @max: untyped
182
1333
 
183
- HashifyClusterNodeInfo: untyped
1334
+ def initialize: (untyped field, untyped min, untyped max) -> void
184
1335
 
185
- HashifyClusterSlots: untyped
1336
+ def to_s: () -> ::String
1337
+ end
186
1338
 
187
- HashifyClusterNodes: untyped
1339
+ class PredicateCollection
1340
+ @type: untyped
188
1341
 
189
- HashifyClusterSlaves: untyped
1342
+ @predicates: untyped
190
1343
 
191
- Noop: untyped
1344
+ attr_reader type: untyped
192
1345
 
193
- def call: (*untyped command) { (?) -> untyped } -> untyped
1346
+ attr_reader predicates: untyped
194
1347
 
195
- def sentinel: (String subcommand, *Array[String] args) -> (Array[String] | Hash[String, String] | String)
1348
+ def initialize: (untyped type) -> void
196
1349
 
197
- private
1350
+ def add: (untyped predicate) -> Array[untyped]
198
1351
 
199
- def method_missing: (*untyped command) -> untyped
1352
+ def to_s: () -> ::String
1353
+ end
1354
+ end
200
1355
  end
201
1356
  end
202
1357
 
203
1358
  class Redis
204
1359
  module Commands
205
- module Bitmaps
206
- def setbit: (String key, Integer offset, Integer value) -> Integer
1360
+ module Search
1361
+ class Document
1362
+ @id: untyped
207
1363
 
208
- def getbit: (String key, Integer offset) -> Integer
1364
+ @attributes: untyped
209
1365
 
210
- def bitcount: (String key, ?::Integer start, ?::Integer stop, ?scale: (String | Symbol)?) -> Integer
1366
+ @score: untyped
211
1367
 
212
- def bitop: (String operation, String destkey, *(String | Array[String]) keys) -> Integer
1368
+ @payload: untyped
213
1369
 
214
- def bitpos: (String key, Integer bit, ?Integer start, ?Integer stop, ?scale: (String | Symbol)?) -> Integer
215
- end
216
- end
217
- end
1370
+ attr_reader id: untyped
218
1371
 
219
- class Redis
220
- module Commands
221
- module Cluster
222
- def cluster: (untyped subcommand, *untyped args) -> untyped
1372
+ attr_reader score: untyped
223
1373
 
224
- def asking: () -> String
225
- end
226
- end
227
- end
1374
+ attr_reader payload: untyped
228
1375
 
229
- class Redis
230
- module Commands
231
- module Connection
232
- def auth: (*Array[String] args) -> String
1376
+ attr_reader attributes: untyped
233
1377
 
234
- def ping: (?String message) -> String
1378
+ def initialize: (untyped id, ?attributes: ::Hash[untyped, untyped], ?score: untyped?, ?payload: untyped?) -> void
235
1379
 
236
- def echo: (String value) -> String
1380
+ def []: (untyped key) -> untyped
237
1381
 
238
- def select: (Integer db) -> String
1382
+ def key?: (untyped key) -> bool
239
1383
 
240
- def quit: () -> String
241
- end
242
- end
243
- end
1384
+ def to_h: () -> Hash[String, untyped]
244
1385
 
245
- class Redis
246
- module Commands
247
- module Geo
248
- def geoadd: (String key, *Array[untyped] member) -> Integer
1386
+ def ==: (untyped other) -> bool
249
1387
 
250
- def geohash: (String key, (String | Array[String]) member) -> Array[(String | nil)]
1388
+ alias eql? ==
251
1389
 
252
- def georadius: (*Array[untyped] args, **untyped geoptions) -> Array[String]
1390
+ def hash: () -> Integer
1391
+ end
253
1392
 
254
- def georadiusbymember: (*Array[untyped] args, **untyped geoptions) -> Array[String]
1393
+ class SearchResult
1394
+ @total: untyped
255
1395
 
256
- def geopos: (String key, (String | Array[String]) member) -> Array[(Array[String] | nil)]
1396
+ @documents: untyped
257
1397
 
258
- def geodist: (untyped key, untyped member1, untyped member2, ?::String unit) -> (String | nil)
1398
+ @warnings: untyped
259
1399
 
260
- private
1400
+ include Enumerable[untyped]
261
1401
 
262
- def _geoarguments: (*untyped args, ?options: untyped?, ?sort: untyped?, ?count: untyped?) -> untyped
263
- end
264
- end
265
- end
1402
+ attr_reader total: untyped
266
1403
 
267
- class Redis
268
- module Commands
269
- module Hashes
270
- def hlen: (String key) -> Integer
1404
+ attr_reader documents: untyped
271
1405
 
272
- def hset: (String key, *(Array[String] | Hash[String, String]) attrs) -> Integer
1406
+ attr_reader warnings: untyped
273
1407
 
274
- def hsetnx: (String key, String field, String value) -> bool
1408
+ def initialize: (untyped total, untyped documents, ?warnings: untyped) -> void
275
1409
 
276
- def hmset: (String key, *Array[String] attrs) -> String
1410
+ def each: () { (?) -> untyped } -> (Enumerator[untyped, untyped] | Array[Document])
277
1411
 
278
- def mapped_hmset: (String key, Hash[untyped, untyped] hash) -> String
1412
+ def []: (untyped index) -> (Document | nil)
279
1413
 
280
- def hget: (String key, String field) -> String?
1414
+ def size: () -> Integer
281
1415
 
282
- def hmget: (String key, *Array[String] fields) { (?) -> untyped } -> Array[String]
1416
+ alias length size
283
1417
 
284
- def mapped_hmget: (String key, *Array[String] fields) -> Hash[untyped, untyped]
1418
+ def empty?: () -> bool
1419
+ end
285
1420
 
286
- def hrandfield: (String key, ?Integer count, ?withvalues: bool, ?with_values: untyped) -> (nil | String | Array[String] | Array[[String, Float]])
1421
+ class AggregateResult
1422
+ @rows: untyped
287
1423
 
288
- def hdel: (String key, *untyped fields) -> Integer
1424
+ @cursor: untyped
289
1425
 
290
- def hexists: (String key, String field) -> bool
1426
+ include Enumerable[untyped]
291
1427
 
292
- def hincrby: (String key, String field, Integer increment) -> Integer
1428
+ attr_reader rows: untyped
293
1429
 
294
- def hincrbyfloat: (String key, String field, Float increment) -> Float
1430
+ attr_reader cursor: untyped
295
1431
 
296
- def hkeys: (String key) -> Array[String]
1432
+ def initialize: (untyped rows, ?cursor: untyped?) -> void
297
1433
 
298
- def hvals: (String key) -> Array[String]
1434
+ def each: () { (?) -> untyped } -> (Enumerator[untyped, untyped] | Array[Hash[untyped, untyped]])
299
1435
 
300
- def hgetall: (String key) -> Hash[String, String]
1436
+ def []: (untyped index) -> (Hash[untyped, untyped] | nil)
301
1437
 
302
- def hscan: (untyped key, (String | Integer) cursor, **Hash[untyped, untyped] options) -> (String | Array[[String, String]])
1438
+ def size: () -> Integer
303
1439
 
304
- def hscan_each: (untyped key, **Hash[untyped, untyped] options) ?{ (?) -> untyped } -> Enumerator[untyped, untyped]
305
- end
306
- end
307
- end
1440
+ alias length size
308
1441
 
309
- class Redis
310
- module Commands
311
- module HyperLogLog
312
- def pfadd: (String key, (String | Array[String]) member) -> bool
1442
+ def empty?: () -> bool
1443
+ end
313
1444
 
314
- def pfcount: (*(String | Array[String]) keys) -> Integer
1445
+ class HybridResult
1446
+ @rows: untyped
315
1447
 
316
- def pfmerge: (String dest_key, *(String | Array[String]) source_key) -> bool
317
- end
318
- end
319
- end
1448
+ @total: untyped
320
1449
 
321
- class Redis
322
- module Commands
323
- module Keys
324
- def scan: ((String | Integer) cursor, **Hash[untyped, untyped] options) -> (String | Array[String])
1450
+ @warnings: untyped
325
1451
 
326
- def scan_each: (**Hash[untyped, untyped] options) ?{ (?) -> untyped } -> Enumerator[untyped, untyped]
1452
+ @execution_time: untyped
327
1453
 
328
- def persist: (String key) -> bool
1454
+ @search_cursor: untyped
329
1455
 
330
- def expire: (String key, Integer seconds, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> bool
1456
+ @vsim_cursor: untyped
331
1457
 
332
- def expireat: (String key, Integer unix_time, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> bool
1458
+ include Enumerable[untyped]
333
1459
 
334
- def expiretime: (String key) -> Integer
1460
+ attr_reader rows: untyped
335
1461
 
336
- def ttl: (String key) -> Integer
1462
+ attr_reader total: untyped
337
1463
 
338
- def pexpire: (String key, Integer milliseconds, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> bool
1464
+ attr_reader warnings: untyped
339
1465
 
340
- def pexpireat: (String key, Integer ms_unix_time, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> bool
1466
+ attr_reader execution_time: untyped
341
1467
 
342
- def pexpiretime: (String key) -> Integer
1468
+ attr_reader search_cursor: untyped
343
1469
 
344
- def pttl: (String key) -> Integer
1470
+ attr_reader vsim_cursor: untyped
345
1471
 
346
- def dump: (String key) -> String?
1472
+ def initialize: (?rows: untyped, ?total: untyped?, ?warnings: untyped, ?execution_time: untyped?, ?search_cursor: untyped?, ?vsim_cursor: untyped?) -> void
347
1473
 
348
- def restore: (String key, String ttl, String serialized_value, ?replace: untyped?) -> String
1474
+ def each: () { (?) -> untyped } -> (Enumerator[untyped, untyped] | Array[Hash[untyped, untyped]])
349
1475
 
350
- def migrate: ((String | Array[String]) key, Hash[untyped, untyped] options) -> String
1476
+ def []: (untyped index) -> (Hash[untyped, untyped] | nil)
351
1477
 
352
- def del: (*(String | Array[String]) keys) -> (0 | untyped)
1478
+ def size: () -> Integer
353
1479
 
354
- def unlink: (*(String | Array[String]) keys) -> Integer
1480
+ alias length size
355
1481
 
356
- def exists: (*(String | Array[String]) keys) -> Integer
1482
+ def empty?: () -> bool
357
1483
 
358
- def exists?: (*(String | Array[String]) keys) -> bool
1484
+ def cursor?: () -> bool
1485
+ end
359
1486
 
360
- def keys: (?::String pattern) -> Array[String]
1487
+ module ResultParser
1488
+ def self?.search: (untyped reply, ?with_scores: bool, ?with_payloads: bool, ?no_content: bool, ?decode_fields: ::Hash[untyped, untyped]) -> (SearchResult | nil)
361
1489
 
362
- def move: (String key, Integer db) -> bool
1490
+ def self?.search_resp2: (untyped reply, untyped with_scores, untyped with_payloads, untyped no_content, untyped decode_fields) -> SearchResult
363
1491
 
364
- def copy: (String source, String destination, ?db: Integer?, ?replace: bool) -> bool
1492
+ def self?.search_resp3: (untyped reply, untyped decode_fields) -> SearchResult
365
1493
 
366
- def object: (*untyped args) -> untyped
1494
+ def self?.aggregate: (untyped reply) -> (AggregateResult | nil)
367
1495
 
368
- def randomkey: () -> String?
1496
+ def self?.normalize_aggregate_row: (untyped row) -> Hash[untyped, untyped]
369
1497
 
370
- def rename: (String old_name, String new_name) -> String
1498
+ def self?.hybrid: (untyped reply) -> (HybridResult | nil)
371
1499
 
372
- def renamenx: (String old_name, String new_name) -> bool
1500
+ def self?.hashify_info: (untyped reply) -> (Hash[untyped, untyped] | nil)
373
1501
 
374
- def sort: (String key, ?by: untyped?, ?limit: untyped?, ?get: untyped?, ?order: untyped?, ?store: untyped?) -> (Array[String] | Array[Array[String]] | Integer)
1502
+ def self?.config_get: (untyped reply) -> (Hash[untyped, untyped] | nil)
375
1503
 
376
- def type: (String key) -> String
1504
+ def self?.syndump: (untyped reply) -> untyped
377
1505
 
378
- private
1506
+ def self?.spellcheck: (untyped reply) -> untyped
1507
+
1508
+ def self?.normalize_score: (untyped score) -> Hash[String, untyped]
379
1509
 
380
- def _scan: (untyped command, untyped cursor, untyped args, ?match: untyped?, ?count: untyped?, ?type: untyped?) { (?) -> untyped } -> untyped
1510
+ def self?.hashify_fields: (untyped fields, untyped decode_fields) -> (::Hash[untyped, untyped] | untyped)
1511
+
1512
+ def self?.decode_value: (untyped value) -> untyped
1513
+ end
381
1514
  end
382
1515
  end
383
1516
  end
384
1517
 
385
1518
  class Redis
386
1519
  module Commands
387
- module Lists
388
- def llen: (String key) -> Integer
389
-
390
- def lmove: (String source, String destination, (String | Symbol) where_source, (String | Symbol) where_destination) -> (nil | String)
391
-
392
- def blmove: (String source, String destination, (String | Symbol) where_source, (String | Symbol) where_destination, ?timeout: ::Integer) -> (nil | String)
1520
+ module Search
1521
+ class Schema
1522
+ @fields: untyped
393
1523
 
394
- def lpush: (String key, (String | Array[String]) value) -> Integer
1524
+ include Enumerable[untyped]
395
1525
 
396
- def lpushx: (String key, String value) -> Integer
1526
+ attr_reader fields: untyped
397
1527
 
398
- def rpush: (String key, (String | Array[String]) value) -> Integer
1528
+ def initialize: (?Array[Field] fields) -> void
399
1529
 
400
- def rpushx: (String key, String value) -> Integer
1530
+ def field: ((String | Symbol) name) -> (Field | nil)
401
1531
 
402
- def lpop: (String key, ?Integer count) -> (nil | String | Array[String])
1532
+ def each: () { (?) -> untyped } -> (Enumerator[untyped, untyped] | Array[Field])
403
1533
 
404
- def rpop: (String key, ?Integer count) -> (nil | String | Array[String])
1534
+ def to_args: () -> Array[untyped]
405
1535
 
406
- def rpoplpush: (String source, String destination) -> (nil | String)
1536
+ def self.build: () { (?) -> untyped } -> Schema
1537
+ end
407
1538
 
408
- def blpop: (*untyped args) -> (nil | [String, String])
1539
+ class SchemaDefinition
1540
+ @fields: untyped
409
1541
 
410
- def brpop: (*untyped args) -> (nil | [String, String])
1542
+ attr_reader fields: untyped
411
1543
 
412
- def brpoplpush: (String source, String destination, ?timeout: ::Integer) -> (nil | String)
1544
+ def initialize: () -> void
413
1545
 
414
- def blmpop: (untyped timeout, *untyped keys, ?modifier: ::String, ?count: untyped?) -> Array[(String | Array[(String | Float)])]
1546
+ def text_field: ((String | Symbol) name, **untyped options) -> Array[Field]
415
1547
 
416
- def lmpop: (*untyped keys, ?modifier: ::String, ?count: untyped?) -> Array[(String | Array[(String | Float)])]
1548
+ def numeric_field: ((String | Symbol) name, **untyped options) -> Array[Field]
417
1549
 
418
- def lindex: (String key, Integer index) -> String?
1550
+ def tag_field: ((String | Symbol) name, **untyped options) -> Array[Field]
419
1551
 
420
- def linsert: (String key, (String | Symbol) where, String pivot, String value) -> Integer
1552
+ def geo_field: ((String | Symbol) name, **untyped options) -> Array[Field]
421
1553
 
422
- def lrange: (String key, Integer start, Integer stop) -> Array[String]
1554
+ def geoshape_field: ((String | Symbol) name, ?(String | nil) coord_system, **untyped options) -> Array[Field]
423
1555
 
424
- def lrem: (String key, Integer count, String value) -> Integer
1556
+ def vector_field: ((String | Symbol) name, (String | Symbol) algorithm, **Hash[untyped, untyped] attributes) ?{ (?) -> untyped } -> Array[Field]
1557
+ end
425
1558
 
426
- def lset: (String key, Integer index, String value) -> String
1559
+ class VectorFieldDefinition
1560
+ @field: untyped
427
1561
 
428
- def ltrim: (String key, Integer start, Integer stop) -> String
1562
+ def initialize: (untyped field) -> void
429
1563
 
430
- private
1564
+ def type: (untyped value) -> untyped
431
1565
 
432
- def _bpop: (untyped cmd, untyped args) { (?) -> untyped } -> untyped
1566
+ def dim: (untyped value) -> untyped
433
1567
 
434
- def _normalize_move_wheres: (untyped where_source, untyped where_destination) -> ::Array[untyped]
1568
+ def distance_metric: (untyped value) -> untyped
1569
+ end
435
1570
  end
436
1571
  end
437
1572
  end
@@ -553,6 +1688,8 @@ class Redis
553
1688
 
554
1689
  def sdiffstore: (String destination, *(String | Array[String]) keys) -> Integer
555
1690
 
1691
+ def sdiffcard: (*(String | Array[String]) keys, ?limit: Integer?) -> Integer
1692
+
556
1693
  def sinter: (*(String | Array[String]) keys) -> Array[String]
557
1694
 
558
1695
  def sinterstore: (String destination, *(String | Array[String]) keys) -> Integer
@@ -561,6 +1698,8 @@ class Redis
561
1698
 
562
1699
  def sunionstore: (String destination, *(String | Array[String]) keys) -> Integer
563
1700
 
1701
+ def sunioncard: (*(String | Array[String]) keys, ?approx: bool, ?limit: Integer?) -> Integer
1702
+
564
1703
  def sscan: (untyped key, (String | Integer) cursor, **Hash[untyped, untyped] options) -> (String | Array[String])
565
1704
 
566
1705
  def sscan_each: (untyped key, **Hash[untyped, untyped] options) ?{ (?) -> untyped } -> Enumerator[untyped, untyped]
@@ -653,7 +1792,7 @@ class Redis
653
1792
  module Streams
654
1793
  def xinfo: (untyped subcommand, untyped key, ?untyped? group) -> Array[Hash[untyped, untyped]]
655
1794
 
656
- def xadd: (untyped key, untyped entry, ?approximate: untyped?, ?maxlen: untyped?, ?minid: untyped?, ?nomkstream: untyped?, ?id: ::String) -> String
1795
+ def xadd: (untyped key, untyped entry, ?approximate: untyped?, ?maxlen: untyped?, ?minid: untyped?, ?limit: untyped?, ?nomkstream: untyped?, ?id: ::String) -> String
657
1796
 
658
1797
  def xtrim: (untyped key, untyped len_or_id, ?strategy: ::String, ?approximate: bool, ?limit: untyped?) -> Integer
659
1798
 
@@ -665,11 +1804,11 @@ class Redis
665
1804
 
666
1805
  def xlen: (untyped key) -> Integer
667
1806
 
668
- def xread: (untyped keys, untyped ids, ?count: untyped?, ?block: untyped?) -> Hash[String, Hash[String, Hash[untyped, untyped]]]
1807
+ def xread: (untyped keys, untyped ids, ?count: untyped?, ?max_count: untyped?, ?max_size: untyped?, ?block: untyped?) -> Hash[String, Hash[String, Hash[untyped, untyped]]]
669
1808
 
670
1809
  def xgroup: (untyped subcommand, untyped key, untyped group, ?untyped? id_or_consumer, ?mkstream: bool) -> Integer
671
1810
 
672
- def xreadgroup: (untyped group, untyped consumer, untyped keys, untyped ids, ?count: untyped?, ?block: untyped?, ?noack: untyped?) -> Hash[String, Hash[String, Hash[untyped, untyped]]]
1811
+ def xreadgroup: (untyped group, untyped consumer, untyped keys, untyped ids, ?count: untyped?, ?max_count: untyped?, ?max_size: untyped?, ?block: untyped?, ?noack: untyped?) -> Hash[String, Hash[String, Hash[untyped, untyped]]]
673
1812
 
674
1813
  def xack: (untyped key, untyped group, *untyped ids) -> Integer
675
1814
 
@@ -764,6 +1903,8 @@ class Redis
764
1903
 
765
1904
  @default_options: untyped
766
1905
 
1906
+ @himport_fieldsets: untyped
1907
+
767
1908
  @subscribed_node: untyped
768
1909
 
769
1910
  @watch_key: untyped
@@ -894,6 +2035,50 @@ class Redis
894
2035
 
895
2036
  def getex: (untyped key, **untyped options) -> String?
896
2037
 
2038
+ def json_set: (untyped key, untyped path, untyped value, **untyped options) -> untyped
2039
+
2040
+ def json_get: (untyped key, *untyped paths, **untyped options) -> untyped
2041
+
2042
+ def json_mset: (*untyped) -> untyped
2043
+
2044
+ def json_mget: (*untyped keys, untyped path, **untyped options) -> untyped
2045
+
2046
+ def json_del: (untyped key, ?untyped? path) -> untyped
2047
+
2048
+ def json_forget: (untyped key, ?untyped? path) -> untyped
2049
+
2050
+ def json_clear: (untyped key, ?untyped? path) -> untyped
2051
+
2052
+ def json_merge: (untyped key, untyped path, untyped value, **untyped options) -> untyped
2053
+
2054
+ def json_arrappend: (untyped key, untyped path, *untyped values, **untyped options) -> untyped
2055
+
2056
+ def json_arrindex: (untyped key, untyped path, untyped value, **untyped options) -> untyped
2057
+
2058
+ def json_arrinsert: (untyped key, untyped path, untyped index, *untyped values, **untyped options) -> untyped
2059
+
2060
+ def json_arrlen: (untyped key, ?untyped? path) -> untyped
2061
+
2062
+ def json_arrpop: (untyped key, ?untyped? path, ?untyped? index, **untyped options) -> untyped
2063
+
2064
+ def json_arrtrim: (untyped key, untyped path, untyped start, untyped stop) -> untyped
2065
+
2066
+ def json_numincrby: (untyped key, untyped path, untyped number) -> untyped
2067
+
2068
+ def json_type: (untyped key, ?untyped? path) -> untyped
2069
+
2070
+ def json_objkeys: (untyped key, ?untyped? path) -> untyped
2071
+
2072
+ def json_objlen: (untyped key, ?untyped? path) -> untyped
2073
+
2074
+ def json_strlen: (untyped key, ?untyped? path) -> untyped
2075
+
2076
+ def json_strappend: (untyped key, untyped path, untyped value, **untyped options) -> untyped
2077
+
2078
+ def json_toggle: (untyped key, untyped path) -> untyped
2079
+
2080
+ def json_debug_memory: (untyped key, ?untyped? path) -> untyped
2081
+
897
2082
  def mget: (*untyped keys) -> untyped
898
2083
 
899
2084
  def mapped_mget: (*untyped keys) -> untyped
@@ -926,8 +2111,12 @@ class Redis
926
2111
 
927
2112
  def lmove: (untyped source, untyped destination, untyped where_source, untyped where_destination) -> untyped
928
2113
 
2114
+ def lmovem: (untyped source, untyped destination, untyped where_source, untyped where_destination, ?count: untyped?, ?exactly: untyped?, ?order: untyped?) -> untyped
2115
+
929
2116
  def blmove: (untyped source, untyped destination, untyped where_source, untyped where_destination, ?timeout: ::Integer) -> untyped
930
2117
 
2118
+ def blmovem: (untyped source, untyped destination, untyped where_source, untyped where_destination, ?timeout: ::Integer, ?count: untyped?, ?exactly: untyped?, ?order: untyped?) -> untyped
2119
+
931
2120
  def lpush: (untyped key, untyped value) -> untyped
932
2121
 
933
2122
  def lpushx: (untyped key, untyped value) -> untyped
@@ -1000,6 +2189,8 @@ class Redis
1000
2189
 
1001
2190
  def sdiffstore: (untyped destination, *untyped keys) -> untyped
1002
2191
 
2192
+ def sdiffcard: (*untyped keys, ?limit: untyped?) -> untyped
2193
+
1003
2194
  def sinter: (*untyped keys) -> untyped
1004
2195
 
1005
2196
  def sinterstore: (untyped destination, *untyped keys) -> untyped
@@ -1008,6 +2199,8 @@ class Redis
1008
2199
 
1009
2200
  def sunionstore: (untyped destination, *untyped keys) -> untyped
1010
2201
 
2202
+ def sunioncard: (*untyped keys, ?approx: bool, ?limit: untyped?) -> untyped
2203
+
1011
2204
  def zcard: (untyped key) -> untyped
1012
2205
 
1013
2206
  def zadd: (untyped key, *untyped args) -> untyped
@@ -1090,6 +2283,44 @@ class Redis
1090
2283
 
1091
2284
  def hgetall: (untyped key) -> untyped
1092
2285
 
2286
+ def hexpire: (untyped key, untyped ttl, *untyped fields) -> untyped
2287
+
2288
+ def httl: (untyped key, *untyped fields) -> untyped
2289
+
2290
+ def hscan: (untyped key, untyped cursor, **untyped options) -> untyped
2291
+
2292
+ def hscan_each: (untyped key, **untyped options) { (?) -> untyped } -> untyped
2293
+
2294
+ def hstrlen: (untyped key, untyped field) -> untyped
2295
+
2296
+ def hpexpire: (untyped key, untyped ttl, *untyped fields, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> untyped
2297
+
2298
+ def hpttl: (untyped key, *untyped fields) -> untyped
2299
+
2300
+ def himport_prepare: (untyped fieldset_name, *untyped fields) -> untyped
2301
+
2302
+ def himport_set: (untyped key, untyped fieldset_name, *untyped values) -> untyped
2303
+
2304
+ def himport_discard: (untyped fieldset_name) -> untyped
2305
+
2306
+ def himport_discard_all: () -> untyped
2307
+
2308
+ def geoadd: (untyped key, *untyped member, **untyped options) -> untyped
2309
+
2310
+ def geohash: (untyped key, untyped member) -> untyped
2311
+
2312
+ def geopos: (untyped key, untyped member) -> Array[::Redis::geo_coordinates?]
2313
+
2314
+ def geodist: (untyped key, untyped member1, untyped member2, ?::String unit) -> untyped
2315
+
2316
+ def georadius: (*untyped args, **untyped geoptions) -> (::Redis::geo_search_reply | Integer)
2317
+
2318
+ def georadiusbymember: (*untyped args, **untyped geoptions) -> (::Redis::geo_search_reply | Integer)
2319
+
2320
+ def geosearch: (untyped key, **untyped options) -> ::Redis::geo_search_reply
2321
+
2322
+ def geosearchstore: (untyped destination, untyped source, **untyped options) -> untyped
2323
+
1093
2324
  def publish: (untyped channel, untyped message) -> untyped
1094
2325
 
1095
2326
  def subscribed?: () -> bool
@@ -1230,6 +2461,38 @@ class Redis
1230
2461
  end
1231
2462
  end
1232
2463
 
2464
+ class Redis
2465
+ module LibIdentity
2466
+ MARKER: "redis-rb_v"
2467
+
2468
+ LIB_NAME: "redis-rb"
2469
+
2470
+ SEPARATOR: ";"
2471
+
2472
+ OWN_INFO: ::String
2473
+
2474
+ OWN_PREFIX: ::String
2475
+
2476
+ INVALID_CHARS: ::Regexp
2477
+
2478
+ def self.driver_info: (?untyped? downstream) -> untyped
2479
+
2480
+ def self.ours?: (untyped info) -> bool
2481
+
2482
+ def self.setinfo_commands: (untyped info) -> ::Array[::Array["CLIENT" | "SETINFO" | "LIB-NAME" | untyped] | ::Array["CLIENT" | "SETINFO" | "LIB-VER" | untyped]]
2483
+
2484
+ private
2485
+
2486
+ def self.combine: (untyped downstream) -> untyped
2487
+
2488
+ def self.lib_name: (untyped info) -> untyped
2489
+
2490
+ public
2491
+
2492
+ def connection_prelude: () -> untyped
2493
+ end
2494
+ end
2495
+
1233
2496
  class Redis
1234
2497
  class PipelinedConnection
1235
2498
  @pipeline: untyped
@@ -1342,6 +2605,8 @@ class Redis
1342
2605
  class Subscription
1343
2606
  @callbacks: untyped
1344
2607
 
2608
+ attr_reader callbacks: untyped
2609
+
1345
2610
  def initialize: () { (untyped) -> untyped } -> void
1346
2611
 
1347
2612
  def subscribe: () { (?) -> untyped } -> untyped
@@ -1365,5 +2630,5 @@ class Redis
1365
2630
  end
1366
2631
 
1367
2632
  class Redis
1368
- VERSION: "5.4.1"
2633
+ VERSION: "6.0.0"
1369
2634
  end