redis-rbs 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +31 -0
- data/sig/redis.rbs +1369 -0
- metadata +66 -0
data/sig/redis.rbs
ADDED
|
@@ -0,0 +1,1369 @@
|
|
|
1
|
+
# Generated from redis 5.4.1. Do not edit by hand.
|
|
2
|
+
class Redis
|
|
3
|
+
type key = String | Symbol
|
|
4
|
+
type scalar = nil | bool | Integer | Float | String | Symbol
|
|
5
|
+
type reply = scalar | Array[reply] | Hash[scalar, reply]
|
|
6
|
+
@monitor: untyped
|
|
7
|
+
|
|
8
|
+
@options: untyped
|
|
9
|
+
|
|
10
|
+
@subscription_client: untyped
|
|
11
|
+
|
|
12
|
+
@client: untyped
|
|
13
|
+
|
|
14
|
+
BASE_PATH: untyped
|
|
15
|
+
|
|
16
|
+
Deprecated: untyped
|
|
17
|
+
|
|
18
|
+
attr_accessor self.silence_deprecations: untyped
|
|
19
|
+
|
|
20
|
+
attr_accessor self.raise_deprecations: untyped
|
|
21
|
+
|
|
22
|
+
def self.deprecate!: (untyped message) -> (untyped | nil)
|
|
23
|
+
|
|
24
|
+
module Connection
|
|
25
|
+
def self.drivers: () -> ::Array[untyped]
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
include Commands
|
|
29
|
+
|
|
30
|
+
SERVER_URL_OPTIONS: ::Array[:url | :host | :port | :path]
|
|
31
|
+
|
|
32
|
+
def initialize: (?::Hash[untyped, untyped] options) -> void
|
|
33
|
+
|
|
34
|
+
def without_reconnect: () { (?) -> untyped } -> untyped
|
|
35
|
+
|
|
36
|
+
def connected?: () -> bool
|
|
37
|
+
|
|
38
|
+
def close: () -> nil
|
|
39
|
+
|
|
40
|
+
alias disconnect! close
|
|
41
|
+
|
|
42
|
+
def with: () { (untyped) -> untyped } -> untyped
|
|
43
|
+
|
|
44
|
+
def _client: () -> untyped
|
|
45
|
+
|
|
46
|
+
def pipelined: (?exception: bool) { (untyped) -> untyped } -> untyped
|
|
47
|
+
|
|
48
|
+
def id: () -> untyped
|
|
49
|
+
|
|
50
|
+
def inspect: () -> ::String
|
|
51
|
+
|
|
52
|
+
def dup: () -> untyped
|
|
53
|
+
|
|
54
|
+
def connection: () -> { host: untyped, port: untyped, db: untyped, id: untyped, location: ::String }
|
|
55
|
+
|
|
56
|
+
private
|
|
57
|
+
|
|
58
|
+
def initialize_client: (untyped options) -> untyped
|
|
59
|
+
|
|
60
|
+
def synchronize: () { (untyped) -> untyped } -> untyped
|
|
61
|
+
|
|
62
|
+
def send_command: (untyped command) { (?) -> untyped } -> untyped
|
|
63
|
+
|
|
64
|
+
def send_blocking_command: (untyped command, untyped timeout) { (?) -> untyped } -> untyped
|
|
65
|
+
|
|
66
|
+
def _subscription: (untyped method, untyped timeout, untyped channels, untyped block) -> untyped
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
class Redis
|
|
70
|
+
class Client
|
|
71
|
+
@inherit_socket: untyped
|
|
72
|
+
|
|
73
|
+
ERROR_MAPPING: ::Hash[untyped, untyped]
|
|
74
|
+
|
|
75
|
+
def self.config: (**untyped kwargs) -> untyped
|
|
76
|
+
|
|
77
|
+
def self.sentinel: (**untyped kwargs) -> untyped
|
|
78
|
+
|
|
79
|
+
def self.translate_error!: (untyped error, ?mapping: untyped) -> untyped
|
|
80
|
+
|
|
81
|
+
private
|
|
82
|
+
|
|
83
|
+
def self.translate_error_class: (untyped error_class, ?mapping: untyped) -> untyped
|
|
84
|
+
|
|
85
|
+
public
|
|
86
|
+
|
|
87
|
+
def id: () -> untyped
|
|
88
|
+
|
|
89
|
+
def server_url: () -> untyped
|
|
90
|
+
|
|
91
|
+
def timeout: () -> untyped
|
|
92
|
+
|
|
93
|
+
def db: () -> untyped
|
|
94
|
+
|
|
95
|
+
def host: () -> (untyped | nil)
|
|
96
|
+
|
|
97
|
+
def port: () -> (untyped | nil)
|
|
98
|
+
|
|
99
|
+
def path: () -> untyped
|
|
100
|
+
|
|
101
|
+
def username: () -> untyped
|
|
102
|
+
|
|
103
|
+
def password: () -> untyped
|
|
104
|
+
|
|
105
|
+
def ensure_connected: (?retryable: bool) { (?) -> untyped } -> untyped
|
|
106
|
+
|
|
107
|
+
def call_v: (untyped command) { (?) -> untyped } -> untyped
|
|
108
|
+
|
|
109
|
+
def blocking_call_v: (untyped timeout, untyped command) { (?) -> untyped } -> untyped
|
|
110
|
+
|
|
111
|
+
def pipelined: (?exception: bool) -> untyped
|
|
112
|
+
|
|
113
|
+
def multi: (?watch: untyped?) -> untyped
|
|
114
|
+
|
|
115
|
+
def inherit_socket!: () -> untyped
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
class Redis
|
|
120
|
+
module Commands
|
|
121
|
+
include Bitmaps
|
|
122
|
+
|
|
123
|
+
include Cluster
|
|
124
|
+
|
|
125
|
+
include Connection
|
|
126
|
+
|
|
127
|
+
include Geo
|
|
128
|
+
|
|
129
|
+
include Hashes
|
|
130
|
+
|
|
131
|
+
include HyperLogLog
|
|
132
|
+
|
|
133
|
+
include Keys
|
|
134
|
+
|
|
135
|
+
include Lists
|
|
136
|
+
|
|
137
|
+
include Pubsub
|
|
138
|
+
|
|
139
|
+
include Scripting
|
|
140
|
+
|
|
141
|
+
include Server
|
|
142
|
+
|
|
143
|
+
include Sets
|
|
144
|
+
|
|
145
|
+
include SortedSets
|
|
146
|
+
|
|
147
|
+
include Streams
|
|
148
|
+
|
|
149
|
+
include Strings
|
|
150
|
+
|
|
151
|
+
include Transactions
|
|
152
|
+
|
|
153
|
+
Boolify: untyped
|
|
154
|
+
|
|
155
|
+
BoolifySet: untyped
|
|
156
|
+
|
|
157
|
+
Hashify: untyped
|
|
158
|
+
|
|
159
|
+
Pairify: untyped
|
|
160
|
+
|
|
161
|
+
Floatify: untyped
|
|
162
|
+
|
|
163
|
+
FloatifyPair: untyped
|
|
164
|
+
|
|
165
|
+
FloatifyPairs: untyped
|
|
166
|
+
|
|
167
|
+
HashifyInfo: untyped
|
|
168
|
+
|
|
169
|
+
HashifyStreams: untyped
|
|
170
|
+
|
|
171
|
+
EMPTY_STREAM_RESPONSE: ::Array[nil]
|
|
172
|
+
|
|
173
|
+
HashifyStreamEntries: untyped
|
|
174
|
+
|
|
175
|
+
HashifyStreamAutoclaim: untyped
|
|
176
|
+
|
|
177
|
+
HashifyStreamAutoclaimJustId: untyped
|
|
178
|
+
|
|
179
|
+
HashifyStreamPendings: untyped
|
|
180
|
+
|
|
181
|
+
HashifyStreamPendingDetails: untyped
|
|
182
|
+
|
|
183
|
+
HashifyClusterNodeInfo: untyped
|
|
184
|
+
|
|
185
|
+
HashifyClusterSlots: untyped
|
|
186
|
+
|
|
187
|
+
HashifyClusterNodes: untyped
|
|
188
|
+
|
|
189
|
+
HashifyClusterSlaves: untyped
|
|
190
|
+
|
|
191
|
+
Noop: untyped
|
|
192
|
+
|
|
193
|
+
def call: (*untyped command) { (?) -> untyped } -> untyped
|
|
194
|
+
|
|
195
|
+
def sentinel: (String subcommand, *Array[String] args) -> (Array[String] | Hash[String, String] | String)
|
|
196
|
+
|
|
197
|
+
private
|
|
198
|
+
|
|
199
|
+
def method_missing: (*untyped command) -> untyped
|
|
200
|
+
end
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
class Redis
|
|
204
|
+
module Commands
|
|
205
|
+
module Bitmaps
|
|
206
|
+
def setbit: (String key, Integer offset, Integer value) -> Integer
|
|
207
|
+
|
|
208
|
+
def getbit: (String key, Integer offset) -> Integer
|
|
209
|
+
|
|
210
|
+
def bitcount: (String key, ?::Integer start, ?::Integer stop, ?scale: (String | Symbol)?) -> Integer
|
|
211
|
+
|
|
212
|
+
def bitop: (String operation, String destkey, *(String | Array[String]) keys) -> Integer
|
|
213
|
+
|
|
214
|
+
def bitpos: (String key, Integer bit, ?Integer start, ?Integer stop, ?scale: (String | Symbol)?) -> Integer
|
|
215
|
+
end
|
|
216
|
+
end
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
class Redis
|
|
220
|
+
module Commands
|
|
221
|
+
module Cluster
|
|
222
|
+
def cluster: (untyped subcommand, *untyped args) -> untyped
|
|
223
|
+
|
|
224
|
+
def asking: () -> String
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
class Redis
|
|
230
|
+
module Commands
|
|
231
|
+
module Connection
|
|
232
|
+
def auth: (*Array[String] args) -> String
|
|
233
|
+
|
|
234
|
+
def ping: (?String message) -> String
|
|
235
|
+
|
|
236
|
+
def echo: (String value) -> String
|
|
237
|
+
|
|
238
|
+
def select: (Integer db) -> String
|
|
239
|
+
|
|
240
|
+
def quit: () -> String
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
class Redis
|
|
246
|
+
module Commands
|
|
247
|
+
module Geo
|
|
248
|
+
def geoadd: (String key, *Array[untyped] member) -> Integer
|
|
249
|
+
|
|
250
|
+
def geohash: (String key, (String | Array[String]) member) -> Array[(String | nil)]
|
|
251
|
+
|
|
252
|
+
def georadius: (*Array[untyped] args, **untyped geoptions) -> Array[String]
|
|
253
|
+
|
|
254
|
+
def georadiusbymember: (*Array[untyped] args, **untyped geoptions) -> Array[String]
|
|
255
|
+
|
|
256
|
+
def geopos: (String key, (String | Array[String]) member) -> Array[(Array[String] | nil)]
|
|
257
|
+
|
|
258
|
+
def geodist: (untyped key, untyped member1, untyped member2, ?::String unit) -> (String | nil)
|
|
259
|
+
|
|
260
|
+
private
|
|
261
|
+
|
|
262
|
+
def _geoarguments: (*untyped args, ?options: untyped?, ?sort: untyped?, ?count: untyped?) -> untyped
|
|
263
|
+
end
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
class Redis
|
|
268
|
+
module Commands
|
|
269
|
+
module Hashes
|
|
270
|
+
def hlen: (String key) -> Integer
|
|
271
|
+
|
|
272
|
+
def hset: (String key, *(Array[String] | Hash[String, String]) attrs) -> Integer
|
|
273
|
+
|
|
274
|
+
def hsetnx: (String key, String field, String value) -> bool
|
|
275
|
+
|
|
276
|
+
def hmset: (String key, *Array[String] attrs) -> String
|
|
277
|
+
|
|
278
|
+
def mapped_hmset: (String key, Hash[untyped, untyped] hash) -> String
|
|
279
|
+
|
|
280
|
+
def hget: (String key, String field) -> String?
|
|
281
|
+
|
|
282
|
+
def hmget: (String key, *Array[String] fields) { (?) -> untyped } -> Array[String]
|
|
283
|
+
|
|
284
|
+
def mapped_hmget: (String key, *Array[String] fields) -> Hash[untyped, untyped]
|
|
285
|
+
|
|
286
|
+
def hrandfield: (String key, ?Integer count, ?withvalues: bool, ?with_values: untyped) -> (nil | String | Array[String] | Array[[String, Float]])
|
|
287
|
+
|
|
288
|
+
def hdel: (String key, *untyped fields) -> Integer
|
|
289
|
+
|
|
290
|
+
def hexists: (String key, String field) -> bool
|
|
291
|
+
|
|
292
|
+
def hincrby: (String key, String field, Integer increment) -> Integer
|
|
293
|
+
|
|
294
|
+
def hincrbyfloat: (String key, String field, Float increment) -> Float
|
|
295
|
+
|
|
296
|
+
def hkeys: (String key) -> Array[String]
|
|
297
|
+
|
|
298
|
+
def hvals: (String key) -> Array[String]
|
|
299
|
+
|
|
300
|
+
def hgetall: (String key) -> Hash[String, String]
|
|
301
|
+
|
|
302
|
+
def hscan: (untyped key, (String | Integer) cursor, **Hash[untyped, untyped] options) -> (String | Array[[String, String]])
|
|
303
|
+
|
|
304
|
+
def hscan_each: (untyped key, **Hash[untyped, untyped] options) ?{ (?) -> untyped } -> Enumerator[untyped, untyped]
|
|
305
|
+
end
|
|
306
|
+
end
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
class Redis
|
|
310
|
+
module Commands
|
|
311
|
+
module HyperLogLog
|
|
312
|
+
def pfadd: (String key, (String | Array[String]) member) -> bool
|
|
313
|
+
|
|
314
|
+
def pfcount: (*(String | Array[String]) keys) -> Integer
|
|
315
|
+
|
|
316
|
+
def pfmerge: (String dest_key, *(String | Array[String]) source_key) -> bool
|
|
317
|
+
end
|
|
318
|
+
end
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
class Redis
|
|
322
|
+
module Commands
|
|
323
|
+
module Keys
|
|
324
|
+
def scan: ((String | Integer) cursor, **Hash[untyped, untyped] options) -> (String | Array[String])
|
|
325
|
+
|
|
326
|
+
def scan_each: (**Hash[untyped, untyped] options) ?{ (?) -> untyped } -> Enumerator[untyped, untyped]
|
|
327
|
+
|
|
328
|
+
def persist: (String key) -> bool
|
|
329
|
+
|
|
330
|
+
def expire: (String key, Integer seconds, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> bool
|
|
331
|
+
|
|
332
|
+
def expireat: (String key, Integer unix_time, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> bool
|
|
333
|
+
|
|
334
|
+
def expiretime: (String key) -> Integer
|
|
335
|
+
|
|
336
|
+
def ttl: (String key) -> Integer
|
|
337
|
+
|
|
338
|
+
def pexpire: (String key, Integer milliseconds, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> bool
|
|
339
|
+
|
|
340
|
+
def pexpireat: (String key, Integer ms_unix_time, ?nx: untyped?, ?xx: untyped?, ?gt: untyped?, ?lt: untyped?) -> bool
|
|
341
|
+
|
|
342
|
+
def pexpiretime: (String key) -> Integer
|
|
343
|
+
|
|
344
|
+
def pttl: (String key) -> Integer
|
|
345
|
+
|
|
346
|
+
def dump: (String key) -> String?
|
|
347
|
+
|
|
348
|
+
def restore: (String key, String ttl, String serialized_value, ?replace: untyped?) -> String
|
|
349
|
+
|
|
350
|
+
def migrate: ((String | Array[String]) key, Hash[untyped, untyped] options) -> String
|
|
351
|
+
|
|
352
|
+
def del: (*(String | Array[String]) keys) -> (0 | untyped)
|
|
353
|
+
|
|
354
|
+
def unlink: (*(String | Array[String]) keys) -> Integer
|
|
355
|
+
|
|
356
|
+
def exists: (*(String | Array[String]) keys) -> Integer
|
|
357
|
+
|
|
358
|
+
def exists?: (*(String | Array[String]) keys) -> bool
|
|
359
|
+
|
|
360
|
+
def keys: (?::String pattern) -> Array[String]
|
|
361
|
+
|
|
362
|
+
def move: (String key, Integer db) -> bool
|
|
363
|
+
|
|
364
|
+
def copy: (String source, String destination, ?db: Integer?, ?replace: bool) -> bool
|
|
365
|
+
|
|
366
|
+
def object: (*untyped args) -> untyped
|
|
367
|
+
|
|
368
|
+
def randomkey: () -> String?
|
|
369
|
+
|
|
370
|
+
def rename: (String old_name, String new_name) -> String
|
|
371
|
+
|
|
372
|
+
def renamenx: (String old_name, String new_name) -> bool
|
|
373
|
+
|
|
374
|
+
def sort: (String key, ?by: untyped?, ?limit: untyped?, ?get: untyped?, ?order: untyped?, ?store: untyped?) -> (Array[String] | Array[Array[String]] | Integer)
|
|
375
|
+
|
|
376
|
+
def type: (String key) -> String
|
|
377
|
+
|
|
378
|
+
private
|
|
379
|
+
|
|
380
|
+
def _scan: (untyped command, untyped cursor, untyped args, ?match: untyped?, ?count: untyped?, ?type: untyped?) { (?) -> untyped } -> untyped
|
|
381
|
+
end
|
|
382
|
+
end
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
class Redis
|
|
386
|
+
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)
|
|
393
|
+
|
|
394
|
+
def lpush: (String key, (String | Array[String]) value) -> Integer
|
|
395
|
+
|
|
396
|
+
def lpushx: (String key, String value) -> Integer
|
|
397
|
+
|
|
398
|
+
def rpush: (String key, (String | Array[String]) value) -> Integer
|
|
399
|
+
|
|
400
|
+
def rpushx: (String key, String value) -> Integer
|
|
401
|
+
|
|
402
|
+
def lpop: (String key, ?Integer count) -> (nil | String | Array[String])
|
|
403
|
+
|
|
404
|
+
def rpop: (String key, ?Integer count) -> (nil | String | Array[String])
|
|
405
|
+
|
|
406
|
+
def rpoplpush: (String source, String destination) -> (nil | String)
|
|
407
|
+
|
|
408
|
+
def blpop: (*untyped args) -> (nil | [String, String])
|
|
409
|
+
|
|
410
|
+
def brpop: (*untyped args) -> (nil | [String, String])
|
|
411
|
+
|
|
412
|
+
def brpoplpush: (String source, String destination, ?timeout: ::Integer) -> (nil | String)
|
|
413
|
+
|
|
414
|
+
def blmpop: (untyped timeout, *untyped keys, ?modifier: ::String, ?count: untyped?) -> Array[(String | Array[(String | Float)])]
|
|
415
|
+
|
|
416
|
+
def lmpop: (*untyped keys, ?modifier: ::String, ?count: untyped?) -> Array[(String | Array[(String | Float)])]
|
|
417
|
+
|
|
418
|
+
def lindex: (String key, Integer index) -> String?
|
|
419
|
+
|
|
420
|
+
def linsert: (String key, (String | Symbol) where, String pivot, String value) -> Integer
|
|
421
|
+
|
|
422
|
+
def lrange: (String key, Integer start, Integer stop) -> Array[String]
|
|
423
|
+
|
|
424
|
+
def lrem: (String key, Integer count, String value) -> Integer
|
|
425
|
+
|
|
426
|
+
def lset: (String key, Integer index, String value) -> String
|
|
427
|
+
|
|
428
|
+
def ltrim: (String key, Integer start, Integer stop) -> String
|
|
429
|
+
|
|
430
|
+
private
|
|
431
|
+
|
|
432
|
+
def _bpop: (untyped cmd, untyped args) { (?) -> untyped } -> untyped
|
|
433
|
+
|
|
434
|
+
def _normalize_move_wheres: (untyped where_source, untyped where_destination) -> ::Array[untyped]
|
|
435
|
+
end
|
|
436
|
+
end
|
|
437
|
+
end
|
|
438
|
+
|
|
439
|
+
class Redis
|
|
440
|
+
module Commands
|
|
441
|
+
module Pubsub
|
|
442
|
+
def publish: (untyped channel, untyped message) -> untyped
|
|
443
|
+
|
|
444
|
+
def subscribed?: () -> bool
|
|
445
|
+
|
|
446
|
+
def subscribe: (*untyped channels) { (?) -> untyped } -> untyped
|
|
447
|
+
|
|
448
|
+
def subscribe_with_timeout: (untyped timeout, *untyped channels) { (?) -> untyped } -> untyped
|
|
449
|
+
|
|
450
|
+
def unsubscribe: (*untyped channels) -> untyped
|
|
451
|
+
|
|
452
|
+
def psubscribe: (*untyped channels) { (?) -> untyped } -> untyped
|
|
453
|
+
|
|
454
|
+
def psubscribe_with_timeout: (untyped timeout, *untyped channels) { (?) -> untyped } -> untyped
|
|
455
|
+
|
|
456
|
+
def punsubscribe: (*untyped channels) -> untyped
|
|
457
|
+
|
|
458
|
+
def pubsub: (untyped subcommand, *untyped args) -> untyped
|
|
459
|
+
|
|
460
|
+
def spublish: (untyped channel, untyped message) -> untyped
|
|
461
|
+
|
|
462
|
+
def ssubscribe: (*untyped channels) { (?) -> untyped } -> untyped
|
|
463
|
+
|
|
464
|
+
def ssubscribe_with_timeout: (untyped timeout, *untyped channels) { (?) -> untyped } -> untyped
|
|
465
|
+
|
|
466
|
+
def sunsubscribe: (*untyped channels) -> untyped
|
|
467
|
+
end
|
|
468
|
+
end
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
class Redis
|
|
472
|
+
module Commands
|
|
473
|
+
module Scripting
|
|
474
|
+
def script: (String subcommand, *Array[String] args) -> untyped
|
|
475
|
+
|
|
476
|
+
def eval: (*untyped args) -> untyped
|
|
477
|
+
|
|
478
|
+
def evalsha: (*untyped args) -> untyped
|
|
479
|
+
|
|
480
|
+
private
|
|
481
|
+
|
|
482
|
+
def _eval: (untyped cmd, untyped args) -> untyped
|
|
483
|
+
end
|
|
484
|
+
end
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
class Redis
|
|
488
|
+
module Commands
|
|
489
|
+
module Server
|
|
490
|
+
def bgrewriteaof: () -> String
|
|
491
|
+
|
|
492
|
+
def bgsave: () -> String
|
|
493
|
+
|
|
494
|
+
def config: (Symbol action, *untyped args) -> (String | Hash[untyped, untyped])
|
|
495
|
+
|
|
496
|
+
def client: ((String | Symbol) subcommand, *untyped args) -> (String | Hash[untyped, untyped])
|
|
497
|
+
|
|
498
|
+
def dbsize: () -> Integer
|
|
499
|
+
|
|
500
|
+
def flushall: (?Hash[untyped, untyped] options) -> String
|
|
501
|
+
|
|
502
|
+
def flushdb: (?Hash[untyped, untyped] options) -> String
|
|
503
|
+
|
|
504
|
+
def info: (?(String | Symbol) cmd) -> Hash[String, String]
|
|
505
|
+
|
|
506
|
+
def lastsave: () -> Integer
|
|
507
|
+
|
|
508
|
+
def monitor: () { (untyped) -> untyped } -> untyped
|
|
509
|
+
|
|
510
|
+
def save: () -> String
|
|
511
|
+
|
|
512
|
+
def shutdown: () -> untyped
|
|
513
|
+
|
|
514
|
+
def slaveof: (untyped host, untyped port) -> untyped
|
|
515
|
+
|
|
516
|
+
def slowlog: (String subcommand, ?Integer length) -> (Array[String] | Integer | String)
|
|
517
|
+
|
|
518
|
+
def sync: () -> untyped
|
|
519
|
+
|
|
520
|
+
def time: () -> Array[Integer]
|
|
521
|
+
|
|
522
|
+
def debug: (*untyped args) -> untyped
|
|
523
|
+
end
|
|
524
|
+
end
|
|
525
|
+
end
|
|
526
|
+
|
|
527
|
+
class Redis
|
|
528
|
+
module Commands
|
|
529
|
+
module Sets
|
|
530
|
+
def scard: (String key) -> Integer
|
|
531
|
+
|
|
532
|
+
def sadd: (String key, *untyped members) -> Integer
|
|
533
|
+
|
|
534
|
+
def sadd?: (String key, *untyped members) -> bool
|
|
535
|
+
|
|
536
|
+
def srem: (String key, *untyped members) -> Integer
|
|
537
|
+
|
|
538
|
+
def srem?: (String key, *untyped members) -> bool
|
|
539
|
+
|
|
540
|
+
def spop: (String key, ?Integer count) -> String
|
|
541
|
+
|
|
542
|
+
def srandmember: (String key, ?Integer count) -> String
|
|
543
|
+
|
|
544
|
+
def smove: (String source, String destination, String member) -> bool
|
|
545
|
+
|
|
546
|
+
def sismember: (String key, String member) -> bool
|
|
547
|
+
|
|
548
|
+
def smismember: (String key, *(String | Array[String]) members) -> Array[bool]
|
|
549
|
+
|
|
550
|
+
def smembers: (String key) -> Array[String]
|
|
551
|
+
|
|
552
|
+
def sdiff: (*(String | Array[String]) keys) -> Array[String]
|
|
553
|
+
|
|
554
|
+
def sdiffstore: (String destination, *(String | Array[String]) keys) -> Integer
|
|
555
|
+
|
|
556
|
+
def sinter: (*(String | Array[String]) keys) -> Array[String]
|
|
557
|
+
|
|
558
|
+
def sinterstore: (String destination, *(String | Array[String]) keys) -> Integer
|
|
559
|
+
|
|
560
|
+
def sunion: (*(String | Array[String]) keys) -> Array[String]
|
|
561
|
+
|
|
562
|
+
def sunionstore: (String destination, *(String | Array[String]) keys) -> Integer
|
|
563
|
+
|
|
564
|
+
def sscan: (untyped key, (String | Integer) cursor, **Hash[untyped, untyped] options) -> (String | Array[String])
|
|
565
|
+
|
|
566
|
+
def sscan_each: (untyped key, **Hash[untyped, untyped] options) ?{ (?) -> untyped } -> Enumerator[untyped, untyped]
|
|
567
|
+
end
|
|
568
|
+
end
|
|
569
|
+
end
|
|
570
|
+
|
|
571
|
+
class Redis
|
|
572
|
+
module Commands
|
|
573
|
+
module SortedSets
|
|
574
|
+
def zcard: (String key) -> Integer
|
|
575
|
+
|
|
576
|
+
def zadd: (String key, *([Float, String] | Array[[Float, String]]) args, ?nx: untyped?, ?xx: untyped?, ?lt: untyped?, ?gt: untyped?, ?ch: untyped?, ?incr: untyped?) -> (0 | untyped)
|
|
577
|
+
|
|
578
|
+
def zincrby: (String key, Float increment, String member) -> Float
|
|
579
|
+
|
|
580
|
+
def zrem: (String key, (String | Array[String]) member) -> (0 | untyped)
|
|
581
|
+
|
|
582
|
+
def zpopmax: (untyped key, ?untyped? count) -> Array[Array[(String | Float)]]
|
|
583
|
+
|
|
584
|
+
def zpopmin: (untyped key, ?untyped? count) -> Array[Array[(String | Float)]]
|
|
585
|
+
|
|
586
|
+
def bzmpop: (untyped timeout, *untyped keys, ?modifier: ::String, ?count: untyped?) -> Array[(String | Array[(String | Float)])]
|
|
587
|
+
|
|
588
|
+
def zmpop: (*untyped keys, ?modifier: ::String, ?count: untyped?) -> Array[(String | Array[(String | Float)])]
|
|
589
|
+
|
|
590
|
+
def bzpopmax: (*untyped args) -> nil
|
|
591
|
+
|
|
592
|
+
def bzpopmin: (*untyped args) -> nil
|
|
593
|
+
|
|
594
|
+
def zscore: (String key, String member) -> Float?
|
|
595
|
+
|
|
596
|
+
def zmscore: (String key, *(String | Array[String]) members) -> Array[Float]
|
|
597
|
+
|
|
598
|
+
def zrandmember: (String key, ?Integer count, ?withscores: bool, ?with_scores: untyped) -> (nil | String | Array[String] | Array[[String, Float]])
|
|
599
|
+
|
|
600
|
+
def zrange: (String key, Integer start, Integer stop, ?byscore: bool, ?by_score: untyped, ?bylex: bool, ?by_lex: untyped, ?rev: bool, ?limit: untyped?, ?withscores: bool, ?with_scores: untyped) -> (Array[String] | Array[[String, Float]])
|
|
601
|
+
|
|
602
|
+
def zrangestore: (untyped dest_key, untyped src_key, untyped start, untyped stop, ?byscore: bool, ?by_score: untyped, ?bylex: bool, ?by_lex: untyped, ?rev: bool, ?limit: untyped?) -> Integer
|
|
603
|
+
|
|
604
|
+
def zrevrange: (untyped key, untyped start, untyped stop, ?withscores: bool, ?with_scores: untyped) -> untyped
|
|
605
|
+
|
|
606
|
+
def zrank: (String key, String member, ?withscore: bool, ?with_score: untyped) -> (Integer | [Integer, Float])
|
|
607
|
+
|
|
608
|
+
def zrevrank: (String key, String member, ?withscore: bool, ?with_score: untyped) -> (Integer | [Integer, Float])
|
|
609
|
+
|
|
610
|
+
def zremrangebyrank: (String key, Integer start, Integer stop) -> Integer
|
|
611
|
+
|
|
612
|
+
def zlexcount: (String key, String min, String max) -> Integer
|
|
613
|
+
|
|
614
|
+
def zrangebylex: (String key, String min, String max, ?limit: untyped?) -> (Array[String] | Array[[String, Float]])
|
|
615
|
+
|
|
616
|
+
def zrevrangebylex: (untyped key, untyped max, untyped min, ?limit: untyped?) -> untyped
|
|
617
|
+
|
|
618
|
+
def zrangebyscore: (String key, String min, String max, ?withscores: bool, ?with_scores: untyped, ?limit: untyped?) -> (Array[String] | Array[[String, Float]])
|
|
619
|
+
|
|
620
|
+
def zrevrangebyscore: (untyped key, untyped max, untyped min, ?withscores: bool, ?with_scores: untyped, ?limit: untyped?) -> untyped
|
|
621
|
+
|
|
622
|
+
def zremrangebyscore: (String key, String min, String max) -> Integer
|
|
623
|
+
|
|
624
|
+
def zcount: (String key, String min, String max) -> Integer
|
|
625
|
+
|
|
626
|
+
def zinter: (*untyped args) -> (Array[String] | Array[[String, Float]])
|
|
627
|
+
|
|
628
|
+
def zinterstore: (*untyped args) -> Integer
|
|
629
|
+
|
|
630
|
+
def zunion: (*untyped args) -> (Array[String] | Array[[String, Float]])
|
|
631
|
+
|
|
632
|
+
def zunionstore: (*untyped args) -> Integer
|
|
633
|
+
|
|
634
|
+
def zdiff: (*(String | Array[String]) keys, ?with_scores: bool) -> (Array[String] | Array[[String, Float]])
|
|
635
|
+
|
|
636
|
+
def zdiffstore: (*untyped args) -> Integer
|
|
637
|
+
|
|
638
|
+
def zscan: (untyped key, (String | Integer) cursor, **Hash[untyped, untyped] options) -> (String | Array[[String, Float]])
|
|
639
|
+
|
|
640
|
+
def zscan_each: (untyped key, **Hash[untyped, untyped] options) ?{ (?) -> untyped } -> Enumerator[untyped, untyped]
|
|
641
|
+
|
|
642
|
+
private
|
|
643
|
+
|
|
644
|
+
def _zsets_operation: (untyped cmd, *untyped keys, ?weights: untyped?, ?aggregate: untyped?, ?with_scores: bool) -> untyped
|
|
645
|
+
|
|
646
|
+
def _zsets_operation_store: (untyped cmd, untyped destination, untyped keys, ?weights: untyped?, ?aggregate: untyped?) -> untyped
|
|
647
|
+
end
|
|
648
|
+
end
|
|
649
|
+
end
|
|
650
|
+
|
|
651
|
+
class Redis
|
|
652
|
+
module Commands
|
|
653
|
+
module Streams
|
|
654
|
+
def xinfo: (untyped subcommand, untyped key, ?untyped? group) -> Array[Hash[untyped, untyped]]
|
|
655
|
+
|
|
656
|
+
def xadd: (untyped key, untyped entry, ?approximate: untyped?, ?maxlen: untyped?, ?minid: untyped?, ?nomkstream: untyped?, ?id: ::String) -> String
|
|
657
|
+
|
|
658
|
+
def xtrim: (untyped key, untyped len_or_id, ?strategy: ::String, ?approximate: bool, ?limit: untyped?) -> Integer
|
|
659
|
+
|
|
660
|
+
def xdel: (untyped key, *untyped ids) -> Integer
|
|
661
|
+
|
|
662
|
+
def xrange: (untyped key, ?::String start, ?::String range_end, ?count: untyped?) -> Array[Array[(String | Hash[untyped, untyped])]]
|
|
663
|
+
|
|
664
|
+
def xrevrange: (untyped key, ?::String range_end, ?::String start, ?count: untyped?) -> Array[Array[(String | Hash[untyped, untyped])]]
|
|
665
|
+
|
|
666
|
+
def xlen: (untyped key) -> Integer
|
|
667
|
+
|
|
668
|
+
def xread: (untyped keys, untyped ids, ?count: untyped?, ?block: untyped?) -> Hash[String, Hash[String, Hash[untyped, untyped]]]
|
|
669
|
+
|
|
670
|
+
def xgroup: (untyped subcommand, untyped key, untyped group, ?untyped? id_or_consumer, ?mkstream: bool) -> Integer
|
|
671
|
+
|
|
672
|
+
def xreadgroup: (untyped group, untyped consumer, untyped keys, untyped ids, ?count: untyped?, ?block: untyped?, ?noack: untyped?) -> Hash[String, Hash[String, Hash[untyped, untyped]]]
|
|
673
|
+
|
|
674
|
+
def xack: (untyped key, untyped group, *untyped ids) -> Integer
|
|
675
|
+
|
|
676
|
+
def xclaim: (untyped key, untyped group, untyped consumer, untyped min_idle_time, *untyped ids, **untyped opts) -> Array[String]
|
|
677
|
+
|
|
678
|
+
def xautoclaim: (untyped key, untyped group, untyped consumer, untyped min_idle_time, untyped start, ?count: untyped?, ?justid: bool) -> Array[String]
|
|
679
|
+
|
|
680
|
+
def xpending: (untyped key, untyped group, *untyped args, ?idle: untyped?) -> Array[Hash[untyped, untyped]]
|
|
681
|
+
|
|
682
|
+
private
|
|
683
|
+
|
|
684
|
+
def _xread: (untyped args, untyped keys, untyped ids, untyped blocking_timeout_msec) -> untyped
|
|
685
|
+
end
|
|
686
|
+
end
|
|
687
|
+
end
|
|
688
|
+
|
|
689
|
+
class Redis
|
|
690
|
+
module Commands
|
|
691
|
+
module Strings
|
|
692
|
+
def decr: (String key) -> Integer
|
|
693
|
+
|
|
694
|
+
def decrby: (String key, Integer decrement) -> Integer
|
|
695
|
+
|
|
696
|
+
def incr: (String key) -> Integer
|
|
697
|
+
|
|
698
|
+
def incrby: (String key, Integer increment) -> Integer
|
|
699
|
+
|
|
700
|
+
def incrbyfloat: (String key, Float increment) -> Float
|
|
701
|
+
|
|
702
|
+
def set: (String key, String value, ?ex: untyped?, ?px: untyped?, ?exat: untyped?, ?pxat: untyped?, ?nx: untyped?, ?xx: untyped?, ?keepttl: untyped?, ?get: untyped?) -> (String | bool)
|
|
703
|
+
|
|
704
|
+
def setex: (String key, Integer ttl, String value) -> String
|
|
705
|
+
|
|
706
|
+
def psetex: (String key, Integer ttl, String value) -> String
|
|
707
|
+
|
|
708
|
+
def setnx: (String key, String value) -> bool
|
|
709
|
+
|
|
710
|
+
def mset: (*Array[String] args) -> String
|
|
711
|
+
|
|
712
|
+
def mapped_mset: (Hash[untyped, untyped] hash) -> String
|
|
713
|
+
|
|
714
|
+
def msetnx: (*Array[String] args) -> bool
|
|
715
|
+
|
|
716
|
+
def mapped_msetnx: (Hash[untyped, untyped] hash) -> bool
|
|
717
|
+
|
|
718
|
+
def get: (String key) -> String?
|
|
719
|
+
|
|
720
|
+
def mget: (*Array[String] keys) { (?) -> untyped } -> Array[String]
|
|
721
|
+
|
|
722
|
+
def mapped_mget: (*Array[String] keys) -> Hash[untyped, untyped]
|
|
723
|
+
|
|
724
|
+
def setrange: (String key, Integer offset, String value) -> Integer
|
|
725
|
+
|
|
726
|
+
def getrange: (String key, Integer start, Integer stop) -> String
|
|
727
|
+
|
|
728
|
+
def append: (String key, String value) -> Integer
|
|
729
|
+
|
|
730
|
+
def getset: (String key, String value) -> String?
|
|
731
|
+
|
|
732
|
+
def getdel: (String key) -> String?
|
|
733
|
+
|
|
734
|
+
def getex: (String key, ?ex: untyped?, ?px: untyped?, ?exat: untyped?, ?pxat: untyped?, ?persist: bool) -> String?
|
|
735
|
+
|
|
736
|
+
def strlen: (String key) -> Integer
|
|
737
|
+
end
|
|
738
|
+
end
|
|
739
|
+
end
|
|
740
|
+
|
|
741
|
+
class Redis
|
|
742
|
+
module Commands
|
|
743
|
+
module Transactions
|
|
744
|
+
def multi: () { (untyped) -> untyped } -> untyped
|
|
745
|
+
|
|
746
|
+
def watch: (*(String | Array[String]) keys) ?{ (untyped) -> untyped } -> String
|
|
747
|
+
|
|
748
|
+
def unwatch: () -> String
|
|
749
|
+
|
|
750
|
+
def exec: () -> untyped
|
|
751
|
+
|
|
752
|
+
def discard: () -> String
|
|
753
|
+
end
|
|
754
|
+
end
|
|
755
|
+
end
|
|
756
|
+
|
|
757
|
+
class Redis
|
|
758
|
+
class Distributed
|
|
759
|
+
@tag: untyped
|
|
760
|
+
|
|
761
|
+
@ring: untyped
|
|
762
|
+
|
|
763
|
+
@node_configs: untyped
|
|
764
|
+
|
|
765
|
+
@default_options: untyped
|
|
766
|
+
|
|
767
|
+
@subscribed_node: untyped
|
|
768
|
+
|
|
769
|
+
@watch_key: untyped
|
|
770
|
+
|
|
771
|
+
class CannotDistribute < RuntimeError
|
|
772
|
+
@command: untyped
|
|
773
|
+
|
|
774
|
+
def initialize: (untyped command) -> void
|
|
775
|
+
|
|
776
|
+
def message: () -> ::String
|
|
777
|
+
end
|
|
778
|
+
|
|
779
|
+
attr_reader ring: untyped
|
|
780
|
+
|
|
781
|
+
def initialize: (untyped node_configs, ?::Hash[untyped, untyped] options) -> void
|
|
782
|
+
|
|
783
|
+
def node_for: (untyped key) -> untyped
|
|
784
|
+
|
|
785
|
+
def nodes: () -> untyped
|
|
786
|
+
|
|
787
|
+
def add_node: (untyped options) -> untyped
|
|
788
|
+
|
|
789
|
+
def select: (untyped db) -> untyped
|
|
790
|
+
|
|
791
|
+
def ping: () -> untyped
|
|
792
|
+
|
|
793
|
+
def echo: (untyped value) -> untyped
|
|
794
|
+
|
|
795
|
+
def quit: () -> untyped
|
|
796
|
+
|
|
797
|
+
def close: () -> nil
|
|
798
|
+
|
|
799
|
+
def bgsave: () -> untyped
|
|
800
|
+
|
|
801
|
+
def dbsize: () -> untyped
|
|
802
|
+
|
|
803
|
+
def flushall: () -> untyped
|
|
804
|
+
|
|
805
|
+
def flushdb: () -> untyped
|
|
806
|
+
|
|
807
|
+
def info: (?untyped? cmd) -> untyped
|
|
808
|
+
|
|
809
|
+
def lastsave: () -> untyped
|
|
810
|
+
|
|
811
|
+
def monitor: () -> untyped
|
|
812
|
+
|
|
813
|
+
def save: () -> untyped
|
|
814
|
+
|
|
815
|
+
def time: () -> untyped
|
|
816
|
+
|
|
817
|
+
def persist: (untyped key) -> untyped
|
|
818
|
+
|
|
819
|
+
def expire: (untyped key, untyped seconds, **untyped kwargs) -> untyped
|
|
820
|
+
|
|
821
|
+
def expireat: (untyped key, untyped unix_time, **untyped kwargs) -> untyped
|
|
822
|
+
|
|
823
|
+
def expiretime: (untyped key) -> untyped
|
|
824
|
+
|
|
825
|
+
def ttl: (untyped key) -> untyped
|
|
826
|
+
|
|
827
|
+
def pexpire: (untyped key, untyped milliseconds, **untyped kwarg) -> untyped
|
|
828
|
+
|
|
829
|
+
def pexpireat: (untyped key, untyped ms_unix_time, **untyped kwarg) -> untyped
|
|
830
|
+
|
|
831
|
+
def pexpiretime: (untyped key) -> untyped
|
|
832
|
+
|
|
833
|
+
def pttl: (untyped key) -> untyped
|
|
834
|
+
|
|
835
|
+
def dump: (untyped key) -> String?
|
|
836
|
+
|
|
837
|
+
def restore: (untyped key, untyped ttl, untyped serialized_value, **untyped options) -> untyped
|
|
838
|
+
|
|
839
|
+
def migrate: (untyped _key, untyped _options) -> untyped
|
|
840
|
+
|
|
841
|
+
def del: (*untyped args) -> untyped
|
|
842
|
+
|
|
843
|
+
def unlink: (*untyped args) -> untyped
|
|
844
|
+
|
|
845
|
+
def exists: (*untyped args) -> untyped
|
|
846
|
+
|
|
847
|
+
def exists?: (*untyped args) -> (true | false)
|
|
848
|
+
|
|
849
|
+
def keys: (?::String glob) -> untyped
|
|
850
|
+
|
|
851
|
+
def move: (untyped key, untyped db) -> untyped
|
|
852
|
+
|
|
853
|
+
def copy: (untyped source, untyped destination, **untyped options) -> untyped
|
|
854
|
+
|
|
855
|
+
def randomkey: () -> String?
|
|
856
|
+
|
|
857
|
+
def rename: (untyped old_name, untyped new_name) -> untyped
|
|
858
|
+
|
|
859
|
+
def renamenx: (untyped old_name, untyped new_name) -> untyped
|
|
860
|
+
|
|
861
|
+
def sort: (untyped key, **untyped options) -> untyped
|
|
862
|
+
|
|
863
|
+
def type: (untyped key) -> untyped
|
|
864
|
+
|
|
865
|
+
def decr: (untyped key) -> untyped
|
|
866
|
+
|
|
867
|
+
def decrby: (untyped key, untyped decrement) -> untyped
|
|
868
|
+
|
|
869
|
+
def incr: (untyped key) -> untyped
|
|
870
|
+
|
|
871
|
+
def incrby: (untyped key, untyped increment) -> untyped
|
|
872
|
+
|
|
873
|
+
def incrbyfloat: (untyped key, untyped increment) -> untyped
|
|
874
|
+
|
|
875
|
+
def set: (untyped key, untyped value, **untyped options) -> untyped
|
|
876
|
+
|
|
877
|
+
def setex: (untyped key, untyped ttl, untyped value) -> untyped
|
|
878
|
+
|
|
879
|
+
def psetex: (untyped key, untyped ttl, untyped value) -> untyped
|
|
880
|
+
|
|
881
|
+
def setnx: (untyped key, untyped value) -> untyped
|
|
882
|
+
|
|
883
|
+
def mset: (*untyped) -> untyped
|
|
884
|
+
|
|
885
|
+
def mapped_mset: (untyped _hash) -> untyped
|
|
886
|
+
|
|
887
|
+
def msetnx: (*untyped) -> untyped
|
|
888
|
+
|
|
889
|
+
def mapped_msetnx: (untyped _hash) -> untyped
|
|
890
|
+
|
|
891
|
+
def get: (untyped key) -> String?
|
|
892
|
+
|
|
893
|
+
def getdel: (untyped key) -> String?
|
|
894
|
+
|
|
895
|
+
def getex: (untyped key, **untyped options) -> String?
|
|
896
|
+
|
|
897
|
+
def mget: (*untyped keys) -> untyped
|
|
898
|
+
|
|
899
|
+
def mapped_mget: (*untyped keys) -> untyped
|
|
900
|
+
|
|
901
|
+
def setrange: (untyped key, untyped offset, untyped value) -> untyped
|
|
902
|
+
|
|
903
|
+
def getrange: (untyped key, untyped start, untyped stop) -> String
|
|
904
|
+
|
|
905
|
+
def setbit: (untyped key, untyped offset, untyped value) -> untyped
|
|
906
|
+
|
|
907
|
+
def getbit: (untyped key, untyped offset) -> untyped
|
|
908
|
+
|
|
909
|
+
def append: (untyped key, untyped value) -> untyped
|
|
910
|
+
|
|
911
|
+
def bitcount: (untyped key, ?::Integer start, ?::Integer stop, ?scale: untyped?) -> untyped
|
|
912
|
+
|
|
913
|
+
def bitop: (untyped operation, untyped destkey, *untyped keys) -> untyped
|
|
914
|
+
|
|
915
|
+
def bitpos: (untyped key, untyped bit, ?untyped? start, ?untyped? stop, ?scale: untyped?) -> untyped
|
|
916
|
+
|
|
917
|
+
def getset: (untyped key, untyped value) -> String?
|
|
918
|
+
|
|
919
|
+
def strlen: (untyped key) -> untyped
|
|
920
|
+
|
|
921
|
+
def []: (untyped key) -> untyped
|
|
922
|
+
|
|
923
|
+
def []=: (untyped key, untyped value) -> untyped
|
|
924
|
+
|
|
925
|
+
def llen: (untyped key) -> untyped
|
|
926
|
+
|
|
927
|
+
def lmove: (untyped source, untyped destination, untyped where_source, untyped where_destination) -> untyped
|
|
928
|
+
|
|
929
|
+
def blmove: (untyped source, untyped destination, untyped where_source, untyped where_destination, ?timeout: ::Integer) -> untyped
|
|
930
|
+
|
|
931
|
+
def lpush: (untyped key, untyped value) -> untyped
|
|
932
|
+
|
|
933
|
+
def lpushx: (untyped key, untyped value) -> untyped
|
|
934
|
+
|
|
935
|
+
def rpush: (untyped key, untyped value) -> untyped
|
|
936
|
+
|
|
937
|
+
def rpushx: (untyped key, untyped value) -> untyped
|
|
938
|
+
|
|
939
|
+
def lpop: (untyped key, ?untyped? count) -> untyped
|
|
940
|
+
|
|
941
|
+
def rpop: (untyped key, ?untyped? count) -> untyped
|
|
942
|
+
|
|
943
|
+
def rpoplpush: (untyped source, untyped destination) -> untyped
|
|
944
|
+
|
|
945
|
+
def _bpop: (untyped cmd, untyped args) -> untyped
|
|
946
|
+
|
|
947
|
+
def blpop: (*untyped args) -> untyped
|
|
948
|
+
|
|
949
|
+
def bzpopmax: (*untyped args) -> untyped
|
|
950
|
+
|
|
951
|
+
def bzpopmin: (*untyped args) -> untyped
|
|
952
|
+
|
|
953
|
+
def brpop: (*untyped args) -> untyped
|
|
954
|
+
|
|
955
|
+
def brpoplpush: (untyped source, untyped destination, **untyped options) -> untyped
|
|
956
|
+
|
|
957
|
+
def lindex: (untyped key, untyped index) -> String?
|
|
958
|
+
|
|
959
|
+
def linsert: (untyped key, untyped where, untyped pivot, untyped value) -> untyped
|
|
960
|
+
|
|
961
|
+
def lrange: (untyped key, untyped start, untyped stop) -> untyped
|
|
962
|
+
|
|
963
|
+
def lrem: (untyped key, untyped count, untyped value) -> untyped
|
|
964
|
+
|
|
965
|
+
def lset: (untyped key, untyped index, untyped value) -> untyped
|
|
966
|
+
|
|
967
|
+
def ltrim: (untyped key, untyped start, untyped stop) -> untyped
|
|
968
|
+
|
|
969
|
+
def blmpop: (untyped timeout, *untyped keys, ?modifier: ::String, ?count: untyped?) -> untyped
|
|
970
|
+
|
|
971
|
+
def lmpop: (*untyped keys, ?modifier: ::String, ?count: untyped?) -> untyped
|
|
972
|
+
|
|
973
|
+
def scard: (untyped key) -> untyped
|
|
974
|
+
|
|
975
|
+
def sadd: (untyped key, *untyped members) -> untyped
|
|
976
|
+
|
|
977
|
+
def sadd?: (untyped key, *untyped members) -> bool
|
|
978
|
+
|
|
979
|
+
def srem: (untyped key, *untyped members) -> untyped
|
|
980
|
+
|
|
981
|
+
def srem?: (untyped key, *untyped members) -> bool
|
|
982
|
+
|
|
983
|
+
def spop: (untyped key, ?untyped? count) -> untyped
|
|
984
|
+
|
|
985
|
+
def srandmember: (untyped key, ?untyped? count) -> untyped
|
|
986
|
+
|
|
987
|
+
def smove: (untyped source, untyped destination, untyped member) -> untyped
|
|
988
|
+
|
|
989
|
+
def sismember: (untyped key, untyped member) -> untyped
|
|
990
|
+
|
|
991
|
+
def smismember: (untyped key, *untyped members) -> untyped
|
|
992
|
+
|
|
993
|
+
def smembers: (untyped key) -> untyped
|
|
994
|
+
|
|
995
|
+
def sscan: (untyped key, untyped cursor, **untyped options) -> untyped
|
|
996
|
+
|
|
997
|
+
def sscan_each: (untyped key, **untyped options) { (?) -> untyped } -> untyped
|
|
998
|
+
|
|
999
|
+
def sdiff: (*untyped keys) -> untyped
|
|
1000
|
+
|
|
1001
|
+
def sdiffstore: (untyped destination, *untyped keys) -> untyped
|
|
1002
|
+
|
|
1003
|
+
def sinter: (*untyped keys) -> untyped
|
|
1004
|
+
|
|
1005
|
+
def sinterstore: (untyped destination, *untyped keys) -> untyped
|
|
1006
|
+
|
|
1007
|
+
def sunion: (*untyped keys) -> untyped
|
|
1008
|
+
|
|
1009
|
+
def sunionstore: (untyped destination, *untyped keys) -> untyped
|
|
1010
|
+
|
|
1011
|
+
def zcard: (untyped key) -> untyped
|
|
1012
|
+
|
|
1013
|
+
def zadd: (untyped key, *untyped args) -> untyped
|
|
1014
|
+
|
|
1015
|
+
def zincrby: (untyped key, untyped increment, untyped member) -> untyped
|
|
1016
|
+
|
|
1017
|
+
def zrem: (untyped key, untyped member) -> untyped
|
|
1018
|
+
|
|
1019
|
+
def zscore: (untyped key, untyped member) -> Float?
|
|
1020
|
+
|
|
1021
|
+
def zrandmember: (untyped key, ?untyped? count, **untyped options) -> untyped
|
|
1022
|
+
|
|
1023
|
+
def zmscore: (untyped key, *untyped members) -> untyped
|
|
1024
|
+
|
|
1025
|
+
def bzmpop: (untyped timeout, *untyped keys, ?modifier: ::String, ?count: untyped?) -> untyped
|
|
1026
|
+
|
|
1027
|
+
def zmpop: (*untyped keys, ?modifier: ::String, ?count: untyped?) -> untyped
|
|
1028
|
+
|
|
1029
|
+
def zrange: (untyped key, untyped start, untyped stop, **untyped options) -> untyped
|
|
1030
|
+
|
|
1031
|
+
def zrangestore: (untyped dest_key, untyped src_key, untyped start, untyped stop, **untyped options) -> untyped
|
|
1032
|
+
|
|
1033
|
+
def zrevrange: (untyped key, untyped start, untyped stop, **untyped options) -> untyped
|
|
1034
|
+
|
|
1035
|
+
def zrank: (untyped key, untyped member, **untyped options) -> untyped
|
|
1036
|
+
|
|
1037
|
+
def zrevrank: (untyped key, untyped member, **untyped options) -> untyped
|
|
1038
|
+
|
|
1039
|
+
def zremrangebyrank: (untyped key, untyped start, untyped stop) -> untyped
|
|
1040
|
+
|
|
1041
|
+
def zrangebyscore: (untyped key, untyped min, untyped max, **untyped options) -> untyped
|
|
1042
|
+
|
|
1043
|
+
def zrevrangebyscore: (untyped key, untyped max, untyped min, **untyped options) -> untyped
|
|
1044
|
+
|
|
1045
|
+
def zremrangebyscore: (untyped key, untyped min, untyped max) -> untyped
|
|
1046
|
+
|
|
1047
|
+
def zcount: (untyped key, untyped min, untyped max) -> untyped
|
|
1048
|
+
|
|
1049
|
+
def zinter: (*untyped keys, **untyped options) -> untyped
|
|
1050
|
+
|
|
1051
|
+
def zinterstore: (untyped destination, *untyped keys, **untyped options) -> untyped
|
|
1052
|
+
|
|
1053
|
+
def zunion: (*untyped keys, **untyped options) -> untyped
|
|
1054
|
+
|
|
1055
|
+
def zunionstore: (untyped destination, *untyped keys, **untyped options) -> untyped
|
|
1056
|
+
|
|
1057
|
+
def zdiff: (*untyped keys, **untyped options) -> untyped
|
|
1058
|
+
|
|
1059
|
+
def zdiffstore: (untyped destination, *untyped keys, **untyped options) -> untyped
|
|
1060
|
+
|
|
1061
|
+
def hlen: (untyped key) -> untyped
|
|
1062
|
+
|
|
1063
|
+
def hset: (untyped key, *untyped attrs) -> untyped
|
|
1064
|
+
|
|
1065
|
+
def hsetnx: (untyped key, untyped field, untyped value) -> untyped
|
|
1066
|
+
|
|
1067
|
+
def hmset: (untyped key, *untyped attrs) -> untyped
|
|
1068
|
+
|
|
1069
|
+
def mapped_hmset: (untyped key, untyped hash) -> untyped
|
|
1070
|
+
|
|
1071
|
+
def hget: (untyped key, untyped field) -> String?
|
|
1072
|
+
|
|
1073
|
+
def hmget: (untyped key, *untyped fields) -> untyped
|
|
1074
|
+
|
|
1075
|
+
def mapped_hmget: (untyped key, *untyped fields) -> untyped
|
|
1076
|
+
|
|
1077
|
+
def hrandfield: (untyped key, ?untyped? count, **untyped options) -> untyped
|
|
1078
|
+
|
|
1079
|
+
def hdel: (untyped key, *untyped fields) -> untyped
|
|
1080
|
+
|
|
1081
|
+
def hexists: (untyped key, untyped field) -> untyped
|
|
1082
|
+
|
|
1083
|
+
def hincrby: (untyped key, untyped field, untyped increment) -> untyped
|
|
1084
|
+
|
|
1085
|
+
def hincrbyfloat: (untyped key, untyped field, untyped increment) -> untyped
|
|
1086
|
+
|
|
1087
|
+
def hkeys: (untyped key) -> untyped
|
|
1088
|
+
|
|
1089
|
+
def hvals: (untyped key) -> untyped
|
|
1090
|
+
|
|
1091
|
+
def hgetall: (untyped key) -> untyped
|
|
1092
|
+
|
|
1093
|
+
def publish: (untyped channel, untyped message) -> untyped
|
|
1094
|
+
|
|
1095
|
+
def subscribed?: () -> bool
|
|
1096
|
+
|
|
1097
|
+
def subscribe: (untyped channel, *untyped channels) { (?) -> untyped } -> untyped
|
|
1098
|
+
|
|
1099
|
+
def unsubscribe: (*untyped channels) -> untyped
|
|
1100
|
+
|
|
1101
|
+
def psubscribe: (*untyped channels) { (?) -> untyped } -> untyped
|
|
1102
|
+
|
|
1103
|
+
def punsubscribe: (*untyped channels) -> untyped
|
|
1104
|
+
|
|
1105
|
+
def watch: (*untyped keys) { (?) -> untyped } -> untyped
|
|
1106
|
+
|
|
1107
|
+
def unwatch: () -> untyped
|
|
1108
|
+
|
|
1109
|
+
def pipelined: () -> untyped
|
|
1110
|
+
|
|
1111
|
+
def multi: () { (?) -> untyped } -> untyped
|
|
1112
|
+
|
|
1113
|
+
def exec: () -> untyped
|
|
1114
|
+
|
|
1115
|
+
def discard: () -> untyped
|
|
1116
|
+
|
|
1117
|
+
def script: (untyped subcommand, *untyped args) -> untyped
|
|
1118
|
+
|
|
1119
|
+
def pfadd: (untyped key, untyped member) -> untyped
|
|
1120
|
+
|
|
1121
|
+
def pfcount: (*untyped keys) -> untyped
|
|
1122
|
+
|
|
1123
|
+
def pfmerge: (untyped dest_key, *untyped source_key) -> untyped
|
|
1124
|
+
|
|
1125
|
+
def _eval: (untyped cmd, untyped args) -> untyped
|
|
1126
|
+
|
|
1127
|
+
def eval: (*untyped args) -> untyped
|
|
1128
|
+
|
|
1129
|
+
def evalsha: (*untyped args) -> untyped
|
|
1130
|
+
|
|
1131
|
+
def inspect: () -> ::String
|
|
1132
|
+
|
|
1133
|
+
def dup: () -> untyped
|
|
1134
|
+
|
|
1135
|
+
def on_each_node: (untyped command, *untyped args) -> untyped
|
|
1136
|
+
|
|
1137
|
+
def node_index_for: (untyped key) -> untyped
|
|
1138
|
+
|
|
1139
|
+
def key_tag: (untyped key) -> untyped
|
|
1140
|
+
|
|
1141
|
+
def ensure_same_node: (untyped command, untyped keys) { (untyped) -> untyped } -> untyped
|
|
1142
|
+
end
|
|
1143
|
+
end
|
|
1144
|
+
|
|
1145
|
+
class Redis
|
|
1146
|
+
class BaseError < StandardError
|
|
1147
|
+
end
|
|
1148
|
+
|
|
1149
|
+
class ProtocolError < BaseError
|
|
1150
|
+
def initialize: (untyped reply_type) -> void
|
|
1151
|
+
end
|
|
1152
|
+
|
|
1153
|
+
class CommandError < BaseError
|
|
1154
|
+
end
|
|
1155
|
+
|
|
1156
|
+
class PermissionError < CommandError
|
|
1157
|
+
end
|
|
1158
|
+
|
|
1159
|
+
class WrongTypeError < CommandError
|
|
1160
|
+
end
|
|
1161
|
+
|
|
1162
|
+
class OutOfMemoryError < CommandError
|
|
1163
|
+
end
|
|
1164
|
+
|
|
1165
|
+
class NoScriptError < CommandError
|
|
1166
|
+
end
|
|
1167
|
+
|
|
1168
|
+
class BaseConnectionError < BaseError
|
|
1169
|
+
end
|
|
1170
|
+
|
|
1171
|
+
class CannotConnectError < BaseConnectionError
|
|
1172
|
+
end
|
|
1173
|
+
|
|
1174
|
+
class ConnectionError < BaseConnectionError
|
|
1175
|
+
end
|
|
1176
|
+
|
|
1177
|
+
class TimeoutError < BaseConnectionError
|
|
1178
|
+
end
|
|
1179
|
+
|
|
1180
|
+
class InheritedError < BaseConnectionError
|
|
1181
|
+
end
|
|
1182
|
+
|
|
1183
|
+
class ReadOnlyError < BaseConnectionError
|
|
1184
|
+
end
|
|
1185
|
+
|
|
1186
|
+
class InvalidClientOptionError < BaseError
|
|
1187
|
+
end
|
|
1188
|
+
|
|
1189
|
+
class SubscriptionError < BaseError
|
|
1190
|
+
end
|
|
1191
|
+
end
|
|
1192
|
+
|
|
1193
|
+
class Redis
|
|
1194
|
+
class HashRing
|
|
1195
|
+
@replicas: untyped
|
|
1196
|
+
|
|
1197
|
+
@ring: untyped
|
|
1198
|
+
|
|
1199
|
+
@nodes: untyped
|
|
1200
|
+
|
|
1201
|
+
@sorted_keys: untyped
|
|
1202
|
+
|
|
1203
|
+
POINTS_PER_SERVER: 160
|
|
1204
|
+
|
|
1205
|
+
attr_reader ring: untyped
|
|
1206
|
+
|
|
1207
|
+
attr_reader sorted_keys: untyped
|
|
1208
|
+
|
|
1209
|
+
attr_reader replicas: untyped
|
|
1210
|
+
|
|
1211
|
+
attr_reader nodes: untyped
|
|
1212
|
+
|
|
1213
|
+
def initialize: (?untyped nodes, ?untyped replicas) -> void
|
|
1214
|
+
|
|
1215
|
+
def add_node: (untyped node) -> untyped
|
|
1216
|
+
|
|
1217
|
+
def remove_node: (untyped node) -> untyped
|
|
1218
|
+
|
|
1219
|
+
def get_node: (untyped key) -> untyped
|
|
1220
|
+
|
|
1221
|
+
def iter_nodes: (untyped key) { (untyped) -> untyped } -> (::Array[nil] | untyped)
|
|
1222
|
+
|
|
1223
|
+
private
|
|
1224
|
+
|
|
1225
|
+
def hash_for: (untyped key) -> untyped
|
|
1226
|
+
|
|
1227
|
+
def server_hash_for: (untyped key) -> untyped
|
|
1228
|
+
|
|
1229
|
+
def binary_search: (untyped ary, untyped value) -> untyped
|
|
1230
|
+
end
|
|
1231
|
+
end
|
|
1232
|
+
|
|
1233
|
+
class Redis
|
|
1234
|
+
class PipelinedConnection
|
|
1235
|
+
@pipeline: untyped
|
|
1236
|
+
|
|
1237
|
+
@futures: untyped
|
|
1238
|
+
|
|
1239
|
+
@exception: untyped
|
|
1240
|
+
|
|
1241
|
+
attr_accessor db: untyped
|
|
1242
|
+
|
|
1243
|
+
def initialize: (untyped pipeline, ?untyped futures, ?exception: bool) -> void
|
|
1244
|
+
|
|
1245
|
+
include Commands
|
|
1246
|
+
|
|
1247
|
+
def pipelined: () { (untyped) -> untyped } -> untyped
|
|
1248
|
+
|
|
1249
|
+
def multi: () { (untyped) -> untyped } -> untyped
|
|
1250
|
+
|
|
1251
|
+
private
|
|
1252
|
+
|
|
1253
|
+
def synchronize: () { (untyped) -> untyped } -> untyped
|
|
1254
|
+
|
|
1255
|
+
def send_command: (untyped command) { (?) -> untyped } -> untyped
|
|
1256
|
+
|
|
1257
|
+
def send_blocking_command: (untyped command, untyped timeout) { (?) -> untyped } -> untyped
|
|
1258
|
+
end
|
|
1259
|
+
|
|
1260
|
+
class MultiConnection < PipelinedConnection
|
|
1261
|
+
def multi: () -> untyped
|
|
1262
|
+
|
|
1263
|
+
private
|
|
1264
|
+
|
|
1265
|
+
def send_blocking_command: (untyped command, untyped _timeout) { (?) -> untyped } -> untyped
|
|
1266
|
+
end
|
|
1267
|
+
|
|
1268
|
+
class FutureNotReady < RuntimeError
|
|
1269
|
+
def initialize: () -> void
|
|
1270
|
+
end
|
|
1271
|
+
|
|
1272
|
+
class Future < BasicObject
|
|
1273
|
+
@command: untyped
|
|
1274
|
+
|
|
1275
|
+
@object: untyped
|
|
1276
|
+
|
|
1277
|
+
@coerce: untyped
|
|
1278
|
+
|
|
1279
|
+
@exception: untyped
|
|
1280
|
+
|
|
1281
|
+
FutureNotReady: untyped
|
|
1282
|
+
|
|
1283
|
+
def initialize: (untyped command, untyped coerce, untyped exception) -> void
|
|
1284
|
+
|
|
1285
|
+
def inspect: () -> ::String
|
|
1286
|
+
|
|
1287
|
+
def _set: (untyped object) -> untyped
|
|
1288
|
+
|
|
1289
|
+
def value: () -> untyped
|
|
1290
|
+
|
|
1291
|
+
def is_a?: (untyped other) -> bool
|
|
1292
|
+
|
|
1293
|
+
def class: () -> untyped
|
|
1294
|
+
end
|
|
1295
|
+
|
|
1296
|
+
class MultiFuture < Future
|
|
1297
|
+
@futures: untyped
|
|
1298
|
+
|
|
1299
|
+
@command: untyped
|
|
1300
|
+
|
|
1301
|
+
@object: untyped
|
|
1302
|
+
|
|
1303
|
+
def initialize: (untyped futures) -> void
|
|
1304
|
+
|
|
1305
|
+
def _set: (untyped replies) -> untyped
|
|
1306
|
+
end
|
|
1307
|
+
end
|
|
1308
|
+
|
|
1309
|
+
class Redis
|
|
1310
|
+
class SubscribedClient
|
|
1311
|
+
@client: untyped
|
|
1312
|
+
|
|
1313
|
+
@write_monitor: untyped
|
|
1314
|
+
|
|
1315
|
+
def initialize: (untyped client) -> void
|
|
1316
|
+
|
|
1317
|
+
def call_v: (untyped command) -> untyped
|
|
1318
|
+
|
|
1319
|
+
def subscribe: (*untyped channels) { (?) -> untyped } -> untyped
|
|
1320
|
+
|
|
1321
|
+
def subscribe_with_timeout: (untyped timeout, *untyped channels) { (?) -> untyped } -> untyped
|
|
1322
|
+
|
|
1323
|
+
def psubscribe: (*untyped channels) { (?) -> untyped } -> untyped
|
|
1324
|
+
|
|
1325
|
+
def psubscribe_with_timeout: (untyped timeout, *untyped channels) { (?) -> untyped } -> untyped
|
|
1326
|
+
|
|
1327
|
+
def ssubscribe: (*untyped channels) { (?) -> untyped } -> untyped
|
|
1328
|
+
|
|
1329
|
+
def ssubscribe_with_timeout: (untyped timeout, *untyped channels) { (?) -> untyped } -> untyped
|
|
1330
|
+
|
|
1331
|
+
def unsubscribe: (*untyped channels) -> untyped
|
|
1332
|
+
|
|
1333
|
+
def punsubscribe: (*untyped channels) -> untyped
|
|
1334
|
+
|
|
1335
|
+
def sunsubscribe: (*untyped channels) -> untyped
|
|
1336
|
+
|
|
1337
|
+
def close: () -> nil
|
|
1338
|
+
|
|
1339
|
+
def subscription: (untyped start, untyped stop, untyped channels, untyped block, ?::Integer timeout) -> untyped
|
|
1340
|
+
end
|
|
1341
|
+
|
|
1342
|
+
class Subscription
|
|
1343
|
+
@callbacks: untyped
|
|
1344
|
+
|
|
1345
|
+
def initialize: () { (untyped) -> untyped } -> void
|
|
1346
|
+
|
|
1347
|
+
def subscribe: () { (?) -> untyped } -> untyped
|
|
1348
|
+
|
|
1349
|
+
def unsubscribe: () { (?) -> untyped } -> untyped
|
|
1350
|
+
|
|
1351
|
+
def message: () { (?) -> untyped } -> untyped
|
|
1352
|
+
|
|
1353
|
+
def psubscribe: () { (?) -> untyped } -> untyped
|
|
1354
|
+
|
|
1355
|
+
def punsubscribe: () { (?) -> untyped } -> untyped
|
|
1356
|
+
|
|
1357
|
+
def pmessage: () { (?) -> untyped } -> untyped
|
|
1358
|
+
|
|
1359
|
+
def ssubscribe: () { (?) -> untyped } -> untyped
|
|
1360
|
+
|
|
1361
|
+
def sunsubscribe: () { (?) -> untyped } -> untyped
|
|
1362
|
+
|
|
1363
|
+
def smessage: () { (?) -> untyped } -> untyped
|
|
1364
|
+
end
|
|
1365
|
+
end
|
|
1366
|
+
|
|
1367
|
+
class Redis
|
|
1368
|
+
VERSION: "5.4.1"
|
|
1369
|
+
end
|