io_shuten 0.0.1.dev5 → 0.0.3.dev1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. data/.travis.yml +7 -0
  2. data/Gemfile +3 -4
  3. data/Gemfile.lock +2 -8
  4. data/README.md +17 -3
  5. data/Rakefile +25 -1
  6. data/benchmark/compare_mem_w_buf.rb +134 -0
  7. data/doc/IO_3A_3ABuffer.html +198 -0
  8. data/doc/IO_shuten/Base.html +349 -1943
  9. data/doc/IO_shuten/Buffer.html +1842 -0
  10. data/doc/IO_shuten/Errors/FileAccessError.html +5 -4
  11. data/doc/IO_shuten/Errors/FileNotFoundError.html +5 -4
  12. data/doc/IO_shuten/Errors/NodeExistsError.html +5 -4
  13. data/doc/IO_shuten/Errors/NodeNameError.html +5 -4
  14. data/doc/IO_shuten/Errors/NodeNotFoundError.html +5 -4
  15. data/doc/IO_shuten/Errors/NotYetImplemented.html +5 -4
  16. data/doc/IO_shuten/Errors.html +5 -4
  17. data/doc/IO_shuten/Memory.html +1798 -0
  18. data/doc/IO_shuten/Mongo.html +9 -13
  19. data/doc/IO_shuten/Redis.html +803 -8
  20. data/doc/IO_shuten/Stores/Mongo/Collection.html +5 -4
  21. data/doc/IO_shuten/Stores/Mongo/GridFS.html +5 -4
  22. data/doc/IO_shuten/Stores/Mongo.html +5 -4
  23. data/doc/IO_shuten/Stores/Redis/KeyValue.html +5 -4
  24. data/doc/IO_shuten/Stores/Redis/PubSub.html +5 -4
  25. data/doc/IO_shuten/Stores/Redis.html +5 -4
  26. data/doc/IO_shuten/Stores.html +5 -4
  27. data/doc/IO_shuten.html +7 -6
  28. data/doc/_index.html +20 -6
  29. data/doc/class_list.html +1 -1
  30. data/doc/file.README.html +21 -6
  31. data/doc/index.html +21 -6
  32. data/doc/method_list.html +119 -15
  33. data/doc/top-level-namespace.html +2 -2
  34. data/io_shuten.gemspec +16 -12
  35. data/lib/io_shuten/base.rb +1 -129
  36. data/lib/io_shuten/buffer.rb +156 -0
  37. data/lib/io_shuten/memory.rb +145 -0
  38. data/lib/io_shuten/redis.rb +65 -0
  39. data/lib/io_shuten/version.rb +1 -1
  40. data/lib/io_shuten.rb +2 -0
  41. data/spec/examples/logger_spec.rb +18 -2
  42. data/spec/lib/buffer_spec.rb +387 -0
  43. data/spec/lib/{base_spec.rb → memory_spec.rb} +92 -82
  44. data/spec/lib/mongo_spec.rb +1 -1
  45. data/spec/lib/redis_spec.rb +1 -1
  46. data/spec/spec_helper.rb +16 -12
  47. metadata +233 -163
@@ -101,21 +101,80 @@
101
101
 
102
102
  <div class="note todo">
103
103
  <strong>TODO:</strong>
104
- <div class='inline'>
105
- <p>Needs two backends (default database interface and pub/sub interface)!</p>
104
+ <div class='inline'><p>
105
+ Needs two backends (default database interface and pub/sub interface)!
106
+ </p>
106
107
  </div>
107
108
  </div>
108
109
 
110
+ <p>
111
+ Implementation of the Redis storage
112
+ </p>
113
+ <p>
114
+ Two backends are possible: simple key-value and pub-sub messaging
115
+ </p>
116
+ <p>
117
+ KeyValue has different node types. Incremental single message store: each
118
+ write will create a new key. Message collection store: all writes go to a
119
+ single key. Good for events or logs.
120
+ </p>
121
+ <p>
122
+ PubSub has different node types: publisher and subscriber. In future maybe
123
+ a combined publisher-subscriber type possible, but in general less needed.
124
+ Good for live event messaging.
125
+ </p>
109
126
 
110
- <p>Implementation of the Redis storage</p>
127
+
128
+ </div>
129
+ </div>
130
+ <div class="tags">
131
+
132
+
133
+ </div>
134
+ <h2>Constant Summary</h2>
135
+
136
+ <dl class="constants">
137
+
138
+ <dt id="redis-classvariable" class="">@@redis =
139
+ <div class="docstring">
140
+ <div class="discussion">
141
+ <p>
142
+ Global redis client instance for the pool
143
+ </p>
111
144
 
112
145
 
113
146
  </div>
114
147
  </div>
115
148
  <div class="tags">
116
149
 
150
+ <h3>Returns:</h3>
151
+ <ul class="return">
152
+
153
+ <li>
154
+
155
+
156
+ <span class='type'>(<tt>Object</tt>)</span>
157
+
158
+
159
+
160
+ &mdash;
161
+ <div class='inline'><p>
162
+ Redis instance
163
+ </p>
164
+ </div>
165
+
166
+ </li>
167
+
168
+ </ul>
117
169
 
118
170
  </div>
171
+ </dt>
172
+ <dd><pre class="code"><span class='colon3 op'>::</span><span class='rubyid_Redis constant id'>Redis</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span>
173
+ </pre></dd>
174
+
175
+ </dl>
176
+
177
+
119
178
 
120
179
 
121
180
 
@@ -132,20 +191,433 @@
132
191
  <p class="inherited"><span class='object_link'><a href="Base.html#container-instance_method" title="IO_shuten::Base#container (method)">container</a></span>, <span class='object_link'><a href="Base.html#node_name-instance_method" title="IO_shuten::Base#node_name (method)">node_name</a></span></p>
133
192
 
134
193
 
194
+
195
+ <h2>
196
+ Class Method Summary
197
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
198
+ </h2>
199
+
200
+ <ul class="summary">
201
+
202
+ <li class="public ">
203
+ <span class="summary_signature">
204
+
205
+ <a href="#redis-class_method" title="redis (class method)">+ (Object) <strong>redis</strong> </a>
206
+
207
+
208
+
209
+ </span>
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+ <span class="summary_desc"><div class='inline'><p>
219
+ Current redis client.
220
+ </p>
221
+ </div></span>
222
+
223
+ </li>
224
+
225
+
226
+ <li class="public ">
227
+ <span class="summary_signature">
228
+
229
+ <a href="#redis%3D-class_method" title="redis= (class method)">+ (Object) <strong>redis=</strong>(new_redis) </a>
230
+
135
231
 
232
+
233
+ </span>
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+ <span class="summary_desc"><div class='inline'><p>
243
+ Sets a new global redis client for the pool.
244
+ </p>
245
+ </div></span>
246
+
247
+ </li>
248
+
249
+
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
+ <li class="public ">
260
+ <span class="summary_signature">
261
+
262
+ <a href="#close-instance_method" title="#close (instance method)">- (Object) <strong>close</strong> </a>
263
+
264
+
265
+
266
+ </span>
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+ <span class="summary_desc"><div class='inline'></div></span>
276
+
277
+ </li>
278
+
279
+
280
+ <li class="public ">
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>
302
+
303
+ </li>
304
+
305
+
306
+ <li class="public ">
307
+ <span class="summary_signature">
308
+
309
+ <a href="#read-instance_method" title="#read (instance method)">- (Object) <strong>read</strong> </a>
310
+
311
+
312
+
313
+ </span>
314
+
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>
338
+
339
+
340
+
341
+
342
+
343
+
344
+
345
+
346
+ <span class="summary_desc"><div class='inline'></div></span>
347
+
348
+ </li>
349
+
350
+
351
+ </ul>
352
+
353
+
354
+
355
+
136
356
 
137
357
 
138
358
 
139
359
 
140
360
 
141
- <h2>Method Summary</h2>
142
361
 
143
362
  <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Base.html" title="IO_shuten::Base (class)">Base</a></span></h3>
144
- <p class="inherited"><span class='object_link'><a href="Base.html#delete_instance-class_method" title="IO_shuten::Base.delete_instance (method)">delete_instance</a></span>, <span class='object_link'><a href="Base.html#file_exists%3F-instance_method" title="IO_shuten::Base#file_exists? (method)">#file_exists?</a></span>, <span class='object_link'><a href="Base.html#initialize-instance_method" title="IO_shuten::Base#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Base.html#instance_exists%3F-class_method" title="IO_shuten::Base.instance_exists? (method)">instance_exists?</a></span>, <span class='object_link'><a href="Base.html#instances-class_method" title="IO_shuten::Base.instances (method)">instances</a></span>, <span class='object_link'><a href="Base.html#load_from_file-instance_method" title="IO_shuten::Base#load_from_file (method)">#load_from_file</a></span>, <span class='object_link'><a href="Base.html#load_instances-class_method" title="IO_shuten::Base.load_instances (method)">load_instances</a></span>, <span class='object_link'><a href="Base.html#open-class_method" title="IO_shuten::Base.open (method)">open</a></span>, <span class='object_link'><a href="Base.html#purge_instances%21-class_method" title="IO_shuten::Base.purge_instances! (method)">purge_instances!</a></span>, <span class='object_link'><a href="Base.html#save_instances-class_method" title="IO_shuten::Base.save_instances (method)">save_instances</a></span>, <span class='object_link'><a href="Base.html#save_to_file-instance_method" title="IO_shuten::Base#save_to_file (method)">#save_to_file</a></span></p>
363
+ <p class="inherited"><span class='object_link'><a href="Base.html#delete_instance-class_method" title="IO_shuten::Base.delete_instance (method)">delete_instance</a></span>, <span class='object_link'><a href="Base.html#instance_exists%3F-class_method" title="IO_shuten::Base.instance_exists? (method)">instance_exists?</a></span>, <span class='object_link'><a href="Base.html#instances-class_method" title="IO_shuten::Base.instances (method)">instances</a></span>, <span class='object_link'><a href="Base.html#purge_instances%21-class_method" title="IO_shuten::Base.purge_instances! (method)">purge_instances!</a></span></p>
145
364
  <div id="constructor_details" class="method_details_list">
146
365
  <h2>Constructor Details</h2>
147
366
 
148
- <p class="notice">This class inherits a constructor from <span class='object_link'><a href="Base.html#initialize-instance_method" title="IO_shuten::Base#initialize (method)">IO_shuten::Base</a></span></p>
367
+ <div class="method_details first">
368
+ <p class="signature first" id="initialize-instance_method">
369
+
370
+ - (<tt><span class='object_link'><a href="" title="IO_shuten::Redis (class)">Redis</a></span></tt>) <strong>initialize</strong>(node_name, backend, type, redis_instance = nil)
371
+
372
+
373
+
374
+ </p><div class="docstring">
375
+ <div class="discussion">
376
+ <p>
377
+ A new instance of Redis
378
+ </p>
379
+
380
+
381
+ </div>
382
+ </div>
383
+ <div class="tags">
384
+ <h3>Parameters:</h3>
385
+ <ul class="param">
386
+
387
+ <li>
388
+
389
+ <span class='name'>node_name</span>
390
+
391
+
392
+ <span class='type'>(<tt>String</tt>)</span>
393
+
394
+
395
+
396
+ </li>
397
+
398
+ <li>
399
+
400
+ <span class='name'>node_name</span>
401
+
402
+
403
+ <span class='type'>(<tt>Symbol</tt>)</span>
404
+
405
+
406
+
407
+ </li>
408
+
409
+ <li>
410
+
411
+ <span class='name'>backend</span>
412
+
413
+
414
+ <span class='type'>(<tt>Symbol</tt>)</span>
415
+
416
+
417
+
418
+ &mdash;
419
+ <div class='inline'><p>
420
+ :key_value, :pub_sub
421
+ </p>
422
+ </div>
423
+
424
+ </li>
425
+
426
+ <li>
427
+
428
+ <span class='name'>type</span>
429
+
430
+
431
+ <span class='type'>(<tt>Symbol</tt>)</span>
432
+
433
+
434
+
435
+ &mdash;
436
+ <div class='inline'><p>
437
+ for backend :key_value =&gt; [:single,:collection], for backend :pub_sub
438
+ =&gt; [:publisher,:subscriber]
439
+ </p>
440
+ </div>
441
+
442
+ </li>
443
+
444
+ <li>
445
+
446
+ <span class='name'>Redis</span>
447
+
448
+
449
+ <span class='type'>(<tt>Object</tt>)</span>
450
+
451
+
452
+
453
+ &mdash;
454
+ <div class='inline'><p>
455
+ an instance for this specific node, otherwise the Redis.redis instance will
456
+ be used
457
+ </p>
458
+ </div>
459
+
460
+ </li>
461
+
462
+ </ul>
463
+
464
+
465
+ </div><table class="source_code blame">
466
+ <caption><span class="info file"># File 'lib/io_shuten/redis.rb', line 33</span></caption>
467
+ <tr>
468
+ <td>
469
+ <table>
470
+
471
+
472
+
473
+ <tr>
474
+
475
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
476
+
477
+ <td class="date">2012-01-23 02:28:15</td>
478
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
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>
490
+ <td class="lines">34</td>
491
+ <td><pre class="code"> <span class='comment val'># based on the backend type it should instantiate the corresponding backend store module</span></pre></td>
492
+ </tr>
493
+
494
+
495
+ <tr>
496
+
497
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
498
+
499
+ <td class="date">2012-01-23 02:28:15</td>
500
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
501
+ <td class="lines">35</td>
502
+ <td><pre class="code"> <span class='rubyid_node identifier id'>node</span> <span class='assign token'>=</span> <span class='symbol val'>:nil</span></pre></td>
503
+ </tr>
504
+
505
+
506
+ <tr>
507
+
508
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
509
+
510
+ <td class="date">2012-01-23 02:28:15</td>
511
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
512
+ <td class="lines">36</td>
513
+ <td><pre class="code"> <span class='rubyid_case case kw'>case</span> <span class='rubyid_backend identifier id'>backend</span></pre></td>
514
+ </tr>
515
+
516
+
517
+ <tr>
518
+
519
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
520
+
521
+ <td class="date">2012-01-23 02:28:15</td>
522
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
523
+ <td class="lines">37</td>
524
+ <td><pre class="code"> <span class='rubyid_when when kw'>when</span> <span class='symbol val'>:key_value</span></pre></td>
525
+ </tr>
526
+
527
+
528
+ <tr>
529
+
530
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
531
+
532
+ <td class="date">2012-01-23 02:28:15</td>
533
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
534
+ <td class="lines">38</td>
535
+ <td><pre class="code"> <span class='rubyid_Stores constant id'>Stores</span><span class='colon2 op'>::</span><span class='rubyid_Redis constant id'>Redis</span><span class='colon2 op'>::</span><span class='rubyid_KeyValue constant id'>KeyValue</span> <span class='comment val'>#.create(type)</span></pre></td>
536
+ </tr>
537
+
538
+
539
+ <tr>
540
+
541
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
542
+
543
+ <td class="date">2012-01-23 02:28:15</td>
544
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
545
+ <td class="lines">39</td>
546
+ <td><pre class="code"> <span class='rubyid_when when kw'>when</span> <span class='symbol val'>:pub_sub</span></pre></td>
547
+ </tr>
548
+
549
+
550
+ <tr>
551
+
552
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
553
+
554
+ <td class="date">2012-01-23 02:28:15</td>
555
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
556
+ <td class="lines">40</td>
557
+ <td><pre class="code"> <span class='rubyid_Stores constant id'>Stores</span><span class='colon2 op'>::</span><span class='rubyid_Redis constant id'>Redis</span><span class='colon2 op'>::</span><span class='rubyid_PubSub constant id'>PubSub</span> <span class='comment val'>#.create(type)</span></pre></td>
558
+ </tr>
559
+
560
+
561
+ <tr>
562
+
563
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
564
+
565
+ <td class="date">2012-01-23 02:28:15</td>
566
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
567
+ <td class="lines">41</td>
568
+ <td><pre class="code"> <span class='rubyid_else else kw'>else</span></pre></td>
569
+ </tr>
570
+
571
+
572
+ <tr>
573
+
574
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
575
+
576
+ <td class="date">2012-01-23 02:28:15</td>
577
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
578
+ <td class="lines">42</td>
579
+ <td><pre class="code"> <span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_ArgumentError constant id'>ArgumentError</span><span class='comma token'>,</span> <span class='string val'>&quot;Backend type unknown. Use :key_value or :pub_sub&quot;</span></pre></td>
580
+ </tr>
581
+
582
+
583
+ <tr>
584
+
585
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
586
+
587
+ <td class="date">2012-01-23 02:28:15</td>
588
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
589
+ <td class="lines">43</td>
590
+ <td><pre class="code"> <span class='rubyid_end end kw'>end</span></pre></td>
591
+ </tr>
592
+
593
+
594
+ <tr>
595
+
596
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
597
+
598
+ <td class="date">2012-01-23 02:28:15</td>
599
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
600
+ <td class="lines">44</td>
601
+ <td><pre class="code"> <span class='rubyid_@@instances ivar id'>@@instances</span> <span class='lshft op'>&lt;&lt;</span> <span class='rubyid_node identifier id'>node</span></pre></td>
602
+ </tr>
603
+
604
+
605
+ <tr>
606
+
607
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
608
+
609
+ <td class="date">2012-01-23 02:28:15</td>
610
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
611
+ <td class="lines">45</td>
612
+ <td><pre class="code"><span class='rubyid_end end kw'>end</span></pre></td>
613
+ </tr>
614
+
615
+ </table>
616
+ </td>
617
+ <td>
618
+ </tr>
619
+ </table>
620
+ </div>
149
621
 
150
622
  </div>
151
623
  <div id="method_missing_details" class="method_details_list">
@@ -160,12 +632,335 @@
160
632
  </div>
161
633
 
162
634
 
635
+ <div id="class_method_details" class="method_details_list">
636
+ <h2>Class Method Details</h2>
637
+
638
+
639
+ <div class="method_details first">
640
+ <p class="signature first" id="redis-class_method">
641
+
642
+ + (<tt>Object</tt>) <strong>redis</strong>
643
+
644
+
645
+
646
+ </p><div class="docstring">
647
+ <div class="discussion">
648
+ <p>
649
+ Current redis client
650
+ </p>
651
+
652
+
653
+ </div>
654
+ </div>
655
+ <div class="tags">
656
+
657
+ <h3>Returns:</h3>
658
+ <ul class="return">
659
+
660
+ <li>
661
+
662
+
663
+ <span class='type'>(<tt>Object</tt>)</span>
664
+
665
+
666
+
667
+ &mdash;
668
+ <div class='inline'><p>
669
+ current redis client
670
+ </p>
671
+ </div>
672
+
673
+ </li>
674
+
675
+ </ul>
676
+
677
+ </div><table class="source_code blame">
678
+ <caption><span class="info file"># File 'lib/io_shuten/redis.rb', line 52</span></caption>
679
+ <tr>
680
+ <td>
681
+ <table>
682
+
683
+
684
+
685
+ <tr>
686
+
687
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
688
+
689
+ <td class="date">2012-01-23 02:28:15</td>
690
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
691
+ <td class="lines">52</td>
692
+ <td><pre class="code"><span class='rubyid_def def kw'>def</span> <span class='rubyid_redis identifier id'>redis</span></pre></td>
693
+ </tr>
694
+
695
+
696
+ <tr>
697
+
698
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
699
+
700
+ <td class="date">2012-01-23 02:28:15</td>
701
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
702
+ <td class="lines">53</td>
703
+ <td><pre class="code"> <span class='rubyid_@@redis ivar id'>@@redis</span></pre></td>
704
+ </tr>
705
+
706
+
707
+ <tr>
708
+
709
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
710
+
711
+ <td class="date">2012-01-23 02:28:15</td>
712
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
713
+ <td class="lines">54</td>
714
+ <td><pre class="code"><span class='rubyid_end end kw'>end</span></pre></td>
715
+ </tr>
716
+
717
+ </table>
718
+ </td>
719
+ <td>
720
+ </tr>
721
+ </table>
722
+ </div>
723
+
724
+ <div class="method_details ">
725
+ <p class="signature " id="redis=-class_method">
726
+
727
+ + (<tt>Object</tt>) <strong>redis=</strong>(new_redis)
728
+
729
+
730
+
731
+ </p><div class="docstring">
732
+ <div class="discussion">
733
+ <p>
734
+ Sets a new global redis client for the pool
735
+ </p>
736
+
737
+
738
+ </div>
739
+ </div>
740
+ <div class="tags">
741
+
742
+ <h3>Returns:</h3>
743
+ <ul class="return">
744
+
745
+ <li>
746
+
747
+
748
+ <span class='type'>(<tt>Object</tt>)</span>
749
+
750
+
751
+
752
+ &mdash;
753
+ <div class='inline'><p>
754
+ new redis client
755
+ </p>
756
+ </div>
757
+
758
+ </li>
759
+
760
+ </ul>
761
+
762
+ </div><table class="source_code blame">
763
+ <caption><span class="info file"># File 'lib/io_shuten/redis.rb', line 58</span></caption>
764
+ <tr>
765
+ <td>
766
+ <table>
767
+
768
+
769
+
770
+ <tr>
771
+
772
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
773
+
774
+ <td class="date">2012-01-23 02:28:15</td>
775
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
776
+ <td class="lines">58</td>
777
+ <td><pre class="code"><span class='rubyid_def def kw'>def</span> <span class='rubyid_redis= identifier id'>redis=</span> <span class='rubyid_new_redis identifier id'>new_redis</span></pre></td>
778
+ </tr>
779
+
780
+
781
+ <tr>
782
+
783
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
784
+
785
+ <td class="date">2012-01-23 02:28:15</td>
786
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
787
+ <td class="lines">59</td>
788
+ <td><pre class="code"> <span class='rubyid_@redis ivar id'>@redis</span> <span class='assign token'>=</span> <span class='rubyid_new_redis identifier id'>new_redis</span></pre></td>
789
+ </tr>
790
+
791
+
792
+ <tr>
793
+
794
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
795
+
796
+ <td class="date">2012-01-23 02:28:15</td>
797
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
798
+ <td class="lines">60</td>
799
+ <td><pre class="code"><span class='rubyid_end end kw'>end</span></pre></td>
800
+ </tr>
801
+
802
+ </table>
803
+ </td>
804
+ <td>
805
+ </tr>
806
+ </table>
807
+ </div>
808
+
809
+ </div>
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">
817
+
818
+ - (<tt>Object</tt>) <strong>close</strong>
819
+
820
+
821
+
822
+ </p><table class="source_code blame">
823
+ <caption><span class="info file"># File 'lib/io_shuten/redis.rb', line 71</span></caption>
824
+ <tr>
825
+ <td>
826
+ <table>
827
+
828
+
829
+
830
+ <tr>
831
+
832
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
833
+
834
+ <td class="date">2012-01-23 02:28:15</td>
835
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
836
+ <td class="lines">71</td>
837
+ <td><pre class="code"><span class='rubyid_def def kw'>def</span> <span class='rubyid_close identifier id'>close</span></pre></td>
838
+ </tr>
839
+
840
+
841
+ <tr>
842
+
843
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
844
+
845
+ <td class="date">2012-01-23 02:28:15</td>
846
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
847
+ <td class="lines">72</td>
848
+ <td><pre class="code"><span class='rubyid_end end kw'>end</span></pre></td>
849
+ </tr>
850
+
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
+
885
+ <tr>
886
+
887
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
888
+
889
+ <td class="date">2012-01-23 02:28:15</td>
890
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
891
+ <td class="lines">65</td>
892
+ <td><pre class="code"><span class='rubyid_def def kw'>def</span> <span class='rubyid_read identifier id'>read</span></pre></td>
893
+ </tr>
894
+
895
+
896
+ <tr>
897
+
898
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
899
+
900
+ <td class="date">2012-01-23 02:28:15</td>
901
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
902
+ <td class="lines">66</td>
903
+ <td><pre class="code"><span class='rubyid_end end kw'>end</span></pre></td>
904
+ </tr>
905
+
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
+
928
+ <tr>
929
+
930
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
931
+
932
+ <td class="date">2012-01-23 02:28:15</td>
933
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
934
+ <td class="lines">68</td>
935
+ <td><pre class="code"><span class='rubyid_def def kw'>def</span> <span class='rubyid_write identifier id'>write</span></pre></td>
936
+ </tr>
937
+
938
+
939
+ <tr>
940
+
941
+ <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
942
+
943
+ <td class="date">2012-01-23 02:28:15</td>
944
+ <td class="commit"><a title="Update class/module structure">56e9fc17</a><td>
945
+ <td class="lines">69</td>
946
+ <td><pre class="code"><span class='rubyid_end end kw'>end</span></pre></td>
947
+ </tr>
948
+
949
+ </table>
950
+ </td>
951
+ <td>
952
+ </tr>
953
+ </table>
954
+ </div>
955
+
956
+ </div>
957
+
163
958
  </div>
164
959
 
165
960
  <div id="footer">
166
- Generated on Mon Jan 23 01:15:28 2012 by
961
+ Generated on Thu Jan 26 00:45:40 2012 by
167
962
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
168
- 0.7.4 (ruby-1.9.3).
963
+ 0.7.4 (ruby-1.8.7).
169
964
  </div>
170
965
 
171
966
  </body>