io_shuten 0.1.0.dev6 → 0.1.0.dev7
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/IO_shuten/Base.html +78 -99
- data/doc/IO_shuten/Buffer.html +130 -150
- data/doc/IO_shuten/Errors/FileAccessError.html +4 -5
- data/doc/IO_shuten/Errors/FileNotFoundError.html +4 -5
- data/doc/IO_shuten/Errors/NodeExistsError.html +4 -5
- data/doc/IO_shuten/Errors/NodeNameError.html +4 -5
- data/doc/IO_shuten/Errors/NodeNotFoundError.html +4 -5
- data/doc/IO_shuten/Errors/NotYetImplemented.html +4 -5
- data/doc/IO_shuten/Errors.html +4 -5
- data/doc/IO_shuten/Memory.html +127 -147
- data/doc/IO_shuten/Mongo.html +6 -8
- data/doc/IO_shuten/Redis.html +164 -263
- data/doc/IO_shuten/Stores/BaseContainer.html +377 -0
- data/doc/IO_shuten/Stores/Mongo/Collection.html +4 -5
- data/doc/IO_shuten/Stores/Mongo/GridFS.html +4 -5
- data/doc/IO_shuten/Stores/Mongo.html +4 -5
- data/doc/IO_shuten/Stores/Redis/Container.html +778 -0
- data/doc/IO_shuten/Stores/Redis/KeyValue/Collection.html +504 -0
- data/doc/IO_shuten/Stores/Redis/KeyValue/Single.html +438 -0
- data/doc/IO_shuten/Stores/Redis/KeyValue.html +176 -7
- data/doc/IO_shuten/Stores/Redis/PubSub.html +140 -5
- data/doc/IO_shuten/Stores/Redis.html +7 -6
- data/doc/IO_shuten/Stores.html +6 -7
- data/doc/IO_shuten/Zmq.html +166 -0
- data/doc/IO_shuten.html +6 -7
- data/doc/_index.html +49 -6
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +10 -3
- data/doc/index.html +10 -3
- data/doc/method_list.html +160 -24
- data/doc/top-level-namespace.html +2 -2
- data/io_shuten.gemspec +6 -1
- data/lib/io_shuten/buffer.rb +8 -6
- data/lib/io_shuten/memory.rb +8 -5
- data/lib/io_shuten/version.rb +1 -1
- data/spec/lib/buffer_spec.rb +43 -0
- data/spec/lib/memory_spec.rb +49 -0
- data/spec/lib/redis_spec.rb +15 -1
- metadata +49 -44
data/doc/IO_shuten/Redis.html
CHANGED
@@ -101,28 +101,26 @@
|
|
101
101
|
|
102
102
|
<div class="note todo">
|
103
103
|
<strong>TODO:</strong>
|
104
|
-
<div class='inline'
|
105
|
-
Needs two backends (default database interface and pub/sub interface)
|
106
|
-
</p>
|
104
|
+
<div class='inline'>
|
105
|
+
<p>Needs two backends (default database interface and pub/sub interface)!</p>
|
107
106
|
</div>
|
108
107
|
</div>
|
109
108
|
|
110
|
-
|
111
|
-
Implementation of the Redis storage
|
112
|
-
|
113
|
-
<p>
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
write will create a new key
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
PubSub has different node types: publisher and subscriber. In future maybe
|
109
|
+
|
110
|
+
<p>Implementation of the Redis storage</p>
|
111
|
+
|
112
|
+
<p>Two backends are possible: simple key-value and pub-sub messaging</p>
|
113
|
+
|
114
|
+
<p>KeyValue has different node types.</p>
|
115
|
+
|
116
|
+
<pre class="code">Single: all writes go into a single key
|
117
|
+
Collection: every write will create a new key (namespaced)</pre>
|
118
|
+
|
119
|
+
<p>Good for events or logs.</p>
|
120
|
+
|
121
|
+
<p>PubSub has different node types: publisher and subscriber. In future maybe
|
123
122
|
a combined publisher-subscriber type possible, but in general less needed.
|
124
|
-
Good for live event messaging
|
125
|
-
</p>
|
123
|
+
Good for live event messaging.</p>
|
126
124
|
|
127
125
|
|
128
126
|
</div>
|
@@ -138,9 +136,8 @@ Good for live event messaging.
|
|
138
136
|
<dt id="redis-classvariable" class="">@@redis =
|
139
137
|
<div class="docstring">
|
140
138
|
<div class="discussion">
|
141
|
-
|
142
|
-
Global redis client instance for the pool
|
143
|
-
</p>
|
139
|
+
|
140
|
+
<p>Global redis client instance for the pool</p>
|
144
141
|
|
145
142
|
|
146
143
|
</div>
|
@@ -158,9 +155,8 @@ Global redis client instance for the pool
|
|
158
155
|
|
159
156
|
|
160
157
|
—
|
161
|
-
<div class='inline'
|
162
|
-
Redis instance
|
163
|
-
</p>
|
158
|
+
<div class='inline'>
|
159
|
+
<p>Redis instance</p>
|
164
160
|
</div>
|
165
161
|
|
166
162
|
</li>
|
@@ -169,8 +165,7 @@ Redis instance
|
|
169
165
|
|
170
166
|
</div>
|
171
167
|
</dt>
|
172
|
-
<dd><pre class="code"><span class='
|
173
|
-
</pre></dd>
|
168
|
+
<dd><pre class="code"><span class='op'>::</span><span class='const'>Redis</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span></pre></dd>
|
174
169
|
|
175
170
|
</dl>
|
176
171
|
|
@@ -215,9 +210,8 @@ Redis instance
|
|
215
210
|
|
216
211
|
|
217
212
|
|
218
|
-
<span class="summary_desc"><div class='inline'
|
219
|
-
Current redis client
|
220
|
-
</p>
|
213
|
+
<span class="summary_desc"><div class='inline'>
|
214
|
+
<p>Current redis client.</p>
|
221
215
|
</div></span>
|
222
216
|
|
223
217
|
</li>
|
@@ -239,27 +233,17 @@ Current redis client.
|
|
239
233
|
|
240
234
|
|
241
235
|
|
242
|
-
<span class="summary_desc"><div class='inline'
|
243
|
-
Sets a new global redis client for the pool
|
244
|
-
</p>
|
236
|
+
<span class="summary_desc"><div class='inline'>
|
237
|
+
<p>Sets a new global redis client for the pool.</p>
|
245
238
|
</div></span>
|
246
239
|
|
247
240
|
</li>
|
248
241
|
|
249
242
|
|
250
|
-
</ul>
|
251
|
-
|
252
|
-
<h2>
|
253
|
-
Instance Method Summary
|
254
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
255
|
-
</h2>
|
256
|
-
|
257
|
-
<ul class="summary">
|
258
|
-
|
259
243
|
<li class="public ">
|
260
244
|
<span class="summary_signature">
|
261
245
|
|
262
|
-
<a href="#
|
246
|
+
<a href="#redis_clear%21-class_method" title="redis_clear! (class method)">+ (Object) <strong>redis_clear!</strong> </a>
|
263
247
|
|
264
248
|
|
265
249
|
|
@@ -277,64 +261,25 @@ Sets a new global redis client for the pool.
|
|
277
261
|
</li>
|
278
262
|
|
279
263
|
|
280
|
-
|
281
|
-
<span class="summary_signature">
|
282
|
-
|
283
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Redis) <strong>initialize</strong>(node_name, backend, type, redis_instance = nil) </a>
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
</span>
|
288
|
-
|
289
|
-
<span class="note title constructor">constructor</span>
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
<span class="summary_desc"><div class='inline'><p>
|
299
|
-
A new instance of Redis.
|
300
|
-
</p>
|
301
|
-
</div></span>
|
264
|
+
</ul>
|
302
265
|
|
303
|
-
|
266
|
+
<h2>
|
267
|
+
Instance Method Summary
|
268
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
269
|
+
</h2>
|
304
270
|
|
271
|
+
<ul class="summary">
|
305
272
|
|
306
273
|
<li class="public ">
|
307
274
|
<span class="summary_signature">
|
308
275
|
|
309
|
-
<a href="#
|
276
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Redis) <strong>initialize</strong>(node_name, backend, type, redis_instance = nil) </a>
|
310
277
|
|
311
278
|
|
312
279
|
|
313
280
|
</span>
|
314
281
|
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
<span class="summary_desc"><div class='inline'><p>
|
323
|
-
instance methods ###.
|
324
|
-
</p>
|
325
|
-
</div></span>
|
326
|
-
|
327
|
-
</li>
|
328
|
-
|
329
|
-
|
330
|
-
<li class="public ">
|
331
|
-
<span class="summary_signature">
|
332
|
-
|
333
|
-
<a href="#write-instance_method" title="#write (instance method)">- (Object) <strong>write</strong> </a>
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
</span>
|
282
|
+
<span class="note title constructor">constructor</span>
|
338
283
|
|
339
284
|
|
340
285
|
|
@@ -343,7 +288,9 @@ instance methods ###.
|
|
343
288
|
|
344
289
|
|
345
290
|
|
346
|
-
<span class="summary_desc"><div class='inline'
|
291
|
+
<span class="summary_desc"><div class='inline'>
|
292
|
+
<p>A new instance of Redis.</p>
|
293
|
+
</div></span>
|
347
294
|
|
348
295
|
</li>
|
349
296
|
|
@@ -373,9 +320,8 @@ instance methods ###.
|
|
373
320
|
|
374
321
|
</p><div class="docstring">
|
375
322
|
<div class="discussion">
|
376
|
-
|
377
|
-
A new instance of Redis
|
378
|
-
</p>
|
323
|
+
|
324
|
+
<p>A new instance of Redis</p>
|
379
325
|
|
380
326
|
|
381
327
|
</div>
|
@@ -416,9 +362,8 @@ A new instance of Redis
|
|
416
362
|
|
417
363
|
|
418
364
|
—
|
419
|
-
<div class='inline'
|
420
|
-
|
421
|
-
</p>
|
365
|
+
<div class='inline'>
|
366
|
+
<p>:key_value, :pub_sub</p>
|
422
367
|
</div>
|
423
368
|
|
424
369
|
</li>
|
@@ -433,10 +378,9 @@ A new instance of Redis
|
|
433
378
|
|
434
379
|
|
435
380
|
—
|
436
|
-
<div class='inline'
|
437
|
-
for backend :key_value => [:single,:collection], for backend :pub_sub
|
438
|
-
=> [:publisher,:subscriber]
|
439
|
-
</p>
|
381
|
+
<div class='inline'>
|
382
|
+
<p>for backend :key_value => [:single,:collection], for backend :pub_sub
|
383
|
+
=> [:publisher,:subscriber]</p>
|
440
384
|
</div>
|
441
385
|
|
442
386
|
</li>
|
@@ -451,10 +395,9 @@ for backend :key_value => [:single,:collection], for backend :pub_sub
|
|
451
395
|
|
452
396
|
|
453
397
|
—
|
454
|
-
<div class='inline'
|
455
|
-
an instance for this specific node, otherwise the Redis.redis instance will
|
456
|
-
be used
|
457
|
-
</p>
|
398
|
+
<div class='inline'>
|
399
|
+
<p>an instance for this specific node, otherwise the Redis.redis instance will
|
400
|
+
be used</p>
|
458
401
|
</div>
|
459
402
|
|
460
403
|
</li>
|
@@ -463,7 +406,7 @@ be used
|
|
463
406
|
|
464
407
|
|
465
408
|
</div><table class="source_code blame">
|
466
|
-
<caption><span class="info file"># File 'lib/io_shuten/redis.rb', line
|
409
|
+
<caption><span class="info file"># File 'lib/io_shuten/redis.rb', line 34</span></caption>
|
467
410
|
<tr>
|
468
411
|
<td>
|
469
412
|
<table>
|
@@ -474,21 +417,10 @@ be used
|
|
474
417
|
|
475
418
|
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
476
419
|
|
477
|
-
<td class="date">2012-01-
|
478
|
-
<td class="commit"><a title="
|
479
|
-
<td class="lines">33</td>
|
480
|
-
<td><pre class="code"><span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span> <span class='rubyid_node_name identifier id'>node_name</span><span class='comma token'>,</span> <span class='rubyid_backend identifier id'>backend</span><span class='comma token'>,</span> <span class='rubyid_type identifier id'>type</span><span class='comma token'>,</span> <span class='rubyid_redis_instance identifier id'>redis_instance</span> <span class='assign token'>=</span> <span class='rubyid_nil nil kw'>nil</span></pre></td>
|
481
|
-
</tr>
|
482
|
-
|
483
|
-
|
484
|
-
<tr>
|
485
|
-
|
486
|
-
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
487
|
-
|
488
|
-
<td class="date">2012-01-23 02:28:15</td>
|
489
|
-
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
420
|
+
<td class="date">2012-01-30 01:31:05</td>
|
421
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
490
422
|
<td class="lines">34</td>
|
491
|
-
<td><pre class="code">
|
423
|
+
<td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='id identifier rubyid_node_name'>node_name</span><span class='comma'>,</span> <span class='id identifier rubyid_backend'>backend</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_redis_instance'>redis_instance</span> <span class='op'>=</span> <span class='kw'>nil</span></pre></td>
|
492
424
|
</tr>
|
493
425
|
|
494
426
|
|
@@ -496,10 +428,10 @@ be used
|
|
496
428
|
|
497
429
|
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
498
430
|
|
499
|
-
<td class="date">2012-01-
|
500
|
-
<td class="commit"><a title="
|
431
|
+
<td class="date">2012-01-30 01:31:05</td>
|
432
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
501
433
|
<td class="lines">35</td>
|
502
|
-
<td><pre class="code"> <span class='
|
434
|
+
<td><pre class="code"> <span class='kw'>if</span> <span class='lbracket'>[</span><span class='const'>String</span><span class='comma'>,</span> <span class='const'>Symbol</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_node_name'>node_name</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='rparen'>)</span></pre></td>
|
503
435
|
</tr>
|
504
436
|
|
505
437
|
|
@@ -507,10 +439,10 @@ be used
|
|
507
439
|
|
508
440
|
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
509
441
|
|
510
|
-
<td class="date">2012-01-
|
511
|
-
<td class="commit"><a title="
|
442
|
+
<td class="date">2012-01-30 01:31:05</td>
|
443
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
512
444
|
<td class="lines">36</td>
|
513
|
-
<td><pre class="code">
|
445
|
+
<td><pre class="code"> <span class='kw'>unless</span> <span class='const'>Redis</span><span class='period'>.</span><span class='id identifier rubyid_instance_exists?'>instance_exists?</span> <span class='id identifier rubyid_node_name'>node_name</span></pre></td>
|
514
446
|
</tr>
|
515
447
|
|
516
448
|
|
@@ -518,10 +450,10 @@ be used
|
|
518
450
|
|
519
451
|
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
520
452
|
|
521
|
-
<td class="date">2012-01-
|
522
|
-
<td class="commit"><a title="
|
453
|
+
<td class="date">2012-01-30 01:31:05</td>
|
454
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
523
455
|
<td class="lines">37</td>
|
524
|
-
<td><pre class="code">
|
456
|
+
<td><pre class="code"> <span class='ivar'>@node_name</span> <span class='op'>=</span> <span class='id identifier rubyid_node_name'>node_name</span></pre></td>
|
525
457
|
</tr>
|
526
458
|
|
527
459
|
|
@@ -529,10 +461,10 @@ be used
|
|
529
461
|
|
530
462
|
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
531
463
|
|
532
|
-
<td class="date">2012-01-
|
533
|
-
<td class="commit"><a title="
|
464
|
+
<td class="date">2012-01-30 01:31:05</td>
|
465
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
534
466
|
<td class="lines">38</td>
|
535
|
-
<td><pre class="code"> <span class='
|
467
|
+
<td><pre class="code"> <span class='id identifier rubyid_redis_instance'>redis_instance</span> <span class='op'>||=</span> <span class='cvar'>@@redis</span></pre></td>
|
536
468
|
</tr>
|
537
469
|
|
538
470
|
|
@@ -540,10 +472,10 @@ be used
|
|
540
472
|
|
541
473
|
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
542
474
|
|
543
|
-
<td class="date">2012-01-
|
544
|
-
<td class="commit"><a title="
|
475
|
+
<td class="date">2012-01-30 01:31:05</td>
|
476
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
545
477
|
<td class="lines">39</td>
|
546
|
-
<td><pre class="code">
|
478
|
+
<td><pre class="code"> <span class='ivar'>@container</span> <span class='op'>=</span> <span class='const'>Stores</span><span class='op'>::</span><span class='const'>Redis</span><span class='op'>::</span><span class='const'>Container</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_node_name'>node_name</span><span class='comma'>,</span> <span class='id identifier rubyid_backend'>backend</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_redis_instance'>redis_instance</span><span class='rparen'>)</span></pre></td>
|
547
479
|
</tr>
|
548
480
|
|
549
481
|
|
@@ -554,7 +486,7 @@ be used
|
|
554
486
|
<td class="date">2012-01-23 02:28:15</td>
|
555
487
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
556
488
|
<td class="lines">40</td>
|
557
|
-
<td><pre class="code"> <span class='
|
489
|
+
<td><pre class="code"> <span class='cvar'>@@instances</span> <span class='op'><<</span> <span class='kw'>self</span> <span class='kw'>unless</span> <span class='cvar'>@@instances</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span></pre></td>
|
558
490
|
</tr>
|
559
491
|
|
560
492
|
|
@@ -562,10 +494,10 @@ be used
|
|
562
494
|
|
563
495
|
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
564
496
|
|
565
|
-
<td class="date">2012-01-
|
566
|
-
<td class="commit"><a title="
|
497
|
+
<td class="date">2012-01-30 01:31:05</td>
|
498
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
567
499
|
<td class="lines">41</td>
|
568
|
-
<td><pre class="code"> <span class='
|
500
|
+
<td><pre class="code"> <span class='kw'>else</span></pre></td>
|
569
501
|
</tr>
|
570
502
|
|
571
503
|
|
@@ -573,10 +505,32 @@ be used
|
|
573
505
|
|
574
506
|
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
575
507
|
|
576
|
-
<td class="date">2012-01-
|
577
|
-
<td class="commit"><a title="
|
508
|
+
<td class="date">2012-01-30 01:31:05</td>
|
509
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
578
510
|
<td class="lines">42</td>
|
579
|
-
<td><pre class="code"> <span class='
|
511
|
+
<td><pre class="code"> <span class='id identifier rubyid_raise'>raise</span> <span class='const'>Errors</span><span class='op'>::</span><span class='const'>NodeExistsError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Node already in pool, replacement is not allowed.</span><span class='tstring_end'>"</span></span></pre></td>
|
512
|
+
</tr>
|
513
|
+
|
514
|
+
|
515
|
+
<tr>
|
516
|
+
|
517
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
518
|
+
|
519
|
+
<td class="date">2012-01-30 01:31:05</td>
|
520
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
521
|
+
<td class="lines">43</td>
|
522
|
+
<td><pre class="code"> <span class='kw'>end</span></pre></td>
|
523
|
+
</tr>
|
524
|
+
|
525
|
+
|
526
|
+
<tr>
|
527
|
+
|
528
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
529
|
+
|
530
|
+
<td class="date">2012-01-30 01:31:05</td>
|
531
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
532
|
+
<td class="lines">44</td>
|
533
|
+
<td><pre class="code"> <span class='kw'>else</span></pre></td>
|
580
534
|
</tr>
|
581
535
|
|
582
536
|
|
@@ -586,8 +540,19 @@ be used
|
|
586
540
|
|
587
541
|
<td class="date">2012-01-23 02:28:15</td>
|
588
542
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
589
|
-
<td class="lines">
|
590
|
-
<td><pre class="code">
|
543
|
+
<td class="lines">45</td>
|
544
|
+
<td><pre class="code"> <span class='id identifier rubyid_raise'>raise</span> <span class='const'>Errors</span><span class='op'>::</span><span class='const'>NodeNameError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Name must be kind of String or Symbol and can't be nil.</span><span class='tstring_end'>"</span></span></pre></td>
|
545
|
+
</tr>
|
546
|
+
|
547
|
+
|
548
|
+
<tr>
|
549
|
+
|
550
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
551
|
+
|
552
|
+
<td class="date">2012-01-30 01:31:05</td>
|
553
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
554
|
+
<td class="lines">46</td>
|
555
|
+
<td><pre class="code"> <span class='kw'>end</span></pre></td>
|
591
556
|
</tr>
|
592
557
|
|
593
558
|
|
@@ -597,8 +562,8 @@ be used
|
|
597
562
|
|
598
563
|
<td class="date">2012-01-23 02:28:15</td>
|
599
564
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
600
|
-
<td class="lines">
|
601
|
-
<td><pre class="code"
|
565
|
+
<td class="lines">47</td>
|
566
|
+
<td><pre class="code"></pre></td>
|
602
567
|
</tr>
|
603
568
|
|
604
569
|
|
@@ -608,8 +573,8 @@ be used
|
|
608
573
|
|
609
574
|
<td class="date">2012-01-23 02:28:15</td>
|
610
575
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
611
|
-
<td class="lines">
|
612
|
-
<td><pre class="code"><span class='
|
576
|
+
<td class="lines">48</td>
|
577
|
+
<td><pre class="code"><span class='kw'>end</span></pre></td>
|
613
578
|
</tr>
|
614
579
|
|
615
580
|
</table>
|
@@ -645,9 +610,8 @@ be used
|
|
645
610
|
|
646
611
|
</p><div class="docstring">
|
647
612
|
<div class="discussion">
|
648
|
-
|
649
|
-
Current redis client
|
650
|
-
</p>
|
613
|
+
|
614
|
+
<p>Current redis client</p>
|
651
615
|
|
652
616
|
|
653
617
|
</div>
|
@@ -665,9 +629,8 @@ Current redis client
|
|
665
629
|
|
666
630
|
|
667
631
|
—
|
668
|
-
<div class='inline'
|
669
|
-
current redis client
|
670
|
-
</p>
|
632
|
+
<div class='inline'>
|
633
|
+
<p>current redis client</p>
|
671
634
|
</div>
|
672
635
|
|
673
636
|
</li>
|
@@ -675,7 +638,7 @@ current redis client
|
|
675
638
|
</ul>
|
676
639
|
|
677
640
|
</div><table class="source_code blame">
|
678
|
-
<caption><span class="info file"># File 'lib/io_shuten/redis.rb', line
|
641
|
+
<caption><span class="info file"># File 'lib/io_shuten/redis.rb', line 55</span></caption>
|
679
642
|
<tr>
|
680
643
|
<td>
|
681
644
|
<table>
|
@@ -688,8 +651,8 @@ current redis client
|
|
688
651
|
|
689
652
|
<td class="date">2012-01-23 02:28:15</td>
|
690
653
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
691
|
-
<td class="lines">
|
692
|
-
<td><pre class="code"><span class='
|
654
|
+
<td class="lines">55</td>
|
655
|
+
<td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_redis'>redis</span></pre></td>
|
693
656
|
</tr>
|
694
657
|
|
695
658
|
|
@@ -699,8 +662,8 @@ current redis client
|
|
699
662
|
|
700
663
|
<td class="date">2012-01-23 02:28:15</td>
|
701
664
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
702
|
-
<td class="lines">
|
703
|
-
<td><pre class="code"> <span class='
|
665
|
+
<td class="lines">56</td>
|
666
|
+
<td><pre class="code"> <span class='cvar'>@@redis</span></pre></td>
|
704
667
|
</tr>
|
705
668
|
|
706
669
|
|
@@ -710,8 +673,8 @@ current redis client
|
|
710
673
|
|
711
674
|
<td class="date">2012-01-23 02:28:15</td>
|
712
675
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
713
|
-
<td class="lines">
|
714
|
-
<td><pre class="code"><span class='
|
676
|
+
<td class="lines">57</td>
|
677
|
+
<td><pre class="code"><span class='kw'>end</span></pre></td>
|
715
678
|
</tr>
|
716
679
|
|
717
680
|
</table>
|
@@ -730,9 +693,8 @@ current redis client
|
|
730
693
|
|
731
694
|
</p><div class="docstring">
|
732
695
|
<div class="discussion">
|
733
|
-
|
734
|
-
Sets a new global redis client for the pool
|
735
|
-
</p>
|
696
|
+
|
697
|
+
<p>Sets a new global redis client for the pool</p>
|
736
698
|
|
737
699
|
|
738
700
|
</div>
|
@@ -750,9 +712,8 @@ Sets a new global redis client for the pool
|
|
750
712
|
|
751
713
|
|
752
714
|
—
|
753
|
-
<div class='inline'
|
754
|
-
new redis client
|
755
|
-
</p>
|
715
|
+
<div class='inline'>
|
716
|
+
<p>new redis client</p>
|
756
717
|
</div>
|
757
718
|
|
758
719
|
</li>
|
@@ -760,7 +721,7 @@ new redis client
|
|
760
721
|
</ul>
|
761
722
|
|
762
723
|
</div><table class="source_code blame">
|
763
|
-
<caption><span class="info file"># File 'lib/io_shuten/redis.rb', line
|
724
|
+
<caption><span class="info file"># File 'lib/io_shuten/redis.rb', line 61</span></caption>
|
764
725
|
<tr>
|
765
726
|
<td>
|
766
727
|
<table>
|
@@ -771,10 +732,10 @@ new redis client
|
|
771
732
|
|
772
733
|
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
773
734
|
|
774
|
-
<td class="date">2012-01-
|
775
|
-
<td class="commit"><a title="
|
776
|
-
<td class="lines">
|
777
|
-
<td><pre class="code"><span class='
|
735
|
+
<td class="date">2012-01-30 01:31:05</td>
|
736
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
737
|
+
<td class="lines">61</td>
|
738
|
+
<td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_redis='>redis=</span> <span class='id identifier rubyid_new_redis'>new_redis</span></pre></td>
|
778
739
|
</tr>
|
779
740
|
|
780
741
|
|
@@ -784,8 +745,8 @@ new redis client
|
|
784
745
|
|
785
746
|
<td class="date">2012-01-23 02:28:15</td>
|
786
747
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
787
|
-
<td class="lines">
|
788
|
-
<td><pre class="code"> <span class='
|
748
|
+
<td class="lines">62</td>
|
749
|
+
<td><pre class="code"> <span class='cvar'>@@redis</span> <span class='op'>=</span> <span class='id identifier rubyid_new_redis'>new_redis</span></pre></td>
|
789
750
|
</tr>
|
790
751
|
|
791
752
|
|
@@ -795,8 +756,8 @@ new redis client
|
|
795
756
|
|
796
757
|
<td class="date">2012-01-23 02:28:15</td>
|
797
758
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
798
|
-
<td class="lines">
|
799
|
-
<td><pre class="code"><span class='
|
759
|
+
<td class="lines">63</td>
|
760
|
+
<td><pre class="code"><span class='kw'>end</span></pre></td>
|
800
761
|
</tr>
|
801
762
|
|
802
763
|
</table>
|
@@ -806,21 +767,15 @@ new redis client
|
|
806
767
|
</table>
|
807
768
|
</div>
|
808
769
|
|
809
|
-
|
810
|
-
|
811
|
-
<div id="instance_method_details" class="method_details_list">
|
812
|
-
<h2>Instance Method Details</h2>
|
813
|
-
|
814
|
-
|
815
|
-
<div class="method_details first">
|
816
|
-
<p class="signature first" id="close-instance_method">
|
770
|
+
<div class="method_details ">
|
771
|
+
<p class="signature " id="redis_clear!-class_method">
|
817
772
|
|
818
|
-
|
773
|
+
+ (<tt>Object</tt>) <strong>redis_clear!</strong>
|
819
774
|
|
820
775
|
|
821
776
|
|
822
777
|
</p><table class="source_code blame">
|
823
|
-
<caption><span class="info file"># File 'lib/io_shuten/redis.rb', line
|
778
|
+
<caption><span class="info file"># File 'lib/io_shuten/redis.rb', line 65</span></caption>
|
824
779
|
<tr>
|
825
780
|
<td>
|
826
781
|
<table>
|
@@ -831,10 +786,10 @@ new redis client
|
|
831
786
|
|
832
787
|
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
833
788
|
|
834
|
-
<td class="date">2012-01-
|
835
|
-
<td class="commit"><a title="
|
836
|
-
<td class="lines">
|
837
|
-
<td><pre class="code"><span class='
|
789
|
+
<td class="date">2012-01-30 01:31:05</td>
|
790
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
791
|
+
<td class="lines">65</td>
|
792
|
+
<td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_redis_clear!'>redis_clear!</span></pre></td>
|
838
793
|
</tr>
|
839
794
|
|
840
795
|
|
@@ -842,54 +797,21 @@ new redis client
|
|
842
797
|
|
843
798
|
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
844
799
|
|
845
|
-
<td class="date">2012-01-
|
846
|
-
<td class="commit"><a title="
|
847
|
-
<td class="lines">
|
848
|
-
<td><pre class="code"><span class='
|
800
|
+
<td class="date">2012-01-30 01:31:05</td>
|
801
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
802
|
+
<td class="lines">66</td>
|
803
|
+
<td><pre class="code"> <span class='id identifier rubyid_keys'>keys</span> <span class='op'>=</span> <span class='cvar'>@@redis</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span></pre></td>
|
849
804
|
</tr>
|
850
805
|
|
851
|
-
</table>
|
852
|
-
</td>
|
853
|
-
<td>
|
854
|
-
</tr>
|
855
|
-
</table>
|
856
|
-
</div>
|
857
|
-
|
858
|
-
<div class="method_details ">
|
859
|
-
<p class="signature " id="read-instance_method">
|
860
|
-
|
861
|
-
- (<tt>Object</tt>) <strong>read</strong>
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
</p><div class="docstring">
|
866
|
-
<div class="discussion">
|
867
|
-
<p>
|
868
|
-
instance methods ###
|
869
|
-
</p>
|
870
|
-
|
871
|
-
|
872
|
-
</div>
|
873
|
-
</div>
|
874
|
-
<div class="tags">
|
875
|
-
|
876
|
-
|
877
|
-
</div><table class="source_code blame">
|
878
|
-
<caption><span class="info file"># File 'lib/io_shuten/redis.rb', line 65</span></caption>
|
879
|
-
<tr>
|
880
|
-
<td>
|
881
|
-
<table>
|
882
|
-
|
883
|
-
|
884
806
|
|
885
807
|
<tr>
|
886
808
|
|
887
809
|
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
888
810
|
|
889
|
-
<td class="date">2012-01-
|
890
|
-
<td class="commit"><a title="
|
891
|
-
<td class="lines">
|
892
|
-
<td><pre class="code"><span class='
|
811
|
+
<td class="date">2012-01-30 01:31:05</td>
|
812
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
813
|
+
<td class="lines">67</td>
|
814
|
+
<td><pre class="code"> <span class='id identifier rubyid_keys'>keys</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='op'>|</span></pre></td>
|
893
815
|
</tr>
|
894
816
|
|
895
817
|
|
@@ -897,42 +819,21 @@ instance methods ###
|
|
897
819
|
|
898
820
|
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
899
821
|
|
900
|
-
<td class="date">2012-01-
|
901
|
-
<td class="commit"><a title="
|
902
|
-
<td class="lines">
|
903
|
-
<td><pre class="code"><span class='
|
822
|
+
<td class="date">2012-01-30 01:31:05</td>
|
823
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
824
|
+
<td class="lines">68</td>
|
825
|
+
<td><pre class="code"> <span class='cvar'>@@redis</span><span class='period'>.</span><span class='id identifier rubyid_del'>del</span> <span class='id identifier rubyid_key'>key</span></pre></td>
|
904
826
|
</tr>
|
905
827
|
|
906
|
-
</table>
|
907
|
-
</td>
|
908
|
-
<td>
|
909
|
-
</tr>
|
910
|
-
</table>
|
911
|
-
</div>
|
912
|
-
|
913
|
-
<div class="method_details ">
|
914
|
-
<p class="signature " id="write-instance_method">
|
915
|
-
|
916
|
-
- (<tt>Object</tt>) <strong>write</strong>
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
</p><table class="source_code blame">
|
921
|
-
<caption><span class="info file"># File 'lib/io_shuten/redis.rb', line 68</span></caption>
|
922
|
-
<tr>
|
923
|
-
<td>
|
924
|
-
<table>
|
925
|
-
|
926
|
-
|
927
828
|
|
928
829
|
<tr>
|
929
830
|
|
930
831
|
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
931
832
|
|
932
|
-
<td class="date">2012-01-
|
933
|
-
<td class="commit"><a title="
|
934
|
-
<td class="lines">
|
935
|
-
<td><pre class="code"
|
833
|
+
<td class="date">2012-01-30 01:31:05</td>
|
834
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
835
|
+
<td class="lines">69</td>
|
836
|
+
<td><pre class="code"> <span class='kw'>end</span></pre></td>
|
936
837
|
</tr>
|
937
838
|
|
938
839
|
|
@@ -942,8 +843,8 @@ instance methods ###
|
|
942
843
|
|
943
844
|
<td class="date">2012-01-23 02:28:15</td>
|
944
845
|
<td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
|
945
|
-
<td class="lines">
|
946
|
-
<td><pre class="code"><span class='
|
846
|
+
<td class="lines">70</td>
|
847
|
+
<td><pre class="code"><span class='kw'>end</span></pre></td>
|
947
848
|
</tr>
|
948
849
|
|
949
850
|
</table>
|
@@ -958,9 +859,9 @@ instance methods ###
|
|
958
859
|
</div>
|
959
860
|
|
960
861
|
<div id="footer">
|
961
|
-
Generated on
|
862
|
+
Generated on Mon Jan 30 01:52:36 2012 by
|
962
863
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
963
|
-
0.7.4 (ruby-1.
|
864
|
+
0.7.4 (ruby-1.9.3).
|
964
865
|
</div>
|
965
866
|
|
966
867
|
</body>
|