roma-client 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{CHANGELOG → CHANGELOG.md} +8 -5
- data/Gemfile.lock +23 -15
- data/README.md +62 -0
- data/Rakefile +3 -3
- data/doc/CHANGELOG_md.html +119 -0
- data/doc/README_md.html +161 -0
- data/doc/Roma/Client/ClientPool.html +716 -0
- data/doc/Roma/Client/ClientRoutingTable.html +495 -0
- data/doc/Roma/Client/ConPool.html +484 -0
- data/doc/Roma/Client/Plugin/Alist.html +1276 -0
- data/doc/Roma/Client/Plugin/Map.html +531 -0
- data/doc/Roma/Client/Plugin/MapCount.html +401 -0
- data/doc/Roma/Client/Plugin.html +95 -0
- data/doc/Roma/Client/Proxy/ClientHandler.html +273 -0
- data/doc/Roma/Client/Proxy/Conpool.html +394 -0
- data/doc/Roma/Client/Proxy/Daemon.html +305 -0
- data/doc/Roma/Client/Proxy/RomaHandler.html +217 -0
- data/doc/Roma/Client/Proxy.html +95 -0
- data/doc/Roma/Client/RomaClient.html +1339 -0
- data/doc/Roma/Client/Sender.html +482 -0
- data/doc/Roma/Client/Stats.html +162 -0
- data/doc/Roma/Client/VERSION.html +141 -0
- data/doc/Roma/Client.html +95 -0
- data/doc/Roma/Logging/RLogger/ExtLogDev.html +159 -0
- data/doc/Roma/Logging/RLogger/ExtShiftAge.html +95 -0
- data/doc/Roma/Logging/RLogger/ExtTrace.html +109 -0
- data/doc/Roma/Logging/RLogger/Severity.html +139 -0
- data/doc/Roma/Logging/RLogger.html +786 -0
- data/doc/Roma/Logging.html +95 -0
- data/doc/Roma/Routing/RoutingData/RandomNodeListMaker.html +311 -0
- data/doc/Roma/Routing/RoutingData.html +912 -0
- data/doc/Roma/Routing.html +95 -0
- data/doc/Roma.html +95 -0
- data/doc/created.rid +20 -0
- data/doc/css/fonts.css +167 -0
- data/doc/css/rdoc.css +590 -0
- 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 +210 -0
- data/doc/js/darkfish.js +161 -0
- data/doc/js/jquery.js +4 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search.js +109 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +228 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/table_of_contents.html +972 -0
- data/lib/roma/client/rclient.rb +2 -1
- data/lib/roma/client/sender.rb +2 -2
- data/lib/roma/client/version.rb +1 -1
- data/lib/roma/client.rb +0 -21
- metadata +84 -10
- data/README +0 -17
@@ -0,0 +1,401 @@
|
|
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
|
+
|
@@ -0,0 +1,95 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset=" UTF-8">
|
6
|
+
|
7
|
+
<title>module Roma::Client::Plugin - 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::Plugin">
|
65
|
+
<h1 id="module-Roma::Client::Plugin" class="module">
|
66
|
+
module Roma::Client::Plugin
|
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
|
+
|