evented-memcache-client 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/CHANGELOG +113 -0
  2. data/COPYING +348 -0
  3. data/README +75 -0
  4. data/Rakefile +123 -0
  5. data/doc/classes/EventMachine.html +146 -0
  6. data/doc/classes/EventMachine/Protocols.html +135 -0
  7. data/doc/classes/EventMachine/Protocols/Memcache.html +153 -0
  8. data/doc/classes/EventMachine/Protocols/Memcache/Client.html +121 -0
  9. data/doc/classes/EventMachine/Protocols/Memcache/Connectable.html +615 -0
  10. data/doc/classes/EventMachine/Protocols/Memcache/Connection.html +192 -0
  11. data/doc/classes/EventMachine/Protocols/Memcache/Sender.html +389 -0
  12. data/doc/classes/EventMachine/Protocols/Memcache/Server.html +463 -0
  13. data/doc/classes/EventMachine/Protocols/Memcache/TenaciousMC.html +277 -0
  14. data/doc/classes/MyHandler.html +197 -0
  15. data/doc/created.rid +1 -0
  16. data/doc/files/COPYING.html +473 -0
  17. data/doc/files/README.html +187 -0
  18. data/doc/files/extras/consumer_rb.html +110 -0
  19. data/doc/files/extras/producer_rb.html +110 -0
  20. data/doc/files/extras/server_rb.html +110 -0
  21. data/doc/files/lib/evented-memcache-client_rb.html +125 -0
  22. data/doc/files/lib/evented_memcache_client/client_rb.html +120 -0
  23. data/doc/files/lib/evented_memcache_client/connectable_rb.html +120 -0
  24. data/doc/files/lib/evented_memcache_client/connection_rb.html +120 -0
  25. data/doc/files/lib/evented_memcache_client/sender_rb.html +112 -0
  26. data/doc/files/lib/evented_memcache_client/server_rb.html +120 -0
  27. data/doc/files/lib/evented_memcache_client/tenacious_rb.html +120 -0
  28. data/doc/fr_class_index.html +36 -0
  29. data/doc/fr_file_index.html +38 -0
  30. data/doc/fr_method_index.html +66 -0
  31. data/doc/index.html +24 -0
  32. data/doc/rdoc-style.css +208 -0
  33. data/extras/consumer.rb +41 -0
  34. data/extras/producer.rb +22 -0
  35. data/extras/server.rb +33 -0
  36. data/lib/evented-memcache-client.rb +37 -0
  37. data/lib/evented_memcache_client/client.rb +36 -0
  38. data/lib/evented_memcache_client/connectable.rb +324 -0
  39. data/lib/evented_memcache_client/connection.rb +73 -0
  40. data/lib/evented_memcache_client/sender.rb +184 -0
  41. data/lib/evented_memcache_client/server.rb +118 -0
  42. data/lib/evented_memcache_client/tenacious.rb +106 -0
  43. metadata +115 -0
@@ -0,0 +1 @@
1
+ Tue, 16 Sep 2008 04:01:53 -0400
@@ -0,0 +1,473 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>File: COPYING</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="fileHeader">
50
+ <h1>COPYING</h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>Path:</strong></td>
54
+ <td>COPYING
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Mon Sep 08 18:27:40 -0400 2008</td>
60
+ </tr>
61
+ </table>
62
+ </div>
63
+ <!-- banner header -->
64
+
65
+ <div id="bodyContent">
66
+
67
+
68
+
69
+ <div id="contextContent">
70
+
71
+ <div id="description">
72
+ <pre>
73
+ Evented Memcache Client
74
+
75
+ Copyright (c) 2008 Colin Steele
76
+
77
+ THE RUBY LICENSE
78
+ (http://www.ruby-lang.org/en/LICENSE.txt)
79
+ </pre>
80
+ <p>
81
+ You may redistribute this software and/or modify it under either the terms
82
+ of the GPL (see below), or the conditions below:
83
+ </p>
84
+ <pre>
85
+ 1. You may make and give away verbatim copies of the source form of the
86
+ software without restriction, provided that you duplicate all of the
87
+ original copyright notices and associated disclaimers.
88
+
89
+ 2. You may modify your copy of the software in any way, provided that
90
+ you do at least ONE of the following:
91
+
92
+ a) place your modifications in the Public Domain or otherwise
93
+ make them Freely Available, such as by posting said
94
+ modifications to Usenet or an equivalent medium, or by allowing
95
+ the author to include your modifications in the software.
96
+
97
+ b) use the modified software only within your corporation or
98
+ organization.
99
+
100
+ c) rename any non-standard executables so the names do not conflict
101
+ with standard executables, which must also be provided.
102
+
103
+ d) make other distribution arrangements with the author.
104
+
105
+ 3. You may distribute the software in object code or executable
106
+ form, provided that you do at least ONE of the following:
107
+
108
+ a) distribute the executables and library files of the software,
109
+ together with instructions (in the manual page or equivalent)
110
+ on where to get the original distribution.
111
+
112
+ b) accompany the distribution with the machine-readable source of
113
+ the software.
114
+
115
+ c) give non-standard executables non-standard names, with
116
+ instructions on where to get the original software distribution.
117
+
118
+ d) make other distribution arrangements with the author.
119
+
120
+ 4. You may modify and include the part of the software into any other
121
+ software (possibly commercial). But some files in the distribution
122
+ are not written by the author, so that they are not under these terms.
123
+
124
+ For the list of those files and their copying conditions, see the
125
+ file LEGAL.
126
+
127
+ 5. The scripts and library files supplied as input to or produced as
128
+ output from the software do not automatically fall under the
129
+ copyright of the software, but belong to whomever generated them,
130
+ and may be sold commercially, and may be aggregated with this
131
+ software.
132
+
133
+ 6. THIS SOFTWARE IS PROVIDED &quot;AS IS&quot; AND WITHOUT ANY EXPRESS OR
134
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
135
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
136
+ PURPOSE.
137
+ </pre>
138
+ <hr size="10"></hr><pre>
139
+ GNU GENERAL PUBLIC LICENSE
140
+ Version 2, June 1991
141
+ </pre>
142
+ <p>
143
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
144
+ </p>
145
+ <pre>
146
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
147
+ </pre>
148
+ <p>
149
+ Everyone is permitted to copy and distribute verbatim copies of this
150
+ license document, but changing it is not allowed.
151
+ </p>
152
+ <pre>
153
+ Preamble
154
+ </pre>
155
+ <p>
156
+ The licenses for most software are designed to take away your freedom to
157
+ share and change it. By contrast, the GNU General Public License is
158
+ intended to guarantee your freedom to share and change free
159
+ software&#8212;to make sure the software is free for all its users. This
160
+ General Public License applies to most of the Free Software
161
+ Foundation&#8216;s software and to any other program whose authors commit
162
+ to using it. (Some other Free Software Foundation software is covered by
163
+ the GNU Library General Public License instead.) You can apply it to your
164
+ programs, too.
165
+ </p>
166
+ <p>
167
+ When we speak of free software, we are referring to freedom, not price. Our
168
+ General Public Licenses are designed to make sure that you have the freedom
169
+ to distribute copies of free software (and charge for this service if you
170
+ wish), that you receive source code or can get it if you want it, that you
171
+ can change the software or use pieces of it in new free programs; and that
172
+ you know you can do these things.
173
+ </p>
174
+ <p>
175
+ To protect your rights, we need to make restrictions that forbid anyone to
176
+ deny you these rights or to ask you to surrender the rights. These
177
+ restrictions translate to certain responsibilities for you if you
178
+ distribute copies of the software, or if you modify it.
179
+ </p>
180
+ <p>
181
+ For example, if you distribute copies of such a program, whether gratis or
182
+ for a fee, you must give the recipients all the rights that you have. You
183
+ must make sure that they, too, receive or can get the source code. And you
184
+ must show them these terms so they know their rights.
185
+ </p>
186
+ <p>
187
+ We protect your rights with two steps: (1) copyright the software, and (2)
188
+ offer you this license which gives you legal permission to copy, distribute
189
+ and/or modify the software.
190
+ </p>
191
+ <p>
192
+ Also, for each author&#8216;s protection and ours, we want to make certain
193
+ that everyone understands that there is no warranty for this free software.
194
+ If the software is modified by someone else and passed on, we want its
195
+ recipients to know that what they have is not the original, so that any
196
+ problems introduced by others will not reflect on the original
197
+ authors&#8217; reputations.
198
+ </p>
199
+ <p>
200
+ Finally, any free program is threatened constantly by software patents. We
201
+ wish to avoid the danger that redistributors of a free program will
202
+ individually obtain patent licenses, in effect making the program
203
+ proprietary. To prevent this, we have made it clear that any patent must be
204
+ licensed for everyone&#8216;s free use or not licensed at all.
205
+ </p>
206
+ <pre>
207
+ The precise terms and conditions for copying, distribution and
208
+ </pre>
209
+ <p>
210
+ modification follow.
211
+ </p>
212
+ <pre>
213
+ GNU GENERAL PUBLIC LICENSE
214
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
215
+
216
+ 0. This License applies to any program or other work which contains
217
+ </pre>
218
+ <p>
219
+ a notice placed by the copyright holder saying it may be distributed under
220
+ the terms of this General Public License. The &quot;Program&quot;, below,
221
+ refers to any such program or work, and a &quot;work based on the
222
+ Program&quot; means either the Program or any derivative work under
223
+ copyright law: that is to say, a work containing the Program or a portion
224
+ of it, either verbatim or with modifications and/or translated into another
225
+ language. (Hereinafter, translation is included without limitation in the
226
+ term &quot;modification&quot;.) Each licensee is addressed as
227
+ &quot;you&quot;.
228
+ </p>
229
+ <p>
230
+ Activities other than copying, distribution and modification are not
231
+ covered by this License; they are outside its scope. The act of running the
232
+ Program is not restricted, and the output from the Program is covered only
233
+ if its contents constitute a work based on the Program (independent of
234
+ having been made by running the Program). Whether that is true depends on
235
+ what the Program does.
236
+ </p>
237
+ <pre>
238
+ 1. You may copy and distribute verbatim copies of the Program's
239
+ source code as you receive it, in any medium, provided that you
240
+ conspicuously and appropriately publish on each copy an appropriate
241
+ copyright notice and disclaimer of warranty; keep intact all the
242
+ notices that refer to this License and to the absence of any warranty;
243
+ and give any other recipients of the Program a copy of this License
244
+ along with the Program.
245
+
246
+ You may charge a fee for the physical act of transferring a copy, and
247
+ you may at your option offer warranty protection in exchange for a fee.
248
+
249
+ 2. You may modify your copy or copies of the Program or any portion
250
+ of it, thus forming a work based on the Program, and copy and
251
+ distribute such modifications or work under the terms of Section 1
252
+ above, provided that you also meet all of these conditions:
253
+
254
+ a) You must cause the modified files to carry prominent notices
255
+ stating that you changed the files and the date of any change.
256
+
257
+ b) You must cause any work that you distribute or publish, that in
258
+ whole or in part contains or is derived from the Program or any
259
+ part thereof, to be licensed as a whole at no charge to all third
260
+ parties under the terms of this License.
261
+
262
+ c) If the modified program normally reads commands interactively
263
+ when run, you must cause it, when started running for such
264
+ interactive use in the most ordinary way, to print or display an
265
+ announcement including an appropriate copyright notice and a
266
+ notice that there is no warranty (or else, saying that you provide
267
+ a warranty) and that users may redistribute the program under
268
+ these conditions, and telling the user how to view a copy of this
269
+ License. (Exception: if the Program itself is interactive but
270
+ does not normally print such an announcement, your work based on
271
+ the Program is not required to print an announcement.)
272
+
273
+ These requirements apply to the modified work as a whole. If
274
+ identifiable sections of that work are not derived from the Program,
275
+ and can be reasonably considered independent and separate works in
276
+ themselves, then this License, and its terms, do not apply to those
277
+ sections when you distribute them as separate works. But when you
278
+ distribute the same sections as part of a whole which is a work based
279
+ on the Program, the distribution of the whole must be on the terms of
280
+ this License, whose permissions for other licensees extend to the
281
+ entire whole, and thus to each and every part regardless of who wrote it.
282
+
283
+ Thus, it is not the intent of this section to claim rights or contest
284
+ your rights to work written entirely by you; rather, the intent is to
285
+ exercise the right to control the distribution of derivative or
286
+ collective works based on the Program.
287
+
288
+ In addition, mere aggregation of another work not based on the Program
289
+ with the Program (or with a work based on the Program) on a volume of
290
+ a storage or distribution medium does not bring the other work under
291
+ the scope of this License.
292
+
293
+ 3. You may copy and distribute the Program (or a work based on it,
294
+ under Section 2) in object code or executable form under the terms of
295
+ Sections 1 and 2 above provided that you also do one of the following:
296
+
297
+ a) Accompany it with the complete corresponding machine-readable
298
+ source code, which must be distributed under the terms of Sections
299
+ 1 and 2 above on a medium customarily used for software interchange; or,
300
+
301
+ b) Accompany it with a written offer, valid for at least three
302
+ years, to give any third party, for a charge no more than your
303
+ cost of physically performing source distribution, a complete
304
+ machine-readable copy of the corresponding source code, to be
305
+ distributed under the terms of Sections 1 and 2 above on a medium
306
+ customarily used for software interchange; or,
307
+
308
+ c) Accompany it with the information you received as to the offer
309
+ to distribute corresponding source code. (This alternative is
310
+ allowed only for noncommercial distribution and only if you
311
+ received the program in object code or executable form with such
312
+ an offer, in accord with Subsection b above.)
313
+
314
+ The source code for a work means the preferred form of the work for
315
+ making modifications to it. For an executable work, complete source
316
+ code means all the source code for all modules it contains, plus any
317
+ associated interface definition files, plus the scripts used to
318
+ control compilation and installation of the executable. However, as a
319
+ special exception, the source code distributed need not include
320
+ anything that is normally distributed (in either source or binary
321
+ form) with the major components (compiler, kernel, and so on) of the
322
+ operating system on which the executable runs, unless that component
323
+ itself accompanies the executable.
324
+
325
+ If distribution of executable or object code is made by offering
326
+ access to copy from a designated place, then offering equivalent
327
+ access to copy the source code from the same place counts as
328
+ distribution of the source code, even though third parties are not
329
+ compelled to copy the source along with the object code.
330
+
331
+ 4. You may not copy, modify, sublicense, or distribute the Program
332
+ except as expressly provided under this License. Any attempt
333
+ otherwise to copy, modify, sublicense or distribute the Program is
334
+ void, and will automatically terminate your rights under this License.
335
+ However, parties who have received copies, or rights, from you under
336
+ this License will not have their licenses terminated so long as such
337
+ parties remain in full compliance.
338
+
339
+ 5. You are not required to accept this License, since you have not
340
+ signed it. However, nothing else grants you permission to modify or
341
+ distribute the Program or its derivative works. These actions are
342
+ prohibited by law if you do not accept this License. Therefore, by
343
+ modifying or distributing the Program (or any work based on the
344
+ Program), you indicate your acceptance of this License to do so, and
345
+ all its terms and conditions for copying, distributing or modifying
346
+ the Program or works based on it.
347
+
348
+ 6. Each time you redistribute the Program (or any work based on the
349
+ Program), the recipient automatically receives a license from the
350
+ original licensor to copy, distribute or modify the Program subject to
351
+ these terms and conditions. You may not impose any further
352
+ restrictions on the recipients' exercise of the rights granted herein.
353
+ You are not responsible for enforcing compliance by third parties to
354
+ this License.
355
+
356
+ 7. If, as a consequence of a court judgment or allegation of patent
357
+ infringement or for any other reason (not limited to patent issues),
358
+ conditions are imposed on you (whether by court order, agreement or
359
+ otherwise) that contradict the conditions of this License, they do not
360
+ excuse you from the conditions of this License. If you cannot
361
+ distribute so as to satisfy simultaneously your obligations under this
362
+ License and any other pertinent obligations, then as a consequence you
363
+ may not distribute the Program at all. For example, if a patent
364
+ license would not permit royalty-free redistribution of the Program by
365
+ all those who receive copies directly or indirectly through you, then
366
+ the only way you could satisfy both it and this License would be to
367
+ refrain entirely from distribution of the Program.
368
+
369
+ If any portion of this section is held invalid or unenforceable under
370
+ any particular circumstance, the balance of the section is intended to
371
+ apply and the section as a whole is intended to apply in other
372
+ circumstances.
373
+
374
+ It is not the purpose of this section to induce you to infringe any
375
+ patents or other property right claims or to contest validity of any
376
+ such claims; this section has the sole purpose of protecting the
377
+ integrity of the free software distribution system, which is
378
+ implemented by public license practices. Many people have made
379
+ generous contributions to the wide range of software distributed
380
+ through that system in reliance on consistent application of that
381
+ system; it is up to the author/donor to decide if he or she is willing
382
+ to distribute software through any other system and a licensee cannot
383
+ impose that choice.
384
+
385
+ This section is intended to make thoroughly clear what is believed to
386
+ be a consequence of the rest of this License.
387
+
388
+ 8. If the distribution and/or use of the Program is restricted in
389
+ certain countries either by patents or by copyrighted interfaces, the
390
+ original copyright holder who places the Program under this License
391
+ may add an explicit geographical distribution limitation excluding
392
+ those countries, so that distribution is permitted only in or among
393
+ countries not thus excluded. In such case, this License incorporates
394
+ the limitation as if written in the body of this License.
395
+
396
+ 9. The Free Software Foundation may publish revised and/or new versions
397
+ of the General Public License from time to time. Such new versions will
398
+ be similar in spirit to the present version, but may differ in detail to
399
+ address new problems or concerns.
400
+
401
+ Each version is given a distinguishing version number. If the Program
402
+ specifies a version number of this License which applies to it and &quot;any
403
+ later version&quot;, you have the option of following the terms and conditions
404
+ either of that version or of any later version published by the Free
405
+ Software Foundation. If the Program does not specify a version number of
406
+ this License, you may choose any version ever published by the Free Software
407
+ Foundation.
408
+
409
+ 10. If you wish to incorporate parts of the Program into other free
410
+ programs whose distribution conditions are different, write to the author
411
+ to ask for permission. For software which is copyrighted by the Free
412
+ Software Foundation, write to the Free Software Foundation; we sometimes
413
+ make exceptions for this. Our decision will be guided by the two goals
414
+ of preserving the free status of all derivatives of our free software and
415
+ of promoting the sharing and reuse of software generally.
416
+
417
+ NO WARRANTY
418
+
419
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
420
+ FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
421
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
422
+ PROVIDE THE PROGRAM &quot;AS IS&quot; WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
423
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
424
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
425
+ TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
426
+ PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
427
+ REPAIR OR CORRECTION.
428
+
429
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
430
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
431
+ REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
432
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
433
+ OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
434
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
435
+ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
436
+ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
437
+ POSSIBILITY OF SUCH DAMAGES.
438
+
439
+ END OF TERMS AND CONDITIONS
440
+ </pre>
441
+
442
+ </div>
443
+
444
+
445
+ </div>
446
+
447
+
448
+ </div>
449
+
450
+
451
+ <!-- if includes -->
452
+
453
+ <div id="section">
454
+
455
+
456
+
457
+
458
+
459
+
460
+
461
+
462
+ <!-- if method_list -->
463
+
464
+
465
+ </div>
466
+
467
+
468
+ <div id="validator-badges">
469
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
470
+ </div>
471
+
472
+ </body>
473
+ </html>