ruby-redis 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README +16 -15
- data/lib/redis.rb +6 -208
- data/lib/redis/bin.rb +85 -35
- data/lib/redis/bin.rbc +1953 -637
- data/lib/redis/client.rb +196 -0
- data/lib/redis/client.rbc +3983 -0
- data/lib/redis/config.rb +19 -16
- data/lib/redis/config.rbc +275 -178
- data/lib/redis/connection.rb +9 -48
- data/lib/redis/connection.rbc +157 -853
- data/lib/redis/database.rb +32 -8
- data/lib/redis/database.rbc +952 -381
- data/lib/redis/hashes.rb +2 -4
- data/lib/redis/hashes.rbc +104 -128
- data/lib/redis/keys.rb +3 -6
- data/lib/redis/keys.rbc +222 -240
- data/lib/redis/lists.rb +4 -6
- data/lib/redis/lists.rbc +310 -301
- data/lib/redis/logger.rb +4 -16
- data/lib/redis/logger.rbc +112 -122
- data/lib/redis/protocol.rb +48 -109
- data/lib/redis/protocol.rbc +1255 -2974
- data/lib/redis/pubsub.rb +1 -4
- data/lib/redis/pubsub.rbc +195 -179
- data/lib/redis/reader.rb +28 -17
- data/lib/redis/reader.rbc +748 -433
- data/lib/redis/sender.rb +15 -17
- data/lib/redis/sender.rbc +207 -218
- data/lib/redis/server.rb +4 -6
- data/lib/redis/server.rbc +90 -143
- data/lib/redis/sets.rb +1 -2
- data/lib/redis/sets.rbc +144 -146
- data/lib/redis/strict.rb +1 -3
- data/lib/redis/strict.rbc +79 -104
- data/lib/redis/strings.rb +4 -6
- data/lib/redis/strings.rbc +193 -215
- data/lib/redis/synchrony.rb +17 -24
- data/lib/redis/version.rb +2 -4
- data/lib/redis/version.rbc +18 -63
- data/lib/redis/zsets.rb +1 -3
- data/lib/redis/zsets.rbc +339 -296
- metadata +8 -7
- data/bin/ruby-redis.compiled.rbc +0 -243
data/lib/redis/server.rb
CHANGED
@@ -1,19 +1,17 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
class Redis
|
1
|
+
module Redis
|
4
2
|
|
5
3
|
module Server
|
6
4
|
|
7
5
|
def redis_FLUSHDB
|
8
6
|
@database.clear
|
9
|
-
|
7
|
+
:'+OK'
|
10
8
|
end
|
11
9
|
|
12
10
|
def redis_FLUSHALL
|
13
|
-
|
11
|
+
@databases.each do |database|
|
14
12
|
database.clear
|
15
13
|
end
|
16
|
-
|
14
|
+
:'+OK'
|
17
15
|
end
|
18
16
|
|
19
17
|
def redis_DBSIZE
|
data/lib/redis/server.rbc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
!RBIX
|
2
|
-
|
3
|
-
|
2
|
+
8948944263761558646
|
3
|
+
18
|
4
4
|
M
|
5
5
|
1
|
6
6
|
n
|
@@ -9,57 +9,32 @@ x
|
|
9
9
|
10
|
10
10
|
__script__
|
11
11
|
i
|
12
|
-
|
13
|
-
5
|
14
|
-
45
|
15
|
-
0
|
16
|
-
1
|
17
|
-
7
|
18
|
-
2
|
19
|
-
64
|
20
|
-
45
|
21
|
-
0
|
22
|
-
3
|
23
|
-
65
|
24
|
-
49
|
25
|
-
4
|
26
|
-
0
|
27
|
-
49
|
28
|
-
5
|
29
|
-
1
|
30
|
-
49
|
31
|
-
6
|
32
|
-
2
|
33
|
-
47
|
34
|
-
49
|
35
|
-
7
|
36
|
-
1
|
37
|
-
15
|
12
|
+
29
|
38
13
|
99
|
39
14
|
7
|
40
|
-
|
15
|
+
0
|
41
16
|
1
|
42
17
|
65
|
43
18
|
49
|
44
|
-
|
19
|
+
1
|
45
20
|
3
|
46
21
|
13
|
47
22
|
99
|
48
23
|
12
|
49
24
|
7
|
50
|
-
|
25
|
+
2
|
51
26
|
12
|
52
27
|
7
|
53
|
-
|
28
|
+
3
|
54
29
|
12
|
55
30
|
65
|
56
31
|
12
|
57
32
|
49
|
58
|
-
|
33
|
+
4
|
59
34
|
4
|
60
35
|
15
|
61
36
|
49
|
62
|
-
|
37
|
+
2
|
63
38
|
0
|
64
39
|
15
|
65
40
|
2
|
@@ -72,29 +47,11 @@ I
|
|
72
47
|
0
|
73
48
|
I
|
74
49
|
0
|
50
|
+
I
|
51
|
+
0
|
75
52
|
n
|
76
53
|
p
|
77
|
-
|
78
|
-
x
|
79
|
-
4
|
80
|
-
File
|
81
|
-
n
|
82
|
-
s
|
83
|
-
8
|
84
|
-
../redis
|
85
|
-
n
|
86
|
-
x
|
87
|
-
11
|
88
|
-
active_path
|
89
|
-
x
|
90
|
-
7
|
91
|
-
dirname
|
92
|
-
x
|
93
|
-
11
|
94
|
-
expand_path
|
95
|
-
x
|
96
|
-
7
|
97
|
-
require
|
54
|
+
5
|
98
55
|
x
|
99
56
|
5
|
100
57
|
Redis
|
@@ -149,6 +106,8 @@ I
|
|
149
106
|
0
|
150
107
|
I
|
151
108
|
0
|
109
|
+
I
|
110
|
+
0
|
152
111
|
n
|
153
112
|
p
|
154
113
|
5
|
@@ -250,6 +209,8 @@ I
|
|
250
209
|
0
|
251
210
|
I
|
252
211
|
0
|
212
|
+
I
|
213
|
+
0
|
253
214
|
n
|
254
215
|
p
|
255
216
|
12
|
@@ -264,18 +225,15 @@ x
|
|
264
225
|
13
|
265
226
|
redis_FLUSHDB
|
266
227
|
i
|
267
|
-
|
228
|
+
9
|
268
229
|
39
|
269
230
|
0
|
270
231
|
49
|
271
232
|
1
|
272
233
|
0
|
273
234
|
15
|
274
|
-
|
235
|
+
7
|
275
236
|
2
|
276
|
-
3
|
277
|
-
43
|
278
|
-
4
|
279
237
|
11
|
280
238
|
I
|
281
239
|
1
|
@@ -285,9 +243,11 @@ I
|
|
285
243
|
0
|
286
244
|
I
|
287
245
|
0
|
246
|
+
I
|
247
|
+
0
|
288
248
|
n
|
289
249
|
p
|
290
|
-
|
250
|
+
3
|
291
251
|
x
|
292
252
|
9
|
293
253
|
@database
|
@@ -295,28 +255,24 @@ x
|
|
295
255
|
5
|
296
256
|
clear
|
297
257
|
x
|
298
|
-
|
299
|
-
|
300
|
-
n
|
301
|
-
x
|
302
|
-
2
|
303
|
-
OK
|
258
|
+
3
|
259
|
+
+OK
|
304
260
|
p
|
305
261
|
7
|
306
262
|
I
|
307
263
|
-1
|
308
264
|
I
|
309
|
-
|
265
|
+
5
|
310
266
|
I
|
311
267
|
0
|
312
268
|
I
|
313
|
-
|
269
|
+
6
|
314
270
|
I
|
315
271
|
6
|
316
272
|
I
|
317
|
-
|
273
|
+
7
|
318
274
|
I
|
319
|
-
|
275
|
+
9
|
320
276
|
x
|
321
277
|
52
|
322
278
|
/Users/dturnbull/ruby/ruby-redis/lib/redis/server.rb
|
@@ -339,24 +295,17 @@ x
|
|
339
295
|
14
|
340
296
|
redis_FLUSHALL
|
341
297
|
i
|
342
|
-
|
343
|
-
|
344
|
-
0
|
345
|
-
1
|
346
|
-
49
|
347
|
-
2
|
298
|
+
11
|
299
|
+
39
|
348
300
|
0
|
349
301
|
56
|
350
|
-
|
302
|
+
1
|
351
303
|
50
|
352
|
-
|
304
|
+
2
|
353
305
|
0
|
354
306
|
15
|
355
|
-
45
|
356
|
-
5
|
357
|
-
6
|
358
|
-
43
|
359
307
|
7
|
308
|
+
3
|
360
309
|
11
|
361
310
|
I
|
362
311
|
2
|
@@ -366,16 +315,14 @@ I
|
|
366
315
|
0
|
367
316
|
I
|
368
317
|
0
|
318
|
+
I
|
319
|
+
0
|
369
320
|
n
|
370
321
|
p
|
371
|
-
|
372
|
-
x
|
373
|
-
5
|
374
|
-
Redis
|
375
|
-
n
|
322
|
+
4
|
376
323
|
x
|
377
|
-
|
378
|
-
databases
|
324
|
+
10
|
325
|
+
@databases
|
379
326
|
M
|
380
327
|
1
|
381
328
|
p
|
@@ -407,6 +354,8 @@ I
|
|
407
354
|
I
|
408
355
|
1
|
409
356
|
I
|
357
|
+
0
|
358
|
+
I
|
410
359
|
1
|
411
360
|
n
|
412
361
|
p
|
@@ -419,11 +368,11 @@ p
|
|
419
368
|
I
|
420
369
|
0
|
421
370
|
I
|
422
|
-
|
371
|
+
b
|
423
372
|
I
|
424
373
|
4
|
425
374
|
I
|
426
|
-
|
375
|
+
c
|
427
376
|
I
|
428
377
|
a
|
429
378
|
x
|
@@ -438,28 +387,24 @@ x
|
|
438
387
|
4
|
439
388
|
each
|
440
389
|
x
|
441
|
-
|
442
|
-
|
443
|
-
n
|
444
|
-
x
|
445
|
-
2
|
446
|
-
OK
|
390
|
+
3
|
391
|
+
+OK
|
447
392
|
p
|
448
393
|
7
|
449
394
|
I
|
450
395
|
-1
|
451
396
|
I
|
452
|
-
|
397
|
+
a
|
453
398
|
I
|
454
399
|
0
|
455
400
|
I
|
456
|
-
|
401
|
+
b
|
457
402
|
I
|
458
|
-
|
403
|
+
8
|
459
404
|
I
|
460
|
-
|
405
|
+
e
|
461
406
|
I
|
462
|
-
|
407
|
+
b
|
463
408
|
x
|
464
409
|
52
|
465
410
|
/Users/dturnbull/ruby/ruby-redis/lib/redis/server.rb
|
@@ -491,6 +436,8 @@ I
|
|
491
436
|
0
|
492
437
|
I
|
493
438
|
0
|
439
|
+
I
|
440
|
+
0
|
494
441
|
n
|
495
442
|
p
|
496
443
|
2
|
@@ -505,11 +452,11 @@ p
|
|
505
452
|
I
|
506
453
|
-1
|
507
454
|
I
|
508
|
-
|
455
|
+
11
|
509
456
|
I
|
510
457
|
0
|
511
458
|
I
|
512
|
-
|
459
|
+
12
|
513
460
|
I
|
514
461
|
6
|
515
462
|
x
|
@@ -807,6 +754,8 @@ I
|
|
807
754
|
I
|
808
755
|
1
|
809
756
|
I
|
757
|
+
0
|
758
|
+
I
|
810
759
|
2
|
811
760
|
n
|
812
761
|
p
|
@@ -896,63 +845,63 @@ p
|
|
896
845
|
I
|
897
846
|
-1
|
898
847
|
I
|
899
|
-
|
848
|
+
15
|
900
849
|
I
|
901
850
|
8
|
902
851
|
I
|
903
|
-
|
852
|
+
16
|
904
853
|
I
|
905
854
|
14
|
906
855
|
I
|
907
|
-
|
856
|
+
17
|
908
857
|
I
|
909
858
|
24
|
910
859
|
I
|
911
|
-
|
860
|
+
18
|
912
861
|
I
|
913
862
|
2e
|
914
863
|
I
|
915
|
-
|
864
|
+
1b
|
916
865
|
I
|
917
866
|
37
|
918
867
|
I
|
919
|
-
|
868
|
+
1c
|
920
869
|
I
|
921
870
|
51
|
922
871
|
I
|
923
|
-
|
872
|
+
1d
|
924
873
|
I
|
925
874
|
5a
|
926
875
|
I
|
927
|
-
|
876
|
+
1e
|
928
877
|
I
|
929
878
|
74
|
930
879
|
I
|
931
|
-
|
880
|
+
1f
|
932
881
|
I
|
933
882
|
7d
|
934
883
|
I
|
935
|
-
|
884
|
+
20
|
936
885
|
I
|
937
886
|
97
|
938
887
|
I
|
939
|
-
|
888
|
+
21
|
940
889
|
I
|
941
890
|
a0
|
942
891
|
I
|
943
|
-
|
892
|
+
22
|
944
893
|
I
|
945
894
|
ba
|
946
895
|
I
|
947
|
-
|
896
|
+
23
|
948
897
|
I
|
949
898
|
c3
|
950
899
|
I
|
951
|
-
|
900
|
+
24
|
952
901
|
I
|
953
902
|
dd
|
954
903
|
I
|
955
|
-
|
904
|
+
26
|
956
905
|
I
|
957
906
|
f3
|
958
907
|
I
|
@@ -960,15 +909,15 @@ I
|
|
960
909
|
I
|
961
910
|
f5
|
962
911
|
I
|
963
|
-
|
912
|
+
28
|
964
913
|
I
|
965
914
|
101
|
966
915
|
I
|
967
|
-
|
916
|
+
29
|
968
917
|
I
|
969
918
|
106
|
970
919
|
I
|
971
|
-
|
920
|
+
2b
|
972
921
|
I
|
973
922
|
10e
|
974
923
|
I
|
@@ -1038,6 +987,8 @@ I
|
|
1038
987
|
0
|
1039
988
|
I
|
1040
989
|
0
|
990
|
+
I
|
991
|
+
0
|
1041
992
|
n
|
1042
993
|
p
|
1043
994
|
9
|
@@ -1074,35 +1025,35 @@ p
|
|
1074
1025
|
I
|
1075
1026
|
-1
|
1076
1027
|
I
|
1077
|
-
|
1028
|
+
2f
|
1078
1029
|
I
|
1079
1030
|
0
|
1080
1031
|
I
|
1081
|
-
|
1032
|
+
31
|
1082
1033
|
I
|
1083
1034
|
3
|
1084
1035
|
I
|
1085
|
-
|
1036
|
+
32
|
1086
1037
|
I
|
1087
1038
|
6
|
1088
1039
|
I
|
1089
|
-
|
1040
|
+
33
|
1090
1041
|
I
|
1091
1042
|
e
|
1092
1043
|
I
|
1093
|
-
|
1044
|
+
35
|
1094
1045
|
I
|
1095
1046
|
13
|
1096
1047
|
I
|
1097
|
-
|
1048
|
+
36
|
1098
1049
|
I
|
1099
1050
|
16
|
1100
1051
|
I
|
1101
|
-
|
1052
|
+
37
|
1102
1053
|
I
|
1103
1054
|
19
|
1104
1055
|
I
|
1105
|
-
|
1056
|
+
31
|
1106
1057
|
I
|
1107
1058
|
1d
|
1108
1059
|
x
|
@@ -1115,23 +1066,23 @@ p
|
|
1115
1066
|
I
|
1116
1067
|
2
|
1117
1068
|
I
|
1118
|
-
|
1069
|
+
5
|
1119
1070
|
I
|
1120
1071
|
10
|
1121
1072
|
I
|
1122
|
-
|
1073
|
+
a
|
1123
1074
|
I
|
1124
1075
|
1e
|
1125
1076
|
I
|
1126
|
-
|
1077
|
+
11
|
1127
1078
|
I
|
1128
1079
|
2c
|
1129
1080
|
I
|
1130
|
-
|
1081
|
+
15
|
1131
1082
|
I
|
1132
1083
|
3a
|
1133
1084
|
I
|
1134
|
-
|
1085
|
+
2f
|
1135
1086
|
I
|
1136
1087
|
48
|
1137
1088
|
x
|
@@ -1147,7 +1098,7 @@ p
|
|
1147
1098
|
I
|
1148
1099
|
2
|
1149
1100
|
I
|
1150
|
-
|
1101
|
+
3
|
1151
1102
|
I
|
1152
1103
|
1c
|
1153
1104
|
x
|
@@ -1159,17 +1110,13 @@ x
|
|
1159
1110
|
13
|
1160
1111
|
attach_method
|
1161
1112
|
p
|
1162
|
-
|
1113
|
+
3
|
1163
1114
|
I
|
1164
1115
|
0
|
1165
1116
|
I
|
1166
1117
|
1
|
1167
1118
|
I
|
1168
|
-
|
1169
|
-
I
|
1170
|
-
3
|
1171
|
-
I
|
1172
|
-
36
|
1119
|
+
1d
|
1173
1120
|
x
|
1174
1121
|
52
|
1175
1122
|
/Users/dturnbull/ruby/ruby-redis/lib/redis/server.rb
|