minitest-distributed 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +16 -4
  3. data/Gemfile +1 -0
  4. data/docker-compose.yml +5 -0
  5. data/lib/minitest/distributed/configuration.rb +5 -0
  6. data/lib/minitest/distributed/reporters/test_order_reporter.rb +36 -0
  7. data/lib/minitest/distributed/test_selector.rb +11 -1
  8. data/lib/minitest/distributed/version.rb +1 -1
  9. data/lib/minitest/test_order_plugin.rb +21 -0
  10. data/minitest-distributed.gemspec +1 -1
  11. data/sorbet/config +1 -0
  12. data/sorbet/rbi/gems/ast.rbi +49 -0
  13. data/sorbet/rbi/gems/connection_pool.rbi +55 -0
  14. data/sorbet/rbi/gems/minitest-distributed.rbi +15 -0
  15. data/sorbet/rbi/gems/minitest.rbi +426 -0
  16. data/sorbet/rbi/gems/parallel.rbi +86 -0
  17. data/sorbet/rbi/gems/parser.rbi +1477 -0
  18. data/sorbet/rbi/gems/rainbow.rbi +122 -0
  19. data/sorbet/rbi/gems/rake.rbi +647 -0
  20. data/sorbet/rbi/gems/redis-client.rbi +311 -0
  21. data/sorbet/rbi/gems/redis.rbi +409 -0
  22. data/sorbet/rbi/gems/regexp_parser.rbi +984 -0
  23. data/sorbet/rbi/gems/rexml.rbi +599 -0
  24. data/sorbet/rbi/gems/rubocop-ast.rbi +1398 -0
  25. data/sorbet/rbi/gems/rubocop-minitest.rbi +406 -0
  26. data/sorbet/rbi/gems/rubocop-rake.rbi +85 -0
  27. data/sorbet/rbi/gems/rubocop-sorbet.rbi +218 -0
  28. data/sorbet/rbi/gems/rubocop.rbi +9351 -0
  29. data/sorbet/rbi/gems/ruby-progressbar.rbi +304 -0
  30. data/sorbet/rbi/gems/toxiproxy.rbi +112 -0
  31. data/sorbet/rbi/gems/unicode-display_width.rbi +23 -0
  32. data/sorbet/rbi/minitest.rbi +5 -1
  33. data/sorbet/rbi/rails.rbi +1 -0
  34. data/sorbet/rbi/rbconfig.rbi +1 -1
  35. metadata +26 -5
  36. data/sorbet/rbi/redis.rbi +0 -106
@@ -0,0 +1,311 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strict
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/redis-client/all/redis-client.rbi
9
+ #
10
+ # redis-client-0.11.2
11
+
12
+ class RedisClient
13
+ def blocking_call(timeout, *command, **kwargs); end
14
+ def blocking_call_v(timeout, command); end
15
+ def build_transaction; end
16
+ def call(*command, **kwargs); end
17
+ def call_once(*command, **kwargs); end
18
+ def call_once_v(command); end
19
+ def call_v(command); end
20
+ def close; end
21
+ def connect; end
22
+ def connected?; end
23
+ def ensure_connected(retryable: nil); end
24
+ def hscan(key, *args, **kwargs, &block); end
25
+ def initialize(config, **); end
26
+ def inspect; end
27
+ def multi(watch: nil, &block); end
28
+ def pipelined; end
29
+ def pubsub; end
30
+ def raw_connection; end
31
+ def read_timeout=(timeout); end
32
+ def scan(*args, **kwargs, &block); end
33
+ def scan_list(cursor_index, command, &block); end
34
+ def scan_pairs(cursor_index, command); end
35
+ def self.config(**kwargs); end
36
+ def self.default_driver; end
37
+ def self.default_driver=(name); end
38
+ def self.driver(name); end
39
+ def self.new(arg = nil, **kwargs); end
40
+ def self.register(middleware); end
41
+ def self.register_driver(name, &block); end
42
+ def self.sentinel(**kwargs); end
43
+ def size; end
44
+ def sscan(key, *args, **kwargs, &block); end
45
+ def then(_options = nil); end
46
+ def timeout=(timeout); end
47
+ def with(_options = nil); end
48
+ def write_timeout=(timeout); end
49
+ def zscan(key, *args, **kwargs, &block); end
50
+ include RedisClient::Common
51
+ end
52
+ module RedisClient::CommandBuilder
53
+ def generate(args, kwargs = nil); end
54
+ extend RedisClient::CommandBuilder
55
+ end
56
+ class RedisClient::Config
57
+ def host; end
58
+ def initialize(url: nil, host: nil, port: nil, path: nil, **kwargs); end
59
+ def path; end
60
+ def port; end
61
+ include RedisClient::Config::Common
62
+ end
63
+ module RedisClient::Config::Common
64
+ def build_connection_prelude; end
65
+ def command_builder; end
66
+ def connect_timeout; end
67
+ def connection_prelude; end
68
+ def custom; end
69
+ def db; end
70
+ def driver; end
71
+ def id; end
72
+ def inherit_socket; end
73
+ def initialize(username: nil, password: nil, db: nil, id: nil, timeout: nil, read_timeout: nil, write_timeout: nil, connect_timeout: nil, ssl: nil, custom: nil, ssl_params: nil, driver: nil, protocol: nil, client_implementation: nil, command_builder: nil, inherit_socket: nil, reconnect_attempts: nil, middlewares: nil); end
74
+ def middlewares_stack; end
75
+ def new_client(**kwargs); end
76
+ def new_pool(**kwargs); end
77
+ def password; end
78
+ def protocol; end
79
+ def read_timeout; end
80
+ def retry_connecting?(attempt, _error); end
81
+ def sentinel?; end
82
+ def server_url; end
83
+ def ssl; end
84
+ def ssl?; end
85
+ def ssl_context; end
86
+ def ssl_params; end
87
+ def username; end
88
+ def write_timeout; end
89
+ end
90
+ class RedisClient::SentinelConfig
91
+ def check_role!(role); end
92
+ def config; end
93
+ def each_sentinel; end
94
+ def host; end
95
+ def initialize(name:, sentinels:, role: nil, **client_config); end
96
+ def path; end
97
+ def port; end
98
+ def reset; end
99
+ def resolve_master; end
100
+ def resolve_replica; end
101
+ def retry_connecting?(attempt, error); end
102
+ def sentinel?; end
103
+ def sentinel_client(sentinel_config); end
104
+ def sentinels; end
105
+ include RedisClient::Config::Common
106
+ end
107
+ class RedisClient::BasicMiddleware
108
+ def call(command, _config); end
109
+ def call_pipelined(command, _config); end
110
+ def client; end
111
+ def connect(_config); end
112
+ def initialize(client); end
113
+ end
114
+ class RedisClient::Middlewares < RedisClient::BasicMiddleware
115
+ end
116
+ class RedisClient::Pooled
117
+ def blocking_call(*args, **, &block); end
118
+ def blocking_call_v(*args, **, &block); end
119
+ def call(*args, **, &block); end
120
+ def call_once(*args, **, &block); end
121
+ def call_once_v(*args, **, &block); end
122
+ def call_v(*args, **, &block); end
123
+ def close; end
124
+ def hscan(*args, **, &block); end
125
+ def initialize(config, id: nil, connect_timeout: nil, read_timeout: nil, write_timeout: nil, **kwargs); end
126
+ def multi(*args, **, &block); end
127
+ def new_pool; end
128
+ def pipelined(*args, **, &block); end
129
+ def pool; end
130
+ def pubsub(*args, **, &block); end
131
+ def scan(*args, **, &block); end
132
+ def size; end
133
+ def sscan(*args, **, &block); end
134
+ def then(options = nil); end
135
+ def with(options = nil); end
136
+ def zscan(*args, **, &block); end
137
+ include RedisClient::Common
138
+ end
139
+ module RedisClient::ConnectionMixin
140
+ def call(command, timeout); end
141
+ def call_pipelined(commands, timeouts); end
142
+ def initialize; end
143
+ def revalidate; end
144
+ end
145
+ class RedisClient::RubyConnection
146
+ def close; end
147
+ def connected?; end
148
+ def initialize(config, connect_timeout:, read_timeout:, write_timeout:); end
149
+ def read(timeout = nil); end
150
+ def read_timeout=(timeout); end
151
+ def self.ssl_context(ssl_params); end
152
+ def write(command); end
153
+ def write_multi(commands); end
154
+ def write_timeout=(timeout); end
155
+ include RedisClient::ConnectionMixin
156
+ end
157
+ class RedisClient::RubyConnection::BufferedIO
158
+ def close; end
159
+ def closed?; end
160
+ def ensure_remaining(bytes); end
161
+ def eof?; end
162
+ def fill_buffer(strict, size = nil); end
163
+ def getbyte; end
164
+ def gets_chomp; end
165
+ def initialize(io, read_timeout:, write_timeout:, chunk_size: nil); end
166
+ def read_chomp(bytes); end
167
+ def read_timeout; end
168
+ def read_timeout=(arg0); end
169
+ def skip(offset); end
170
+ def with_timeout(new_timeout); end
171
+ def write(string); end
172
+ def write_timeout; end
173
+ def write_timeout=(arg0); end
174
+ end
175
+ module RedisClient::RESP3
176
+ def dump(command, buffer = nil); end
177
+ def dump_any(object, buffer); end
178
+ def dump_array(array, buffer); end
179
+ def dump_hash(hash, buffer); end
180
+ def dump_numeric(numeric, buffer); end
181
+ def dump_set(set, buffer); end
182
+ def dump_string(string, buffer); end
183
+ def dump_symbol(symbol, buffer); end
184
+ def load(io); end
185
+ def new_buffer; end
186
+ def parse(io); end
187
+ def parse_array(io); end
188
+ def parse_blob(io); end
189
+ def parse_boolean(io); end
190
+ def parse_double(io); end
191
+ def parse_error(io); end
192
+ def parse_integer(io); end
193
+ def parse_map(io); end
194
+ def parse_null(io); end
195
+ def parse_push(io); end
196
+ def parse_sequence(io, size); end
197
+ def parse_set(io); end
198
+ def parse_string(io); end
199
+ def parse_verbatim_string(io); end
200
+ def self.dump(command, buffer = nil); end
201
+ def self.dump_any(object, buffer); end
202
+ def self.dump_array(array, buffer); end
203
+ def self.dump_hash(hash, buffer); end
204
+ def self.dump_numeric(numeric, buffer); end
205
+ def self.dump_set(set, buffer); end
206
+ def self.dump_string(string, buffer); end
207
+ def self.dump_symbol(symbol, buffer); end
208
+ def self.load(io); end
209
+ def self.new_buffer; end
210
+ def self.parse(io); end
211
+ def self.parse_array(io); end
212
+ def self.parse_blob(io); end
213
+ def self.parse_boolean(io); end
214
+ def self.parse_double(io); end
215
+ def self.parse_error(io); end
216
+ def self.parse_integer(io); end
217
+ def self.parse_map(io); end
218
+ def self.parse_null(io); end
219
+ def self.parse_push(io); end
220
+ def self.parse_sequence(io, size); end
221
+ def self.parse_set(io); end
222
+ def self.parse_string(io); end
223
+ def self.parse_verbatim_string(io); end
224
+ end
225
+ class RedisClient::RESP3::Error < RedisClient::Error
226
+ end
227
+ class RedisClient::RESP3::UnknownType < RedisClient::RESP3::Error
228
+ end
229
+ class RedisClient::RESP3::SyntaxError < RedisClient::RESP3::Error
230
+ end
231
+ module RedisClient::Common
232
+ def config; end
233
+ def connect_timeout; end
234
+ def connect_timeout=(arg0); end
235
+ def id; end
236
+ def initialize(config, id: nil, connect_timeout: nil, read_timeout: nil, write_timeout: nil); end
237
+ def read_timeout; end
238
+ def read_timeout=(arg0); end
239
+ def timeout=(timeout); end
240
+ def write_timeout; end
241
+ def write_timeout=(arg0); end
242
+ end
243
+ class RedisClient::Error < StandardError
244
+ end
245
+ class RedisClient::ProtocolError < RedisClient::Error
246
+ end
247
+ class RedisClient::UnsupportedServer < RedisClient::Error
248
+ end
249
+ class RedisClient::ConnectionError < RedisClient::Error
250
+ end
251
+ class RedisClient::CannotConnectError < RedisClient::ConnectionError
252
+ end
253
+ class RedisClient::FailoverError < RedisClient::ConnectionError
254
+ end
255
+ class RedisClient::TimeoutError < RedisClient::ConnectionError
256
+ end
257
+ class RedisClient::ReadTimeoutError < RedisClient::TimeoutError
258
+ end
259
+ class RedisClient::WriteTimeoutError < RedisClient::TimeoutError
260
+ end
261
+ class RedisClient::CheckoutTimeoutError < RedisClient::TimeoutError
262
+ end
263
+ module RedisClient::HasCommand
264
+ def _set_command(command); end
265
+ def command; end
266
+ end
267
+ class RedisClient::CommandError < RedisClient::Error
268
+ def self.parse(error_message); end
269
+ include RedisClient::HasCommand
270
+ end
271
+ class RedisClient::AuthenticationError < RedisClient::CommandError
272
+ end
273
+ class RedisClient::PermissionError < RedisClient::CommandError
274
+ end
275
+ class RedisClient::WrongTypeError < RedisClient::CommandError
276
+ end
277
+ class RedisClient::OutOfMemoryError < RedisClient::CommandError
278
+ end
279
+ class RedisClient::ReadOnlyError < RedisClient::ConnectionError
280
+ include RedisClient::HasCommand
281
+ end
282
+ class RedisClient::PubSub
283
+ def call(*command, **kwargs); end
284
+ def call_v(command); end
285
+ def close; end
286
+ def initialize(raw_connection, command_builder); end
287
+ def next_event(timeout = nil); end
288
+ def raw_connection; end
289
+ end
290
+ class RedisClient::Multi
291
+ def _blocks; end
292
+ def _coerce!(results); end
293
+ def _commands; end
294
+ def _empty?; end
295
+ def _retryable?; end
296
+ def _size; end
297
+ def _timeouts; end
298
+ def call(*command, **kwargs, &block); end
299
+ def call_once(*command, **kwargs, &block); end
300
+ def call_once_v(command, &block); end
301
+ def call_v(command, &block); end
302
+ def initialize(command_builder); end
303
+ end
304
+ class RedisClient::Pipeline < RedisClient::Multi
305
+ def _coerce!(results); end
306
+ def _empty?; end
307
+ def _timeouts; end
308
+ def blocking_call(timeout, *command, **kwargs, &block); end
309
+ def blocking_call_v(timeout, command, &block); end
310
+ def initialize(_command_builder); end
311
+ end
@@ -0,0 +1,409 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strict
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/redis/all/redis.rbi
9
+ #
10
+ # redis-5.0.6
11
+
12
+ class Redis
13
+ def _client; end
14
+ def _subscription(method, timeout, channels, block); end
15
+ def close; end
16
+ def connected?; end
17
+ def connection; end
18
+ def disconnect!; end
19
+ def dup; end
20
+ def id; end
21
+ def initialize(options = nil); end
22
+ def initialize_client(options); end
23
+ def inspect; end
24
+ def pipelined; end
25
+ def self.deprecate!(message); end
26
+ def self.raise_deprecations; end
27
+ def self.raise_deprecations=(arg0); end
28
+ def self.silence_deprecations; end
29
+ def self.silence_deprecations=(arg0); end
30
+ def send_blocking_command(command, timeout, &block); end
31
+ def send_command(command, &block); end
32
+ def synchronize; end
33
+ def with; end
34
+ def without_reconnect(&block); end
35
+ include Redis::Commands
36
+ end
37
+ class Redis::BaseError < StandardError
38
+ end
39
+ class Redis::ProtocolError < Redis::BaseError
40
+ def initialize(reply_type); end
41
+ end
42
+ class Redis::CommandError < Redis::BaseError
43
+ end
44
+ class Redis::PermissionError < Redis::CommandError
45
+ end
46
+ class Redis::WrongTypeError < Redis::CommandError
47
+ end
48
+ class Redis::OutOfMemoryError < Redis::CommandError
49
+ end
50
+ class Redis::BaseConnectionError < Redis::BaseError
51
+ end
52
+ class Redis::CannotConnectError < Redis::BaseConnectionError
53
+ end
54
+ class Redis::ConnectionError < Redis::BaseConnectionError
55
+ end
56
+ class Redis::TimeoutError < Redis::BaseConnectionError
57
+ end
58
+ class Redis::InheritedError < Redis::BaseConnectionError
59
+ end
60
+ class Redis::ReadOnlyError < Redis::BaseConnectionError
61
+ end
62
+ class Redis::InvalidClientOptionError < Redis::BaseError
63
+ end
64
+ class Redis::SubscriptionError < Redis::BaseError
65
+ end
66
+ module Redis::Commands
67
+ def call(*command); end
68
+ def method_missing(*command); end
69
+ def sentinel(subcommand, *args); end
70
+ include Redis::Commands::Bitmaps
71
+ include Redis::Commands::Cluster
72
+ include Redis::Commands::Connection
73
+ include Redis::Commands::Geo
74
+ include Redis::Commands::Hashes
75
+ include Redis::Commands::HyperLogLog
76
+ include Redis::Commands::Keys
77
+ include Redis::Commands::Lists
78
+ include Redis::Commands::Pubsub
79
+ include Redis::Commands::Scripting
80
+ include Redis::Commands::Server
81
+ include Redis::Commands::Sets
82
+ include Redis::Commands::SortedSets
83
+ include Redis::Commands::Streams
84
+ include Redis::Commands::Strings
85
+ include Redis::Commands::Transactions
86
+ end
87
+ module Redis::Commands::Bitmaps
88
+ def bitcount(key, start = nil, stop = nil); end
89
+ def bitop(operation, destkey, *keys); end
90
+ def bitpos(key, bit, start = nil, stop = nil); end
91
+ def getbit(key, offset); end
92
+ def setbit(key, offset, value); end
93
+ end
94
+ module Redis::Commands::Cluster
95
+ def asking; end
96
+ def cluster(subcommand, *args); end
97
+ end
98
+ module Redis::Commands::Connection
99
+ def auth(*args); end
100
+ def echo(value); end
101
+ def ping(message = nil); end
102
+ def quit; end
103
+ def select(db); end
104
+ end
105
+ module Redis::Commands::Geo
106
+ def _geoarguments(*args, options: nil, sort: nil, count: nil); end
107
+ def geoadd(key, *member); end
108
+ def geodist(key, member1, member2, unit = nil); end
109
+ def geohash(key, member); end
110
+ def geopos(key, member); end
111
+ def georadius(*args, **geoptions); end
112
+ def georadiusbymember(*args, **geoptions); end
113
+ end
114
+ module Redis::Commands::Hashes
115
+ def hdel(key, *fields); end
116
+ def hexists(key, field); end
117
+ def hget(key, field); end
118
+ def hgetall(key); end
119
+ def hincrby(key, field, increment); end
120
+ def hincrbyfloat(key, field, increment); end
121
+ def hkeys(key); end
122
+ def hlen(key); end
123
+ def hmget(key, *fields, &blk); end
124
+ def hmset(key, *attrs); end
125
+ def hrandfield(key, count = nil, withvalues: nil, with_values: nil); end
126
+ def hscan(key, cursor, **options); end
127
+ def hscan_each(key, **options, &block); end
128
+ def hset(key, *attrs); end
129
+ def hsetnx(key, field, value); end
130
+ def hvals(key); end
131
+ def mapped_hmget(key, *fields); end
132
+ def mapped_hmset(key, hash); end
133
+ end
134
+ module Redis::Commands::HyperLogLog
135
+ def pfadd(key, member); end
136
+ def pfcount(*keys); end
137
+ def pfmerge(dest_key, *source_key); end
138
+ end
139
+ module Redis::Commands::Keys
140
+ def _scan(command, cursor, args, match: nil, count: nil, type: nil, &block); end
141
+ def copy(source, destination, db: nil, replace: nil); end
142
+ def del(*keys); end
143
+ def dump(key); end
144
+ def exists(*keys); end
145
+ def exists?(*keys); end
146
+ def expire(key, seconds, nx: nil, xx: nil, gt: nil, lt: nil); end
147
+ def expireat(key, unix_time, nx: nil, xx: nil, gt: nil, lt: nil); end
148
+ def keys(pattern = nil); end
149
+ def migrate(key, options); end
150
+ def move(key, db); end
151
+ def object(*args); end
152
+ def persist(key); end
153
+ def pexpire(key, milliseconds, nx: nil, xx: nil, gt: nil, lt: nil); end
154
+ def pexpireat(key, ms_unix_time, nx: nil, xx: nil, gt: nil, lt: nil); end
155
+ def pttl(key); end
156
+ def randomkey; end
157
+ def rename(old_name, new_name); end
158
+ def renamenx(old_name, new_name); end
159
+ def restore(key, ttl, serialized_value, replace: nil); end
160
+ def scan(cursor, **options); end
161
+ def scan_each(**options, &block); end
162
+ def sort(key, by: nil, limit: nil, get: nil, order: nil, store: nil); end
163
+ def ttl(key); end
164
+ def type(key); end
165
+ def unlink(*keys); end
166
+ end
167
+ module Redis::Commands::Lists
168
+ def _bpop(cmd, args, &blk); end
169
+ def _normalize_move_wheres(where_source, where_destination); end
170
+ def blmove(source, destination, where_source, where_destination, timeout: nil); end
171
+ def blpop(*args); end
172
+ def brpop(*args); end
173
+ def brpoplpush(source, destination, timeout: nil); end
174
+ def lindex(key, index); end
175
+ def linsert(key, where, pivot, value); end
176
+ def llen(key); end
177
+ def lmove(source, destination, where_source, where_destination); end
178
+ def lpop(key, count = nil); end
179
+ def lpush(key, value); end
180
+ def lpushx(key, value); end
181
+ def lrange(key, start, stop); end
182
+ def lrem(key, count, value); end
183
+ def lset(key, index, value); end
184
+ def ltrim(key, start, stop); end
185
+ def rpop(key, count = nil); end
186
+ def rpoplpush(source, destination); end
187
+ def rpush(key, value); end
188
+ def rpushx(key, value); end
189
+ end
190
+ module Redis::Commands::Pubsub
191
+ def psubscribe(*channels, &block); end
192
+ def psubscribe_with_timeout(timeout, *channels, &block); end
193
+ def publish(channel, message); end
194
+ def pubsub(subcommand, *args); end
195
+ def punsubscribe(*channels); end
196
+ def subscribe(*channels, &block); end
197
+ def subscribe_with_timeout(timeout, *channels, &block); end
198
+ def subscribed?; end
199
+ def unsubscribe(*channels); end
200
+ end
201
+ module Redis::Commands::Scripting
202
+ def _eval(cmd, args); end
203
+ def eval(*args); end
204
+ def evalsha(*args); end
205
+ def script(subcommand, *args); end
206
+ end
207
+ module Redis::Commands::Server
208
+ def bgrewriteaof; end
209
+ def bgsave; end
210
+ def client(subcommand, *args); end
211
+ def config(action, *args); end
212
+ def dbsize; end
213
+ def debug(*args); end
214
+ def flushall(options = nil); end
215
+ def flushdb(options = nil); end
216
+ def info(cmd = nil); end
217
+ def lastsave; end
218
+ def monitor; end
219
+ def save; end
220
+ def shutdown; end
221
+ def slaveof(host, port); end
222
+ def slowlog(subcommand, length = nil); end
223
+ def sync; end
224
+ def time; end
225
+ end
226
+ module Redis::Commands::Sets
227
+ def sadd(key, *members); end
228
+ def sadd?(key, *members); end
229
+ def scard(key); end
230
+ def sdiff(*keys); end
231
+ def sdiffstore(destination, *keys); end
232
+ def sinter(*keys); end
233
+ def sinterstore(destination, *keys); end
234
+ def sismember(key, member); end
235
+ def smembers(key); end
236
+ def smismember(key, *members); end
237
+ def smove(source, destination, member); end
238
+ def spop(key, count = nil); end
239
+ def srandmember(key, count = nil); end
240
+ def srem(key, *members); end
241
+ def srem?(key, *members); end
242
+ def sscan(key, cursor, **options); end
243
+ def sscan_each(key, **options, &block); end
244
+ def sunion(*keys); end
245
+ def sunionstore(destination, *keys); end
246
+ end
247
+ module Redis::Commands::SortedSets
248
+ def _zsets_operation(cmd, *keys, weights: nil, aggregate: nil, with_scores: nil); end
249
+ def _zsets_operation_store(cmd, destination, keys, weights: nil, aggregate: nil); end
250
+ def bzpopmax(*args); end
251
+ def bzpopmin(*args); end
252
+ def zadd(key, *args, nx: nil, xx: nil, lt: nil, gt: nil, ch: nil, incr: nil); end
253
+ def zcard(key); end
254
+ def zcount(key, min, max); end
255
+ def zdiff(*keys, with_scores: nil); end
256
+ def zdiffstore(*args, **); end
257
+ def zincrby(key, increment, member); end
258
+ def zinter(*args, **); end
259
+ def zinterstore(*args, **); end
260
+ def zlexcount(key, min, max); end
261
+ def zmscore(key, *members); end
262
+ def zpopmax(key, count = nil); end
263
+ def zpopmin(key, count = nil); end
264
+ def zrandmember(key, count = nil, withscores: nil, with_scores: nil); end
265
+ def zrange(key, start, stop, byscore: nil, by_score: nil, bylex: nil, by_lex: nil, rev: nil, limit: nil, withscores: nil, with_scores: nil); end
266
+ def zrangebylex(key, min, max, limit: nil); end
267
+ def zrangebyscore(key, min, max, withscores: nil, with_scores: nil, limit: nil); end
268
+ def zrangestore(dest_key, src_key, start, stop, byscore: nil, by_score: nil, bylex: nil, by_lex: nil, rev: nil, limit: nil); end
269
+ def zrank(key, member); end
270
+ def zrem(key, member); end
271
+ def zremrangebyrank(key, start, stop); end
272
+ def zremrangebyscore(key, min, max); end
273
+ def zrevrange(key, start, stop, withscores: nil, with_scores: nil); end
274
+ def zrevrangebylex(key, max, min, limit: nil); end
275
+ def zrevrangebyscore(key, max, min, withscores: nil, with_scores: nil, limit: nil); end
276
+ def zrevrank(key, member); end
277
+ def zscan(key, cursor, **options); end
278
+ def zscan_each(key, **options, &block); end
279
+ def zscore(key, member); end
280
+ def zunion(*args, **); end
281
+ def zunionstore(*args, **); end
282
+ end
283
+ module Redis::Commands::Streams
284
+ def _xread(args, keys, ids, blocking_timeout_msec); end
285
+ def xack(key, group, *ids); end
286
+ def xadd(key, entry, approximate: nil, maxlen: nil, nomkstream: nil, id: nil); end
287
+ def xautoclaim(key, group, consumer, min_idle_time, start, count: nil, justid: nil); end
288
+ def xclaim(key, group, consumer, min_idle_time, *ids, **opts); end
289
+ def xdel(key, *ids); end
290
+ def xgroup(subcommand, key, group, id_or_consumer = nil, mkstream: nil); end
291
+ def xinfo(subcommand, key, group = nil); end
292
+ def xlen(key); end
293
+ def xpending(key, group, *args, idle: nil); end
294
+ def xrange(key, start = nil, range_end = nil, count: nil); end
295
+ def xread(keys, ids, count: nil, block: nil); end
296
+ def xreadgroup(group, consumer, keys, ids, count: nil, block: nil, noack: nil); end
297
+ def xrevrange(key, range_end = nil, start = nil, count: nil); end
298
+ def xtrim(key, len_or_id, strategy: nil, approximate: nil, limit: nil); end
299
+ end
300
+ module Redis::Commands::Strings
301
+ def append(key, value); end
302
+ def decr(key); end
303
+ def decrby(key, decrement); end
304
+ def get(key); end
305
+ def getdel(key); end
306
+ def getex(key, ex: nil, px: nil, exat: nil, pxat: nil, persist: nil); end
307
+ def getrange(key, start, stop); end
308
+ def getset(key, value); end
309
+ def incr(key); end
310
+ def incrby(key, increment); end
311
+ def incrbyfloat(key, increment); end
312
+ def mapped_mget(*keys); end
313
+ def mapped_mset(hash); end
314
+ def mapped_msetnx(hash); end
315
+ def mget(*keys, &blk); end
316
+ def mset(*args); end
317
+ def msetnx(*args); end
318
+ def psetex(key, ttl, value); end
319
+ def set(key, value, ex: nil, px: nil, exat: nil, pxat: nil, nx: nil, xx: nil, keepttl: nil, get: nil); end
320
+ def setex(key, ttl, value); end
321
+ def setnx(key, value); end
322
+ def setrange(key, offset, value); end
323
+ def strlen(key); end
324
+ end
325
+ module Redis::Commands::Transactions
326
+ def discard; end
327
+ def exec; end
328
+ def multi; end
329
+ def unwatch; end
330
+ def watch(*keys); end
331
+ end
332
+ class Redis::Client < RedisClient
333
+ def blocking_call_v(timeout, command, &block); end
334
+ def call_v(command, &block); end
335
+ def db; end
336
+ def disable_reconnection(&block); end
337
+ def host; end
338
+ def id; end
339
+ def inherit_socket!; end
340
+ def multi; end
341
+ def password; end
342
+ def path; end
343
+ def pipelined; end
344
+ def port; end
345
+ def self.config(**kwargs); end
346
+ def self.sentinel(**kwargs); end
347
+ def server_url; end
348
+ def timeout; end
349
+ def translate_error!(error); end
350
+ def translate_error_class(error_class); end
351
+ def username; end
352
+ end
353
+ class Redis::PipelinedConnection
354
+ def db; end
355
+ def db=(arg0); end
356
+ def initialize(pipeline, futures = nil); end
357
+ def multi; end
358
+ def pipelined; end
359
+ def send_blocking_command(command, timeout, &block); end
360
+ def send_command(command, &block); end
361
+ def synchronize; end
362
+ include Redis::Commands
363
+ end
364
+ class Redis::MultiConnection < Redis::PipelinedConnection
365
+ def multi; end
366
+ def send_blocking_command(command, _timeout, &block); end
367
+ end
368
+ class Redis::FutureNotReady < RuntimeError
369
+ def initialize; end
370
+ end
371
+ class Redis::Future < BasicObject
372
+ def _set(object); end
373
+ def class; end
374
+ def initialize(command, coerce); end
375
+ def inspect; end
376
+ def is_a?(other); end
377
+ def value; end
378
+ end
379
+ class Redis::MultiFuture < Redis::Future
380
+ def _set(replies); end
381
+ def initialize(futures); end
382
+ end
383
+ class Redis::SubscribedClient
384
+ def call_v(command); end
385
+ def close; end
386
+ def initialize(client); end
387
+ def psubscribe(*channels, &block); end
388
+ def psubscribe_with_timeout(timeout, *channels, &block); end
389
+ def punsubscribe(*channels); end
390
+ def subscribe(*channels, &block); end
391
+ def subscribe_with_timeout(timeout, *channels, &block); end
392
+ def subscription(start, stop, channels, block, timeout = nil); end
393
+ def unsubscribe(*channels); end
394
+ end
395
+ class Redis::Subscription
396
+ def callbacks; end
397
+ def initialize; end
398
+ def message(&block); end
399
+ def pmessage(&block); end
400
+ def psubscribe(&block); end
401
+ def punsubscribe(&block); end
402
+ def subscribe(&block); end
403
+ def unsubscribe(&block); end
404
+ end
405
+ class Redis::Deprecated < StandardError
406
+ end
407
+ module Redis::Connection
408
+ def self.drivers; end
409
+ end