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
@@ -0,0 +1,377 @@
|
|
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
|
+
— 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> »
|
39
|
+
<span class='title'><span class='object_link'><a href="../../IO_shuten.html" title="IO_shuten (module)">IO_shuten</a></span></span> » <span class='title'><span class='object_link'><a href="../Stores.html" title="IO_shuten::Stores (module)">Stores</a></span></span>
|
40
|
+
»
|
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>
|
@@ -81,9 +81,8 @@
|
|
81
81
|
|
82
82
|
<h2>Overview</h2><div class="docstring">
|
83
83
|
<div class="discussion">
|
84
|
-
|
85
|
-
MongoDB Backend for Collection based storage
|
86
|
-
</p>
|
84
|
+
|
85
|
+
<p>MongoDB Backend for Collection based storage</p>
|
87
86
|
|
88
87
|
|
89
88
|
</div>
|
@@ -101,9 +100,9 @@ MongoDB Backend for Collection based storage
|
|
101
100
|
</div>
|
102
101
|
|
103
102
|
<div id="footer">
|
104
|
-
Generated on
|
103
|
+
Generated on Mon Jan 30 01:52:37 2012 by
|
105
104
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
106
|
-
0.7.4 (ruby-1.
|
105
|
+
0.7.4 (ruby-1.9.3).
|
107
106
|
</div>
|
108
107
|
|
109
108
|
</body>
|
@@ -81,9 +81,8 @@
|
|
81
81
|
|
82
82
|
<h2>Overview</h2><div class="docstring">
|
83
83
|
<div class="discussion">
|
84
|
-
|
85
|
-
MongoDB Backend for GridFS based storage
|
86
|
-
</p>
|
84
|
+
|
85
|
+
<p>MongoDB Backend for GridFS based storage</p>
|
87
86
|
|
88
87
|
|
89
88
|
</div>
|
@@ -101,9 +100,9 @@ MongoDB Backend for GridFS based storage
|
|
101
100
|
</div>
|
102
101
|
|
103
102
|
<div id="footer">
|
104
|
-
Generated on
|
103
|
+
Generated on Mon Jan 30 01:52:36 2012 by
|
105
104
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
106
|
-
0.7.4 (ruby-1.
|
105
|
+
0.7.4 (ruby-1.9.3).
|
107
106
|
</div>
|
108
107
|
|
109
108
|
</body>
|
@@ -83,9 +83,8 @@
|
|
83
83
|
|
84
84
|
<h2>Overview</h2><div class="docstring">
|
85
85
|
<div class="discussion">
|
86
|
-
|
87
|
-
Namespace for mongodb backends
|
88
|
-
</p>
|
86
|
+
|
87
|
+
<p>Namespace for mongodb backends</p>
|
89
88
|
|
90
89
|
|
91
90
|
</div>
|
@@ -113,9 +112,9 @@ Namespace for mongodb backends
|
|
113
112
|
</div>
|
114
113
|
|
115
114
|
<div id="footer">
|
116
|
-
Generated on
|
115
|
+
Generated on Mon Jan 30 01:52:36 2012 by
|
117
116
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
118
|
-
0.7.4 (ruby-1.
|
117
|
+
0.7.4 (ruby-1.9.3).
|
119
118
|
</div>
|
120
119
|
|
121
120
|
</body>
|