roma-client 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +22 -15
- data/Gemfile +2 -0
- data/Gemfile.lock +34 -18
- data/README.md +4 -0
- data/lib/roma/client/client_pool.rb +15 -25
- data/lib/roma/client/client_rttable.rb +1 -2
- data/lib/roma/client/tools/showbalance.rb +0 -1
- data/lib/roma/client/version.rb +1 -1
- data/spec/roma/client/client_pool_spec.rb +133 -173
- data/spec/spec_helper.rb +9 -0
- metadata +3 -79
- data/doc/CHANGELOG_md.html +0 -119
- data/doc/README_md.html +0 -161
- data/doc/Roma.html +0 -95
- data/doc/Roma/Client.html +0 -95
- data/doc/Roma/Client/ClientPool.html +0 -716
- data/doc/Roma/Client/ClientRoutingTable.html +0 -495
- data/doc/Roma/Client/ConPool.html +0 -484
- data/doc/Roma/Client/Plugin.html +0 -95
- data/doc/Roma/Client/Plugin/Alist.html +0 -1276
- data/doc/Roma/Client/Plugin/Map.html +0 -531
- data/doc/Roma/Client/Plugin/MapCount.html +0 -401
- data/doc/Roma/Client/Proxy.html +0 -95
- data/doc/Roma/Client/Proxy/ClientHandler.html +0 -273
- data/doc/Roma/Client/Proxy/Conpool.html +0 -394
- data/doc/Roma/Client/Proxy/Daemon.html +0 -305
- data/doc/Roma/Client/Proxy/RomaHandler.html +0 -217
- data/doc/Roma/Client/RomaClient.html +0 -1339
- data/doc/Roma/Client/Sender.html +0 -482
- data/doc/Roma/Client/Stats.html +0 -162
- data/doc/Roma/Client/VERSION.html +0 -141
- data/doc/Roma/Logging.html +0 -95
- data/doc/Roma/Logging/RLogger.html +0 -786
- data/doc/Roma/Logging/RLogger/ExtLogDev.html +0 -159
- data/doc/Roma/Logging/RLogger/ExtShiftAge.html +0 -95
- data/doc/Roma/Logging/RLogger/ExtTrace.html +0 -109
- data/doc/Roma/Logging/RLogger/Severity.html +0 -139
- data/doc/Roma/Routing.html +0 -95
- data/doc/Roma/Routing/RoutingData.html +0 -912
- data/doc/Roma/Routing/RoutingData/RandomNodeListMaker.html +0 -311
- data/doc/created.rid +0 -20
- data/doc/css/fonts.css +0 -167
- data/doc/css/rdoc.css +0 -590
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +0 -210
- data/doc/js/darkfish.js +0 -161
- data/doc/js/jquery.js +0 -4
- data/doc/js/navigation.js +0 -142
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search.js +0 -109
- data/doc/js/search_index.js +0 -1
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +0 -228
- data/doc/js/searcher.js.gz +0 -0
- data/doc/table_of_contents.html +0 -972
- data/lib/roma/client/routing/routing_data.rb +0 -241
@@ -1,401 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta charset=" UTF-8">
|
6
|
-
|
7
|
-
<title>module Roma::Client::Plugin::MapCount - ROMA documents</title>
|
8
|
-
|
9
|
-
<script type="text/javascript">
|
10
|
-
var rdoc_rel_prefix = "../../../";
|
11
|
-
</script>
|
12
|
-
|
13
|
-
<script src="../../../js/jquery.js"></script>
|
14
|
-
<script src="../../../js/darkfish.js"></script>
|
15
|
-
|
16
|
-
<link href="../../../css/fonts.css" rel="stylesheet">
|
17
|
-
<link href="../../../css/rdoc.css" rel="stylesheet">
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
<body id="top" role="document" class="module">
|
22
|
-
<nav role="navigation">
|
23
|
-
<div id="project-navigation">
|
24
|
-
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
25
|
-
<h2>
|
26
|
-
<a href="../../../index.html" rel="home">Home</a>
|
27
|
-
</h2>
|
28
|
-
|
29
|
-
<div id="table-of-contents-navigation">
|
30
|
-
<a href="../../../table_of_contents.html#pages">Pages</a>
|
31
|
-
<a href="../../../table_of_contents.html#classes">Classes</a>
|
32
|
-
<a href="../../../table_of_contents.html#methods">Methods</a>
|
33
|
-
</div>
|
34
|
-
</div>
|
35
|
-
|
36
|
-
<div id="search-section" role="search" class="project-section initially-hidden">
|
37
|
-
<form action="#" method="get" accept-charset="utf-8">
|
38
|
-
<div id="search-field-wrapper">
|
39
|
-
<input id="search-field" role="combobox" aria-label="Search"
|
40
|
-
aria-autocomplete="list" aria-controls="search-results"
|
41
|
-
type="text" name="search" placeholder="Search" spellcheck="false"
|
42
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
43
|
-
</div>
|
44
|
-
|
45
|
-
<ul id="search-results" aria-label="Search Results"
|
46
|
-
aria-busy="false" aria-expanded="false"
|
47
|
-
aria-atomic="false" class="initially-hidden"></ul>
|
48
|
-
</form>
|
49
|
-
</div>
|
50
|
-
|
51
|
-
</div>
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
<div id="class-metadata">
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
<!-- Method Quickref -->
|
61
|
-
<div id="method-list-section" class="nav-section">
|
62
|
-
<h3>Methods</h3>
|
63
|
-
|
64
|
-
<ul class="link-list" role="directory">
|
65
|
-
|
66
|
-
<li ><a href="#method-i-mapcount_countup">#mapcount_countup</a>
|
67
|
-
|
68
|
-
<li ><a href="#method-i-mapcount_countup_ms">#mapcount_countup_ms</a>
|
69
|
-
|
70
|
-
<li ><a href="#method-i-mapcount_get">#mapcount_get</a>
|
71
|
-
|
72
|
-
<li ><a href="#method-i-mapcount_get_ms">#mapcount_get_ms</a>
|
73
|
-
|
74
|
-
<li ><a href="#method-i-mapcount_update">#mapcount_update</a>
|
75
|
-
|
76
|
-
<li ><a href="#method-i-mapcount_update_ms">#mapcount_update_ms</a>
|
77
|
-
|
78
|
-
</ul>
|
79
|
-
</div>
|
80
|
-
|
81
|
-
</div>
|
82
|
-
</nav>
|
83
|
-
|
84
|
-
<main role="main" aria-labelledby="module-Roma::Client::Plugin::MapCount">
|
85
|
-
<h1 id="module-Roma::Client::Plugin::MapCount" class="module">
|
86
|
-
module Roma::Client::Plugin::MapCount
|
87
|
-
</h1>
|
88
|
-
|
89
|
-
<section class="description">
|
90
|
-
|
91
|
-
<p><a href="MapCount.html">MapCount</a> plugin module for ROMA client</p>
|
92
|
-
|
93
|
-
</section>
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
109
|
-
<header>
|
110
|
-
<h3>Public Instance Methods</h3>
|
111
|
-
</header>
|
112
|
-
|
113
|
-
|
114
|
-
<div id="method-i-mapcount_countup" class="method-detail ">
|
115
|
-
|
116
|
-
<div class="method-heading">
|
117
|
-
<span class="method-name">mapcount_countup</span><span
|
118
|
-
class="method-args">(key, sub_keys, expt = 0)</span>
|
119
|
-
|
120
|
-
<span class="method-click-advice">click to toggle source</span>
|
121
|
-
|
122
|
-
</div>
|
123
|
-
|
124
|
-
|
125
|
-
<div class="method-description">
|
126
|
-
|
127
|
-
<p>countup (for JSON value)</p>
|
128
|
-
<dl class="rdoc-list note-list"><dt>key
|
129
|
-
<dd>
|
130
|
-
<p>key to count up data</p>
|
131
|
-
</dd><dt>sub_keys
|
132
|
-
<dd>
|
133
|
-
<p>sub keys to count up. You can set String 'sk', or Array
|
134
|
-
['sk1','sk2','sk3'], or Hash {'sk1' =>
|
135
|
-
1, 'sk2' => 3} .</p>
|
136
|
-
</dd><dt>expt
|
137
|
-
<dd>
|
138
|
-
<p>expire seconds. This param format is same as <a
|
139
|
-
href="../RomaClient.html#method-i-set">Roma::Client::RomaClient#set</a> .</p>
|
140
|
-
</dd><dt>return
|
141
|
-
<dd>
|
142
|
-
<p>result values. It is Marshal format string.</p>
|
143
|
-
</dd></dl>
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
<div class="method-source-code" id="mapcount_countup-source">
|
149
|
-
<pre><span class="ruby-comment"># File lib/roma/client/plugin/mapcount.rb, line 51</span>
|
150
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">mapcount_countup</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">sub_keys</span>, <span class="ruby-identifier">expt</span> = <span class="ruby-value">0</span>)
|
151
|
-
<span class="ruby-identifier">sub_keys_str</span> = <span class="ruby-identifier">sub_keys_to_req_str</span>(<span class="ruby-identifier">sub_keys</span>)
|
152
|
-
<span class="ruby-identifier">ret</span> = <span class="ruby-identifier">sender</span>(<span class="ruby-value">:value_list_receiver</span>, <span class="ruby-identifier">key</span>, <span class="ruby-keyword">nil</span>,
|
153
|
-
<span class="ruby-string">"mapcount_countup %s %d %d\r\n%s\r\n"</span>,
|
154
|
-
<span class="ruby-identifier">expt</span>.<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">sub_keys_str</span>.<span class="ruby-identifier">length</span>, <span class="ruby-identifier">sub_keys_str</span>)
|
155
|
-
<span class="ruby-identifier">convert_ret_to_result</span>(<span class="ruby-identifier">ret</span>, <span class="ruby-value">:json</span>)
|
156
|
-
<span class="ruby-keyword">end</span></pre>
|
157
|
-
</div>
|
158
|
-
|
159
|
-
</div>
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
</div>
|
165
|
-
|
166
|
-
|
167
|
-
<div id="method-i-mapcount_countup_ms" class="method-detail ">
|
168
|
-
|
169
|
-
<div class="method-heading">
|
170
|
-
<span class="method-name">mapcount_countup_ms</span><span
|
171
|
-
class="method-args">(key, sub_keys, expt = 0)</span>
|
172
|
-
|
173
|
-
<span class="method-click-advice">click to toggle source</span>
|
174
|
-
|
175
|
-
</div>
|
176
|
-
|
177
|
-
|
178
|
-
<div class="method-description">
|
179
|
-
|
180
|
-
<p>countup (for Marshal value)</p>
|
181
|
-
<dl class="rdoc-list note-list"><dt>key
|
182
|
-
<dd>
|
183
|
-
<p>key to count up data</p>
|
184
|
-
</dd><dt>sub_keys
|
185
|
-
<dd>
|
186
|
-
<p>sub keys to count up. You can set String 'sk', or Array
|
187
|
-
['sk1','sk2','sk3'], or Hash {'sk1' =>
|
188
|
-
1, 'sk2' => 3} .</p>
|
189
|
-
</dd><dt>expt
|
190
|
-
<dd>
|
191
|
-
<p>expire seconds. This param format is same as <a
|
192
|
-
href="../RomaClient.html#method-i-set">Roma::Client::RomaClient#set</a> .</p>
|
193
|
-
</dd><dt>return
|
194
|
-
<dd>
|
195
|
-
<p>result values. It is Marshal format string.</p>
|
196
|
-
</dd></dl>
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
<div class="method-source-code" id="mapcount_countup_ms-source">
|
202
|
-
<pre><span class="ruby-comment"># File lib/roma/client/plugin/mapcount.rb, line 68</span>
|
203
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">mapcount_countup_ms</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">sub_keys</span>, <span class="ruby-identifier">expt</span> = <span class="ruby-value">0</span>)
|
204
|
-
<span class="ruby-identifier">sub_keys_str</span> = <span class="ruby-identifier">sub_keys_to_req_str</span>(<span class="ruby-identifier">sub_keys</span>)
|
205
|
-
<span class="ruby-identifier">ret</span> = <span class="ruby-identifier">sender</span>(<span class="ruby-value">:value_list_receiver</span>, <span class="ruby-identifier">key</span>, <span class="ruby-keyword">nil</span>,
|
206
|
-
<span class="ruby-string">"mapcount_countup_ms %s %d %d\r\n%s\r\n"</span>,
|
207
|
-
<span class="ruby-identifier">expt</span>.<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">sub_keys_str</span>.<span class="ruby-identifier">length</span>, <span class="ruby-identifier">sub_keys_str</span>)
|
208
|
-
<span class="ruby-identifier">convert_ret_to_result</span>(<span class="ruby-identifier">ret</span>, <span class="ruby-value">:marshal</span>)
|
209
|
-
<span class="ruby-keyword">end</span></pre>
|
210
|
-
</div>
|
211
|
-
|
212
|
-
</div>
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
</div>
|
218
|
-
|
219
|
-
|
220
|
-
<div id="method-i-mapcount_get" class="method-detail ">
|
221
|
-
|
222
|
-
<div class="method-heading">
|
223
|
-
<span class="method-name">mapcount_get</span><span
|
224
|
-
class="method-args">(key, sub_keys = nil)</span>
|
225
|
-
|
226
|
-
<span class="method-click-advice">click to toggle source</span>
|
227
|
-
|
228
|
-
</div>
|
229
|
-
|
230
|
-
|
231
|
-
<div class="method-description">
|
232
|
-
|
233
|
-
<p>get mapcount (for JSON value)</p>
|
234
|
-
<dl class="rdoc-list note-list"><dt>key
|
235
|
-
<dd>
|
236
|
-
<p>key to get mapcount data</p>
|
237
|
-
</dd><dt>sub_keys
|
238
|
-
<dd>
|
239
|
-
<p>array to get mapcount data subkeys. subkey can't include “,” and “:”</p>
|
240
|
-
</dd><dt>return
|
241
|
-
<dd>
|
242
|
-
<p>result values hash. If data is not set, return empty hash.</p>
|
243
|
-
</dd></dl>
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
<div class="method-source-code" id="mapcount_get-source">
|
249
|
-
<pre><span class="ruby-comment"># File lib/roma/client/plugin/mapcount.rb, line 17</span>
|
250
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">mapcount_get</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">sub_keys</span> = <span class="ruby-keyword">nil</span>)
|
251
|
-
<span class="ruby-identifier">sub_keys_str</span> = <span class="ruby-identifier">sub_keys_to_req_str</span>(<span class="ruby-identifier">sub_keys</span>)
|
252
|
-
|
253
|
-
<span class="ruby-identifier">ret</span> = <span class="ruby-identifier">sender</span>(<span class="ruby-value">:value_list_receiver</span>, <span class="ruby-identifier">key</span>, <span class="ruby-keyword">nil</span>,
|
254
|
-
<span class="ruby-string">"mapcount_get %s 0 %d\r\n%s\r\n"</span>,
|
255
|
-
<span class="ruby-identifier">sub_keys_str</span>.<span class="ruby-identifier">length</span>, <span class="ruby-identifier">sub_keys_str</span>)
|
256
|
-
<span class="ruby-identifier">convert_ret_to_result</span>(<span class="ruby-identifier">ret</span>, <span class="ruby-value">:json</span>)
|
257
|
-
<span class="ruby-keyword">end</span></pre>
|
258
|
-
</div>
|
259
|
-
|
260
|
-
</div>
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
</div>
|
266
|
-
|
267
|
-
|
268
|
-
<div id="method-i-mapcount_get_ms" class="method-detail ">
|
269
|
-
|
270
|
-
<div class="method-heading">
|
271
|
-
<span class="method-name">mapcount_get_ms</span><span
|
272
|
-
class="method-args">(key, sub_keys = nil)</span>
|
273
|
-
|
274
|
-
<span class="method-click-advice">click to toggle source</span>
|
275
|
-
|
276
|
-
</div>
|
277
|
-
|
278
|
-
|
279
|
-
<div class="method-description">
|
280
|
-
|
281
|
-
<p>get mapcount (for Marshal value)</p>
|
282
|
-
<dl class="rdoc-list note-list"><dt>key
|
283
|
-
<dd>
|
284
|
-
<p>key to get mapcount data</p>
|
285
|
-
</dd><dt>sub_keys
|
286
|
-
<dd>
|
287
|
-
<p>array to get mapcount data subkeys. subkey can't include “,” and “:”</p>
|
288
|
-
</dd><dt>return
|
289
|
-
<dd>
|
290
|
-
<p>result values hash. If data is not set, return empty hash.</p>
|
291
|
-
</dd></dl>
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
<div class="method-source-code" id="mapcount_get_ms-source">
|
297
|
-
<pre><span class="ruby-comment"># File lib/roma/client/plugin/mapcount.rb, line 33</span>
|
298
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">mapcount_get_ms</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">sub_keys</span> = <span class="ruby-keyword">nil</span>)
|
299
|
-
<span class="ruby-identifier">sub_keys_str</span> = <span class="ruby-identifier">sub_keys_to_req_str</span>(<span class="ruby-identifier">sub_keys</span>)
|
300
|
-
|
301
|
-
<span class="ruby-identifier">ret</span> = <span class="ruby-identifier">sender</span>(<span class="ruby-value">:value_list_receiver</span>, <span class="ruby-identifier">key</span>, <span class="ruby-keyword">nil</span>,
|
302
|
-
<span class="ruby-string">"mapcount_get_ms %s 0 %d\r\n%s\r\n"</span>,
|
303
|
-
<span class="ruby-identifier">sub_keys_str</span>.<span class="ruby-identifier">length</span>, <span class="ruby-identifier">sub_keys_str</span>)
|
304
|
-
<span class="ruby-identifier">convert_ret_to_result</span>(<span class="ruby-identifier">ret</span>, <span class="ruby-value">:marshal</span>)
|
305
|
-
<span class="ruby-keyword">end</span></pre>
|
306
|
-
</div>
|
307
|
-
|
308
|
-
</div>
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
</div>
|
314
|
-
|
315
|
-
|
316
|
-
<div id="method-i-mapcount_update" class="method-detail ">
|
317
|
-
|
318
|
-
<div class="method-heading">
|
319
|
-
<span class="method-name">mapcount_update</span><span
|
320
|
-
class="method-args">(key, sub_keys = nil, expt = 0)</span>
|
321
|
-
|
322
|
-
<span class="method-click-advice">click to toggle source</span>
|
323
|
-
|
324
|
-
</div>
|
325
|
-
|
326
|
-
|
327
|
-
<div class="method-description">
|
328
|
-
|
329
|
-
<p>update key expire (for JSON value)</p>
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
<div class="method-source-code" id="mapcount_update-source">
|
335
|
-
<pre><span class="ruby-comment"># File lib/roma/client/plugin/mapcount.rb, line 77</span>
|
336
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">mapcount_update</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">sub_keys</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">expt</span> = <span class="ruby-value">0</span>)
|
337
|
-
<span class="ruby-identifier">sub_keys_str</span> = <span class="ruby-identifier">sub_keys_to_req_str</span>(<span class="ruby-identifier">sub_keys</span>)
|
338
|
-
<span class="ruby-identifier">ret</span> = <span class="ruby-identifier">sender</span>(<span class="ruby-value">:value_list_receiver</span>, <span class="ruby-identifier">key</span>, <span class="ruby-keyword">nil</span>,
|
339
|
-
<span class="ruby-string">"mapcount_update %s %d %d\r\n%s\r\n"</span>,
|
340
|
-
<span class="ruby-identifier">expt</span>.<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">sub_keys_str</span>.<span class="ruby-identifier">length</span>, <span class="ruby-identifier">sub_keys_str</span>)
|
341
|
-
<span class="ruby-identifier">convert_ret_to_result</span>(<span class="ruby-identifier">ret</span>, <span class="ruby-value">:json</span>)
|
342
|
-
<span class="ruby-keyword">end</span></pre>
|
343
|
-
</div>
|
344
|
-
|
345
|
-
</div>
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
</div>
|
351
|
-
|
352
|
-
|
353
|
-
<div id="method-i-mapcount_update_ms" class="method-detail ">
|
354
|
-
|
355
|
-
<div class="method-heading">
|
356
|
-
<span class="method-name">mapcount_update_ms</span><span
|
357
|
-
class="method-args">(key, sub_keys = nil, expt = 0)</span>
|
358
|
-
|
359
|
-
<span class="method-click-advice">click to toggle source</span>
|
360
|
-
|
361
|
-
</div>
|
362
|
-
|
363
|
-
|
364
|
-
<div class="method-description">
|
365
|
-
|
366
|
-
<p>update key expire (for Marshal value)</p>
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
<div class="method-source-code" id="mapcount_update_ms-source">
|
372
|
-
<pre><span class="ruby-comment"># File lib/roma/client/plugin/mapcount.rb, line 86</span>
|
373
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">mapcount_update_ms</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">sub_keys</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">expt</span> = <span class="ruby-value">0</span>)
|
374
|
-
<span class="ruby-identifier">sub_keys_str</span> = <span class="ruby-identifier">sub_keys_to_req_str</span>(<span class="ruby-identifier">sub_keys</span>)
|
375
|
-
<span class="ruby-identifier">ret</span> = <span class="ruby-identifier">sender</span>(<span class="ruby-value">:value_list_receiver</span>, <span class="ruby-identifier">key</span>, <span class="ruby-keyword">nil</span>,
|
376
|
-
<span class="ruby-string">"mapcount_update_ms %s %d %d\r\n%s\r\n"</span>,
|
377
|
-
<span class="ruby-identifier">expt</span>.<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">sub_keys_str</span>.<span class="ruby-identifier">length</span>, <span class="ruby-identifier">sub_keys_str</span>)
|
378
|
-
<span class="ruby-identifier">convert_ret_to_result</span>(<span class="ruby-identifier">ret</span>, <span class="ruby-value">:marshal</span>)
|
379
|
-
<span class="ruby-keyword">end</span></pre>
|
380
|
-
</div>
|
381
|
-
|
382
|
-
</div>
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
</div>
|
388
|
-
|
389
|
-
|
390
|
-
</section>
|
391
|
-
|
392
|
-
</section>
|
393
|
-
</main>
|
394
|
-
|
395
|
-
|
396
|
-
<footer id="validator-badges" role="contentinfo">
|
397
|
-
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
398
|
-
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
|
399
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
400
|
-
</footer>
|
401
|
-
|
data/doc/Roma/Client/Proxy.html
DELETED
@@ -1,95 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta charset=" UTF-8">
|
6
|
-
|
7
|
-
<title>module Roma::Client::Proxy - ROMA documents</title>
|
8
|
-
|
9
|
-
<script type="text/javascript">
|
10
|
-
var rdoc_rel_prefix = "../../";
|
11
|
-
</script>
|
12
|
-
|
13
|
-
<script src="../../js/jquery.js"></script>
|
14
|
-
<script src="../../js/darkfish.js"></script>
|
15
|
-
|
16
|
-
<link href="../../css/fonts.css" rel="stylesheet">
|
17
|
-
<link href="../../css/rdoc.css" rel="stylesheet">
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
<body id="top" role="document" class="module">
|
22
|
-
<nav role="navigation">
|
23
|
-
<div id="project-navigation">
|
24
|
-
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
25
|
-
<h2>
|
26
|
-
<a href="../../index.html" rel="home">Home</a>
|
27
|
-
</h2>
|
28
|
-
|
29
|
-
<div id="table-of-contents-navigation">
|
30
|
-
<a href="../../table_of_contents.html#pages">Pages</a>
|
31
|
-
<a href="../../table_of_contents.html#classes">Classes</a>
|
32
|
-
<a href="../../table_of_contents.html#methods">Methods</a>
|
33
|
-
</div>
|
34
|
-
</div>
|
35
|
-
|
36
|
-
<div id="search-section" role="search" class="project-section initially-hidden">
|
37
|
-
<form action="#" method="get" accept-charset="utf-8">
|
38
|
-
<div id="search-field-wrapper">
|
39
|
-
<input id="search-field" role="combobox" aria-label="Search"
|
40
|
-
aria-autocomplete="list" aria-controls="search-results"
|
41
|
-
type="text" name="search" placeholder="Search" spellcheck="false"
|
42
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
43
|
-
</div>
|
44
|
-
|
45
|
-
<ul id="search-results" aria-label="Search Results"
|
46
|
-
aria-busy="false" aria-expanded="false"
|
47
|
-
aria-atomic="false" class="initially-hidden"></ul>
|
48
|
-
</form>
|
49
|
-
</div>
|
50
|
-
|
51
|
-
</div>
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
<div id="class-metadata">
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
</div>
|
62
|
-
</nav>
|
63
|
-
|
64
|
-
<main role="main" aria-labelledby="module-Roma::Client::Proxy">
|
65
|
-
<h1 id="module-Roma::Client::Proxy" class="module">
|
66
|
-
module Roma::Client::Proxy
|
67
|
-
</h1>
|
68
|
-
|
69
|
-
<section class="description">
|
70
|
-
|
71
|
-
</section>
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
</section>
|
87
|
-
</main>
|
88
|
-
|
89
|
-
|
90
|
-
<footer id="validator-badges" role="contentinfo">
|
91
|
-
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
92
|
-
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
|
93
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
94
|
-
</footer>
|
95
|
-
|