io_shuten 0.1.0.dev7 → 0.1.1.dev1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. data/Gemfile +8 -14
  2. data/Gemfile.lock +42 -58
  3. data/README.md +148 -24
  4. data/Rakefile +0 -29
  5. data/benchmark/viiite-template-redis.rb +75 -0
  6. data/benchmark/viiite-template.rb +24 -31
  7. data/benchmarks.sh +7 -46
  8. data/benchmarks/redis.kvc.rb +8 -0
  9. data/benchmarks/redis.kvs.rb +8 -0
  10. data/io_shuten.gemspec +30 -92
  11. data/lib/io_shuten/redis.rb +1 -1
  12. data/lib/io_shuten/stores/redis/key_value/collection.rb +15 -3
  13. data/lib/io_shuten/version.rb +1 -1
  14. data/spec/lib/redis_spec.rb +5 -5
  15. data/spec/spec_helper.rb +1 -3
  16. metadata +109 -131
  17. data/.rvmrc +0 -71
  18. data/.simplecov +0 -16
  19. data/.yardopts +0 -3
  20. data/doc/IO_3A_3ABuffer.html +0 -198
  21. data/doc/IO_shuten.html +0 -126
  22. data/doc/IO_shuten/Base.html +0 -1062
  23. data/doc/IO_shuten/Base/FileAccessError.html +0 -129
  24. data/doc/IO_shuten/Base/FileNotFoundError.html +0 -129
  25. data/doc/IO_shuten/Base/NodeNameError.html +0 -129
  26. data/doc/IO_shuten/Base/NodeNotFoundError.html +0 -129
  27. data/doc/IO_shuten/Base/NotYetImplemented.html +0 -129
  28. data/doc/IO_shuten/Buffer.html +0 -1822
  29. data/doc/IO_shuten/Errors.html +0 -119
  30. data/doc/IO_shuten/Errors/FileAccessError.html +0 -129
  31. data/doc/IO_shuten/Errors/FileNotFoundError.html +0 -129
  32. data/doc/IO_shuten/Errors/NodeExistsError.html +0 -129
  33. data/doc/IO_shuten/Errors/NodeNameError.html +0 -129
  34. data/doc/IO_shuten/Errors/NodeNameExistsError.html +0 -129
  35. data/doc/IO_shuten/Errors/NodeNotFoundError.html +0 -129
  36. data/doc/IO_shuten/Errors/NotYetImplemented.html +0 -129
  37. data/doc/IO_shuten/Memory.html +0 -1778
  38. data/doc/IO_shuten/Mongo.html +0 -166
  39. data/doc/IO_shuten/Redis.html +0 -868
  40. data/doc/IO_shuten/Stores.html +0 -121
  41. data/doc/IO_shuten/Stores/BaseContainer.html +0 -377
  42. data/doc/IO_shuten/Stores/Mongo.html +0 -121
  43. data/doc/IO_shuten/Stores/Mongo/Collection.html +0 -109
  44. data/doc/IO_shuten/Stores/Mongo/GridFS.html +0 -109
  45. data/doc/IO_shuten/Stores/Redis.html +0 -123
  46. data/doc/IO_shuten/Stores/Redis/Container.html +0 -778
  47. data/doc/IO_shuten/Stores/Redis/KeyValue.html +0 -279
  48. data/doc/IO_shuten/Stores/Redis/KeyValue/Collection.html +0 -504
  49. data/doc/IO_shuten/Stores/Redis/KeyValue/Single.html +0 -438
  50. data/doc/IO_shuten/Stores/Redis/PubSub.html +0 -245
  51. data/doc/IO_shuten/Zmq.html +0 -166
  52. data/doc/_index.html +0 -375
  53. data/doc/class_list.html +0 -47
  54. data/doc/css/blame.css +0 -11
  55. data/doc/css/common.css +0 -1
  56. data/doc/css/full_list.css +0 -55
  57. data/doc/css/style.css +0 -322
  58. data/doc/file.README.html +0 -158
  59. data/doc/file_list.html +0 -49
  60. data/doc/frames.html +0 -13
  61. data/doc/index.html +0 -158
  62. data/doc/js/app.js +0 -205
  63. data/doc/js/full_list.js +0 -167
  64. data/doc/js/jquery.js +0 -16
  65. data/doc/method_list.html +0 -390
  66. data/doc/top-level-namespace.html +0 -105
@@ -1,121 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Module: IO_shuten::Stores
8
-
9
- &mdash; IO::shuten 【五百::終点】
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
-
17
- <link rel="stylesheet" href="../css/blame.css" type="text/css" media="screen" charset="utf-8" />
18
-
19
- <script type="text/javascript" charset="utf-8">
20
- relpath = '..';
21
- if (relpath != '') relpath += '/';
22
- </script>
23
-
24
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <script type="text/javascript" charset="utf-8">
32
- if (window.top.frames.main) document.body.className = 'frames';
33
- </script>
34
-
35
- <div id="header">
36
- <div id="menu">
37
-
38
- <a href="../_index.html">Index (S)</a> &raquo;
39
- <span class='title'><span class='object_link'><a href="../IO_shuten.html" title="IO_shuten (module)">IO_shuten</a></span></span>
40
- &raquo;
41
- <span class="title">Stores</span>
42
-
43
-
44
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
45
- </div>
46
-
47
- <div id="search">
48
-
49
- <a id="class_list_link" href="#">Class List</a>
50
-
51
- <a id="method_list_link" href="#">Method List</a>
52
-
53
- <a id="file_list_link" href="#">File List</a>
54
-
55
- </div>
56
- <div class="clear"></div>
57
- </div>
58
-
59
- <iframe id="search_frame"></iframe>
60
-
61
- <div id="content"><h1>Module: IO_shuten::Stores
62
-
63
-
64
-
65
- </h1>
66
-
67
- <dl class="box">
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
- <dt class="r1 last">Defined in:</dt>
77
- <dd class="r1 last">lib/io_shuten/stores.rb<span class="defines">,<br />
78
- lib/io_shuten/stores/redis.rb,<br /> lib/io_shuten/stores/mongo.rb,<br /> lib/io_shuten/stores/base_container.rb</span>
79
- </dd>
80
-
81
- </dl>
82
- <div class="clear"></div>
83
-
84
- <h2>Overview</h2><div class="docstring">
85
- <div class="discussion">
86
-
87
- <p>Namespace for the storage implementations</p>
88
-
89
-
90
- </div>
91
- </div>
92
- <div class="tags">
93
-
94
-
95
- </div><h2>Defined Under Namespace</h2>
96
- <p class="children">
97
-
98
-
99
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="Stores/BaseContainer.html" title="IO_shuten::Stores::BaseContainer (module)">BaseContainer</a></span>, <span class='object_link'><a href="Stores/Mongo.html" title="IO_shuten::Stores::Mongo (module)">Mongo</a></span>, <span class='object_link'><a href="Stores/Redis.html" title="IO_shuten::Stores::Redis (module)">Redis</a></span>
100
-
101
-
102
-
103
-
104
- </p>
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
- </div>
113
-
114
- <div id="footer">
115
- Generated on Mon Jan 30 01:52:36 2012 by
116
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
117
- 0.7.4 (ruby-1.9.3).
118
- </div>
119
-
120
- </body>
121
- </html>
@@ -1,377 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Module: IO_shuten::Stores::BaseContainer
8
-
9
- &mdash; IO::shuten 【五百::終点】
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
-
17
- <link rel="stylesheet" href="../../css/blame.css" type="text/css" media="screen" charset="utf-8" />
18
-
19
- <script type="text/javascript" charset="utf-8">
20
- relpath = '../..';
21
- if (relpath != '') relpath += '/';
22
- </script>
23
-
24
- <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <script type="text/javascript" charset="utf-8">
32
- if (window.top.frames.main) document.body.className = 'frames';
33
- </script>
34
-
35
- <div id="header">
36
- <div id="menu">
37
-
38
- <a href="../../_index.html">Index (B)</a> &raquo;
39
- <span class='title'><span class='object_link'><a href="../../IO_shuten.html" title="IO_shuten (module)">IO_shuten</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Stores.html" title="IO_shuten::Stores (module)">Stores</a></span></span>
40
- &raquo;
41
- <span class="title">BaseContainer</span>
42
-
43
-
44
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
45
- </div>
46
-
47
- <div id="search">
48
-
49
- <a id="class_list_link" href="#">Class List</a>
50
-
51
- <a id="method_list_link" href="#">Method List</a>
52
-
53
- <a id="file_list_link" href="#">File List</a>
54
-
55
- </div>
56
- <div class="clear"></div>
57
- </div>
58
-
59
- <iframe id="search_frame"></iframe>
60
-
61
- <div id="content"><h1>Module: IO_shuten::Stores::BaseContainer
62
-
63
-
64
-
65
- </h1>
66
-
67
- <dl class="box">
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
- <dt class="r1">Included in:</dt>
76
- <dd class="r1"><span class='object_link'><a href="Redis/Container.html" title="IO_shuten::Stores::Redis::Container (class)">Redis::Container</a></span></dd>
77
-
78
-
79
-
80
- <dt class="r2 last">Defined in:</dt>
81
- <dd class="r2 last">lib/io_shuten/stores/base_container.rb</dd>
82
-
83
- </dl>
84
- <div class="clear"></div>
85
-
86
- <h2>Overview</h2><div class="docstring">
87
- <div class="discussion">
88
-
89
- <p>Namespace for mongodb backends</p>
90
-
91
-
92
- </div>
93
- </div>
94
- <div class="tags">
95
-
96
-
97
- </div>
98
-
99
-
100
-
101
-
102
-
103
- <h2>
104
- Instance Method Summary
105
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
106
- </h2>
107
-
108
- <ul class="summary">
109
-
110
- <li class="public ">
111
- <span class="summary_signature">
112
-
113
- <a href="#close-instance_method" title="#close (instance method)">- (Object) <strong>close</strong> </a>
114
-
115
-
116
-
117
- </span>
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
- <span class="summary_desc"><div class='inline'></div></span>
127
-
128
- </li>
129
-
130
-
131
- <li class="public ">
132
- <span class="summary_signature">
133
-
134
- <a href="#read-instance_method" title="#read (instance method)">- (Object) <strong>read</strong> </a>
135
-
136
-
137
-
138
- </span>
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
- <span class="summary_desc"><div class='inline'></div></span>
148
-
149
- </li>
150
-
151
-
152
- <li class="public ">
153
- <span class="summary_signature">
154
-
155
- <a href="#write-instance_method" title="#write (instance method)">- (Object) <strong>write</strong>(data) </a>
156
-
157
-
158
-
159
- </span>
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
- <span class="summary_desc"><div class='inline'></div></span>
169
-
170
- </li>
171
-
172
-
173
- </ul>
174
-
175
-
176
-
177
-
178
- <div id="instance_method_details" class="method_details_list">
179
- <h2>Instance Method Details</h2>
180
-
181
-
182
- <div class="method_details first">
183
- <p class="signature first" id="close-instance_method">
184
-
185
- - (<tt>Object</tt>) <strong>close</strong>
186
-
187
-
188
-
189
- </p><table class="source_code blame">
190
- <caption><span class="info file"># File 'lib/io_shuten/stores/base_container.rb', line 14</span></caption>
191
- <tr>
192
- <td>
193
- <table>
194
-
195
-
196
-
197
- <tr>
198
-
199
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
200
-
201
- <td class="date">2012-01-30 01:31:05</td>
202
- <td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
203
- <td class="lines">14</td>
204
- <td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_close'>close</span></pre></td>
205
- </tr>
206
-
207
-
208
- <tr>
209
-
210
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
211
-
212
- <td class="date">2012-01-30 01:31:05</td>
213
- <td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
214
- <td class="lines">15</td>
215
- <td><pre class="code"> <span class='comment'># dummy</pre></td>
216
- </tr>
217
-
218
-
219
- <tr>
220
-
221
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
222
-
223
- <td class="date">2012-01-30 01:31:05</td>
224
- <td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
225
- <td class="lines">16</td>
226
- <td><pre class="code"></span> <span class='comment'># we never close/quit the connection</pre></td>
227
- </tr>
228
-
229
-
230
- <tr>
231
-
232
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
233
-
234
- <td class="date">2012-01-30 01:31:05</td>
235
- <td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
236
- <td class="lines">17</td>
237
- <td><pre class="code"></span> <span class='comment'># because the instance can be a shared one</pre></td>
238
- </tr>
239
-
240
-
241
- <tr>
242
-
243
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
244
-
245
- <td class="date">2012-01-30 01:31:05</td>
246
- <td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
247
- <td class="lines">18</td>
248
- <td><pre class="code"></span><span class='kw'>end</span></pre></td>
249
- </tr>
250
-
251
- </table>
252
- </td>
253
- <td>
254
- </tr>
255
- </table>
256
- </div>
257
-
258
- <div class="method_details ">
259
- <p class="signature " id="read-instance_method">
260
-
261
- - (<tt>Object</tt>) <strong>read</strong>
262
-
263
-
264
-
265
- </p><table class="source_code blame">
266
- <caption><span class="info file"># File 'lib/io_shuten/stores/base_container.rb', line 6</span></caption>
267
- <tr>
268
- <td>
269
- <table>
270
-
271
-
272
-
273
- <tr>
274
-
275
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
276
-
277
- <td class="date">2012-01-30 01:31:05</td>
278
- <td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
279
- <td class="lines">6</td>
280
- <td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_read'>read</span></pre></td>
281
- </tr>
282
-
283
-
284
- <tr>
285
-
286
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
287
-
288
- <td class="date">2012-01-30 01:31:05</td>
289
- <td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
290
- <td class="lines">7</td>
291
- <td><pre class="code"> <span class='comment'># dummy</pre></td>
292
- </tr>
293
-
294
-
295
- <tr>
296
-
297
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
298
-
299
- <td class="date">2012-01-30 01:31:05</td>
300
- <td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
301
- <td class="lines">8</td>
302
- <td><pre class="code"></span><span class='kw'>end</span></pre></td>
303
- </tr>
304
-
305
- </table>
306
- </td>
307
- <td>
308
- </tr>
309
- </table>
310
- </div>
311
-
312
- <div class="method_details ">
313
- <p class="signature " id="write-instance_method">
314
-
315
- - (<tt>Object</tt>) <strong>write</strong>(data)
316
-
317
-
318
-
319
- </p><table class="source_code blame">
320
- <caption><span class="info file"># File 'lib/io_shuten/stores/base_container.rb', line 10</span></caption>
321
- <tr>
322
- <td>
323
- <table>
324
-
325
-
326
-
327
- <tr>
328
-
329
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
330
-
331
- <td class="date">2012-01-30 01:31:05</td>
332
- <td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
333
- <td class="lines">10</td>
334
- <td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_write'>write</span> <span class='id identifier rubyid_data'>data</span></pre></td>
335
- </tr>
336
-
337
-
338
- <tr>
339
-
340
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
341
-
342
- <td class="date">2012-01-30 01:31:05</td>
343
- <td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
344
- <td class="lines">11</td>
345
- <td><pre class="code"> <span class='comment'># dummy</pre></td>
346
- </tr>
347
-
348
-
349
- <tr>
350
-
351
- <td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
352
-
353
- <td class="date">2012-01-30 01:31:05</td>
354
- <td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
355
- <td class="lines">12</td>
356
- <td><pre class="code"></span><span class='kw'>end</span></pre></td>
357
- </tr>
358
-
359
- </table>
360
- </td>
361
- <td>
362
- </tr>
363
- </table>
364
- </div>
365
-
366
- </div>
367
-
368
- </div>
369
-
370
- <div id="footer">
371
- Generated on Mon Jan 30 01:52:36 2012 by
372
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
373
- 0.7.4 (ruby-1.9.3).
374
- </div>
375
-
376
- </body>
377
- </html>