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,438 @@
|
|
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::Redis::KeyValue::Single
|
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 (S)</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> » <span class='title'><span class='object_link'><a href="../../Redis.html" title="IO_shuten::Stores::Redis (module)">Redis</a></span></span> » <span class='title'><span class='object_link'><a href="../KeyValue.html" title="IO_shuten::Stores::Redis::KeyValue (module)">KeyValue</a></span></span>
|
40
|
+
»
|
41
|
+
<span class="title">Single</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::Redis::KeyValue::Single
|
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/redis/key_value/single.rb</dd>
|
78
|
+
|
79
|
+
</dl>
|
80
|
+
<div class="clear"></div>
|
81
|
+
|
82
|
+
<h2>Overview</h2><div class="docstring">
|
83
|
+
<div class="discussion">
|
84
|
+
|
85
|
+
<p>Redis Backend type for storing data into a single key (content =>
|
86
|
+
array/hash)</p>
|
87
|
+
|
88
|
+
|
89
|
+
</div>
|
90
|
+
</div>
|
91
|
+
<div class="tags">
|
92
|
+
|
93
|
+
|
94
|
+
</div>
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<h2>
|
101
|
+
Instance Method Summary
|
102
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
103
|
+
</h2>
|
104
|
+
|
105
|
+
<ul class="summary">
|
106
|
+
|
107
|
+
<li class="public ">
|
108
|
+
<span class="summary_signature">
|
109
|
+
|
110
|
+
<a href="#clear%21-instance_method" title="#clear! (instance method)">- (Object) <strong>clear!</strong> </a>
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
</span>
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
124
|
+
|
125
|
+
</li>
|
126
|
+
|
127
|
+
|
128
|
+
<li class="public ">
|
129
|
+
<span class="summary_signature">
|
130
|
+
|
131
|
+
<a href="#read-instance_method" title="#read (instance method)">- (Object) <strong>read</strong> </a>
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
</span>
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
145
|
+
|
146
|
+
</li>
|
147
|
+
|
148
|
+
|
149
|
+
<li class="public ">
|
150
|
+
<span class="summary_signature">
|
151
|
+
|
152
|
+
<a href="#read_raw-instance_method" title="#read_raw (instance method)">- (Object) <strong>read_raw</strong> </a>
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
</span>
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
166
|
+
|
167
|
+
</li>
|
168
|
+
|
169
|
+
|
170
|
+
<li class="public ">
|
171
|
+
<span class="summary_signature">
|
172
|
+
|
173
|
+
<a href="#write-instance_method" title="#write (instance method)">- (Object) <strong>write</strong>(data) </a>
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
</span>
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
187
|
+
|
188
|
+
</li>
|
189
|
+
|
190
|
+
|
191
|
+
</ul>
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
<div id="instance_method_details" class="method_details_list">
|
197
|
+
<h2>Instance Method Details</h2>
|
198
|
+
|
199
|
+
|
200
|
+
<div class="method_details first">
|
201
|
+
<p class="signature first" id="clear!-instance_method">
|
202
|
+
|
203
|
+
- (<tt>Object</tt>) <strong>clear!</strong>
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
</p><table class="source_code blame">
|
208
|
+
<caption><span class="info file"># File 'lib/io_shuten/stores/redis/key_value/single.rb', line 20</span></caption>
|
209
|
+
<tr>
|
210
|
+
<td>
|
211
|
+
<table>
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
<tr>
|
216
|
+
|
217
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
218
|
+
|
219
|
+
<td class="date">2012-01-30 01:31:05</td>
|
220
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
221
|
+
<td class="lines">20</td>
|
222
|
+
<td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_clear!'>clear!</span></pre></td>
|
223
|
+
</tr>
|
224
|
+
|
225
|
+
|
226
|
+
<tr>
|
227
|
+
|
228
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
229
|
+
|
230
|
+
<td class="date">2012-01-30 01:31:05</td>
|
231
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
232
|
+
<td class="lines">21</td>
|
233
|
+
<td><pre class="code"> <span class='ivar'>@redis</span><span class='period'>.</span><span class='id identifier rubyid_del'>del</span> <span class='ivar'>@node_name</span></pre></td>
|
234
|
+
</tr>
|
235
|
+
|
236
|
+
|
237
|
+
<tr>
|
238
|
+
|
239
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
240
|
+
|
241
|
+
<td class="date">2012-01-30 01:31:05</td>
|
242
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
243
|
+
<td class="lines">22</td>
|
244
|
+
<td><pre class="code"><span class='kw'>end</span></pre></td>
|
245
|
+
</tr>
|
246
|
+
|
247
|
+
</table>
|
248
|
+
</td>
|
249
|
+
<td>
|
250
|
+
</tr>
|
251
|
+
</table>
|
252
|
+
</div>
|
253
|
+
|
254
|
+
<div class="method_details ">
|
255
|
+
<p class="signature " id="read-instance_method">
|
256
|
+
|
257
|
+
- (<tt>Object</tt>) <strong>read</strong>
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
</p><table class="source_code blame">
|
262
|
+
<caption><span class="info file"># File 'lib/io_shuten/stores/redis/key_value/single.rb', line 7</span></caption>
|
263
|
+
<tr>
|
264
|
+
<td>
|
265
|
+
<table>
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
<tr>
|
270
|
+
|
271
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
272
|
+
|
273
|
+
<td class="date">2012-01-30 01:31:05</td>
|
274
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
275
|
+
<td class="lines">7</td>
|
276
|
+
<td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_read'>read</span></pre></td>
|
277
|
+
</tr>
|
278
|
+
|
279
|
+
|
280
|
+
<tr>
|
281
|
+
|
282
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
283
|
+
|
284
|
+
<td class="date">2012-01-30 01:31:05</td>
|
285
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
286
|
+
<td class="lines">8</td>
|
287
|
+
<td><pre class="code"> <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='id identifier rubyid_read_raw'>read_raw</span></pre></td>
|
288
|
+
</tr>
|
289
|
+
|
290
|
+
|
291
|
+
<tr>
|
292
|
+
|
293
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
294
|
+
|
295
|
+
<td class="date">2012-01-30 01:31:05</td>
|
296
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
297
|
+
<td class="lines">9</td>
|
298
|
+
<td><pre class="code"> <span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span></pre></td>
|
299
|
+
</tr>
|
300
|
+
|
301
|
+
|
302
|
+
<tr>
|
303
|
+
|
304
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
305
|
+
|
306
|
+
<td class="date">2012-01-30 01:31:05</td>
|
307
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
308
|
+
<td class="lines">10</td>
|
309
|
+
<td><pre class="code"><span class='kw'>end</span></pre></td>
|
310
|
+
</tr>
|
311
|
+
|
312
|
+
</table>
|
313
|
+
</td>
|
314
|
+
<td>
|
315
|
+
</tr>
|
316
|
+
</table>
|
317
|
+
</div>
|
318
|
+
|
319
|
+
<div class="method_details ">
|
320
|
+
<p class="signature " id="read_raw-instance_method">
|
321
|
+
|
322
|
+
- (<tt>Object</tt>) <strong>read_raw</strong>
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
</p><table class="source_code blame">
|
327
|
+
<caption><span class="info file"># File 'lib/io_shuten/stores/redis/key_value/single.rb', line 12</span></caption>
|
328
|
+
<tr>
|
329
|
+
<td>
|
330
|
+
<table>
|
331
|
+
|
332
|
+
|
333
|
+
|
334
|
+
<tr>
|
335
|
+
|
336
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
337
|
+
|
338
|
+
<td class="date">2012-01-30 01:31:05</td>
|
339
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
340
|
+
<td class="lines">12</td>
|
341
|
+
<td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_read_raw'>read_raw</span></pre></td>
|
342
|
+
</tr>
|
343
|
+
|
344
|
+
|
345
|
+
<tr>
|
346
|
+
|
347
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
348
|
+
|
349
|
+
<td class="date">2012-01-30 01:31:05</td>
|
350
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
351
|
+
<td class="lines">13</td>
|
352
|
+
<td><pre class="code"> <span class='ivar'>@redis</span><span class='period'>.</span><span class='id identifier rubyid_lrange'>lrange</span> <span class='ivar'>@node_name</span><span class='comma'>,</span> <span class='int'>0</span><span class='comma'>,</span> <span class='op'>-</span><span class='int'>1</span></pre></td>
|
353
|
+
</tr>
|
354
|
+
|
355
|
+
|
356
|
+
<tr>
|
357
|
+
|
358
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
359
|
+
|
360
|
+
<td class="date">2012-01-30 01:31:05</td>
|
361
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
362
|
+
<td class="lines">14</td>
|
363
|
+
<td><pre class="code"><span class='kw'>end</span></pre></td>
|
364
|
+
</tr>
|
365
|
+
|
366
|
+
</table>
|
367
|
+
</td>
|
368
|
+
<td>
|
369
|
+
</tr>
|
370
|
+
</table>
|
371
|
+
</div>
|
372
|
+
|
373
|
+
<div class="method_details ">
|
374
|
+
<p class="signature " id="write-instance_method">
|
375
|
+
|
376
|
+
- (<tt>Object</tt>) <strong>write</strong>(data)
|
377
|
+
|
378
|
+
|
379
|
+
|
380
|
+
</p><table class="source_code blame">
|
381
|
+
<caption><span class="info file"># File 'lib/io_shuten/stores/redis/key_value/single.rb', line 16</span></caption>
|
382
|
+
<tr>
|
383
|
+
<td>
|
384
|
+
<table>
|
385
|
+
|
386
|
+
|
387
|
+
|
388
|
+
<tr>
|
389
|
+
|
390
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
391
|
+
|
392
|
+
<td class="date">2012-01-30 01:31:05</td>
|
393
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
394
|
+
<td class="lines">16</td>
|
395
|
+
<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>
|
396
|
+
</tr>
|
397
|
+
|
398
|
+
|
399
|
+
<tr>
|
400
|
+
|
401
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
402
|
+
|
403
|
+
<td class="date">2012-01-30 01:31:05</td>
|
404
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
405
|
+
<td class="lines">17</td>
|
406
|
+
<td><pre class="code"> <span class='ivar'>@redis</span><span class='period'>.</span><span class='id identifier rubyid_rpush'>rpush</span> <span class='ivar'>@node_name</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span></pre></td>
|
407
|
+
</tr>
|
408
|
+
|
409
|
+
|
410
|
+
<tr>
|
411
|
+
|
412
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
413
|
+
|
414
|
+
<td class="date">2012-01-30 01:31:05</td>
|
415
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
416
|
+
<td class="lines">18</td>
|
417
|
+
<td><pre class="code"><span class='kw'>end</span></pre></td>
|
418
|
+
</tr>
|
419
|
+
|
420
|
+
</table>
|
421
|
+
</td>
|
422
|
+
<td>
|
423
|
+
</tr>
|
424
|
+
</table>
|
425
|
+
</div>
|
426
|
+
|
427
|
+
</div>
|
428
|
+
|
429
|
+
</div>
|
430
|
+
|
431
|
+
<div id="footer">
|
432
|
+
Generated on Mon Jan 30 01:52:37 2012 by
|
433
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
434
|
+
0.7.4 (ruby-1.9.3).
|
435
|
+
</div>
|
436
|
+
|
437
|
+
</body>
|
438
|
+
</html>
|
@@ -74,16 +74,17 @@
|
|
74
74
|
|
75
75
|
|
76
76
|
<dt class="r1 last">Defined in:</dt>
|
77
|
-
<dd class="r1 last">lib/io_shuten/stores/redis/key_value.rb
|
77
|
+
<dd class="r1 last">lib/io_shuten/stores/redis/key_value.rb<span class="defines">,<br />
|
78
|
+
lib/io_shuten/stores/redis/key_value/single.rb,<br /> lib/io_shuten/stores/redis/key_value/collection.rb</span>
|
79
|
+
</dd>
|
78
80
|
|
79
81
|
</dl>
|
80
82
|
<div class="clear"></div>
|
81
83
|
|
82
84
|
<h2>Overview</h2><div class="docstring">
|
83
85
|
<div class="discussion">
|
84
|
-
|
85
|
-
Redis Backend for key-value based storage
|
86
|
-
</p>
|
86
|
+
|
87
|
+
<p>Redis Backend for key-value based storage</p>
|
87
88
|
|
88
89
|
|
89
90
|
</div>
|
@@ -91,19 +92,187 @@ Redis Backend for key-value based storage
|
|
91
92
|
<div class="tags">
|
92
93
|
|
93
94
|
|
94
|
-
</div>
|
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="KeyValue/Collection.html" title="IO_shuten::Stores::Redis::KeyValue::Collection (module)">Collection</a></span>, <span class='object_link'><a href="KeyValue/Single.html" title="IO_shuten::Stores::Redis::KeyValue::Single (module)">Single</a></span>
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
</p>
|
95
105
|
|
96
106
|
|
97
107
|
|
98
108
|
|
99
109
|
|
110
|
+
|
111
|
+
<h2>
|
112
|
+
Instance Method Summary
|
113
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
114
|
+
</h2>
|
115
|
+
|
116
|
+
<ul class="summary">
|
117
|
+
|
118
|
+
<li class="public ">
|
119
|
+
<span class="summary_signature">
|
120
|
+
|
121
|
+
<a href="#use_type-instance_method" title="#use_type (instance method)">- (Object) <strong>use_type</strong>(type) </a>
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
</span>
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
135
|
+
|
136
|
+
</li>
|
137
|
+
|
138
|
+
|
139
|
+
</ul>
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
<div id="instance_method_details" class="method_details_list">
|
145
|
+
<h2>Instance Method Details</h2>
|
146
|
+
|
147
|
+
|
148
|
+
<div class="method_details first">
|
149
|
+
<p class="signature first" id="use_type-instance_method">
|
150
|
+
|
151
|
+
- (<tt>Object</tt>) <strong>use_type</strong>(type)
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
</p><table class="source_code blame">
|
156
|
+
<caption><span class="info file"># File 'lib/io_shuten/stores/redis/key_value.rb', line 7</span></caption>
|
157
|
+
<tr>
|
158
|
+
<td>
|
159
|
+
<table>
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
<tr>
|
164
|
+
|
165
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
166
|
+
|
167
|
+
<td class="date">2012-01-30 01:31:05</td>
|
168
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
169
|
+
<td class="lines">7</td>
|
170
|
+
<td><pre class="code"><span class='kw'>def</span> <span class='id identifier rubyid_use_type'>use_type</span> <span class='id identifier rubyid_type'>type</span></pre></td>
|
171
|
+
</tr>
|
172
|
+
|
173
|
+
|
174
|
+
<tr>
|
175
|
+
|
176
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
177
|
+
|
178
|
+
<td class="date">2012-01-30 01:31:05</td>
|
179
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
180
|
+
<td class="lines">8</td>
|
181
|
+
<td><pre class="code"> <span class='id identifier rubyid_types'>types</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='symbol'>:single</span> <span class='op'>=></span> <span class='const'>KeyValue</span><span class='op'>::</span><span class='const'>Single</span><span class='comma'>,</span> <span class='symbol'>:collection</span> <span class='op'>=></span> <span class='const'>KeyValue</span><span class='op'>::</span><span class='const'>Collection</span><span class='rbrace'>}</span></pre></td>
|
182
|
+
</tr>
|
183
|
+
|
184
|
+
|
185
|
+
<tr>
|
186
|
+
|
187
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
188
|
+
|
189
|
+
<td class="date">2012-01-30 01:31:05</td>
|
190
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
191
|
+
<td class="lines">9</td>
|
192
|
+
<td><pre class="code"> <span class='kw'>if</span> <span class='id identifier rubyid_types'>types</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span></pre></td>
|
193
|
+
</tr>
|
194
|
+
|
195
|
+
|
196
|
+
<tr>
|
197
|
+
|
198
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
199
|
+
|
200
|
+
<td class="date">2012-01-30 01:31:05</td>
|
201
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
202
|
+
<td class="lines">10</td>
|
203
|
+
<td><pre class="code"> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_extend'>extend</span> <span class='id identifier rubyid_types'>types</span><span class='lbracket'>[</span><span class='id identifier rubyid_type'>type</span><span class='rbracket'>]</span></pre></td>
|
204
|
+
</tr>
|
205
|
+
|
206
|
+
|
207
|
+
<tr>
|
208
|
+
|
209
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
210
|
+
|
211
|
+
<td class="date">2012-01-30 01:31:05</td>
|
212
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
213
|
+
<td class="lines">11</td>
|
214
|
+
<td><pre class="code"> <span class='ivar'>@backend_type</span> <span class='op'>=</span> <span class='id identifier rubyid_type'>type</span></pre></td>
|
215
|
+
</tr>
|
216
|
+
|
217
|
+
|
218
|
+
<tr>
|
219
|
+
|
220
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
221
|
+
|
222
|
+
<td class="date">2012-01-30 01:31:05</td>
|
223
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
224
|
+
<td class="lines">12</td>
|
225
|
+
<td><pre class="code"> <span class='kw'>else</span></pre></td>
|
226
|
+
</tr>
|
227
|
+
|
228
|
+
|
229
|
+
<tr>
|
230
|
+
|
231
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
232
|
+
|
233
|
+
<td class="date">2012-01-30 01:31:05</td>
|
234
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
235
|
+
<td class="lines">13</td>
|
236
|
+
<td><pre class="code"> <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Type for backend unknown. Use :single or :collection</span><span class='tstring_end'>"</span></span></pre></td>
|
237
|
+
</tr>
|
238
|
+
|
239
|
+
|
240
|
+
<tr>
|
241
|
+
|
242
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
243
|
+
|
244
|
+
<td class="date">2012-01-30 01:31:05</td>
|
245
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
246
|
+
<td class="lines">14</td>
|
247
|
+
<td><pre class="code"> <span class='kw'>end</span></pre></td>
|
248
|
+
</tr>
|
249
|
+
|
250
|
+
|
251
|
+
<tr>
|
252
|
+
|
253
|
+
<td class="author"><a href="mailto:<chris@dinarrr.com>">Christoph Grabo</a></td>
|
254
|
+
|
255
|
+
<td class="date">2012-01-30 01:31:05</td>
|
256
|
+
<td class="commit"><a title="Add basic redis backends (KeyValue)">3daf4123</a><td>
|
257
|
+
<td class="lines">15</td>
|
258
|
+
<td><pre class="code"><span class='kw'>end</span></pre></td>
|
259
|
+
</tr>
|
260
|
+
|
261
|
+
</table>
|
262
|
+
</td>
|
263
|
+
<td>
|
264
|
+
</tr>
|
265
|
+
</table>
|
266
|
+
</div>
|
267
|
+
|
268
|
+
</div>
|
100
269
|
|
101
270
|
</div>
|
102
271
|
|
103
272
|
<div id="footer">
|
104
|
-
Generated on
|
273
|
+
Generated on Mon Jan 30 01:52:36 2012 by
|
105
274
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
106
|
-
0.7.4 (ruby-1.
|
275
|
+
0.7.4 (ruby-1.9.3).
|
107
276
|
</div>
|
108
277
|
|
109
278
|
</body>
|