vinted-memcached 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (210) hide show
  1. checksums.yaml +7 -0
  2. data/BENCHMARKS +142 -0
  3. data/CHANGELOG +176 -0
  4. data/Gemfile +11 -0
  5. data/Gemfile.lock +45 -0
  6. data/LICENSE +184 -0
  7. data/Manifest +209 -0
  8. data/README.rdoc +124 -0
  9. data/Rakefile +134 -0
  10. data/TODO +1 -0
  11. data/ext/extconf-make.rb +25 -0
  12. data/ext/extconf.rb +78 -0
  13. data/ext/libmemcached-0.32/AUTHORS +7 -0
  14. data/ext/libmemcached-0.32/COPYING +32 -0
  15. data/ext/libmemcached-0.32/ChangeLog +303 -0
  16. data/ext/libmemcached-0.32/INSTALL +302 -0
  17. data/ext/libmemcached-0.32/Makefile.am +36 -0
  18. data/ext/libmemcached-0.32/Makefile.in +911 -0
  19. data/ext/libmemcached-0.32/NEWS +1 -0
  20. data/ext/libmemcached-0.32/README +33 -0
  21. data/ext/libmemcached-0.32/THANKS +14 -0
  22. data/ext/libmemcached-0.32/TODO +11 -0
  23. data/ext/libmemcached-0.32/aclocal.m4 +2108 -0
  24. data/ext/libmemcached-0.32/clients/Makefile.am +80 -0
  25. data/ext/libmemcached-0.32/clients/Makefile.in +773 -0
  26. data/ext/libmemcached-0.32/clients/client_options.h +32 -0
  27. data/ext/libmemcached-0.32/clients/execute.c +64 -0
  28. data/ext/libmemcached-0.32/clients/execute.h +5 -0
  29. data/ext/libmemcached-0.32/clients/generator.c +74 -0
  30. data/ext/libmemcached-0.32/clients/generator.h +20 -0
  31. data/ext/libmemcached-0.32/clients/memcat.c +178 -0
  32. data/ext/libmemcached-0.32/clients/memcp.c +251 -0
  33. data/ext/libmemcached-0.32/clients/memdump.c +170 -0
  34. data/ext/libmemcached-0.32/clients/memerror.c +80 -0
  35. data/ext/libmemcached-0.32/clients/memflush.c +143 -0
  36. data/ext/libmemcached-0.32/clients/memrm.c +160 -0
  37. data/ext/libmemcached-0.32/clients/memslap.c +441 -0
  38. data/ext/libmemcached-0.32/clients/memstat.c +326 -0
  39. data/ext/libmemcached-0.32/clients/utilities.c +207 -0
  40. data/ext/libmemcached-0.32/clients/utilities.h +41 -0
  41. data/ext/libmemcached-0.32/config/compile +143 -0
  42. data/ext/libmemcached-0.32/config/config.guess +1561 -0
  43. data/ext/libmemcached-0.32/config/config.rpath +666 -0
  44. data/ext/libmemcached-0.32/config/config.sub +1686 -0
  45. data/ext/libmemcached-0.32/config/depcomp +630 -0
  46. data/ext/libmemcached-0.32/config/install-sh +520 -0
  47. data/ext/libmemcached-0.32/config/ltmain.sh +9636 -0
  48. data/ext/libmemcached-0.32/config/missing +376 -0
  49. data/ext/libmemcached-0.32/config.h.in +254 -0
  50. data/ext/libmemcached-0.32/configure +23843 -0
  51. data/ext/libmemcached-0.32/configure.ac +120 -0
  52. data/ext/libmemcached-0.32/libmemcached/Makefile.am +111 -0
  53. data/ext/libmemcached-0.32/libmemcached/Makefile.in +1069 -0
  54. data/ext/libmemcached-0.32/libmemcached/byteorder.c +31 -0
  55. data/ext/libmemcached-0.32/libmemcached/common.h +189 -0
  56. data/ext/libmemcached-0.32/libmemcached/crc.c +86 -0
  57. data/ext/libmemcached-0.32/libmemcached/hsieh_hash.c +68 -0
  58. data/ext/libmemcached-0.32/libmemcached/jenkins_hash.c +213 -0
  59. data/ext/libmemcached-0.32/libmemcached/libmemcached.ver +1 -0
  60. data/ext/libmemcached-0.32/libmemcached/libmemcached_probes.d +30 -0
  61. data/ext/libmemcached-0.32/libmemcached/libmemcached_probes.h +82 -0
  62. data/ext/libmemcached-0.32/libmemcached/md5.c +354 -0
  63. data/ext/libmemcached-0.32/libmemcached/memcached/README.txt +7 -0
  64. data/ext/libmemcached-0.32/libmemcached/memcached/protocol_binary.h +385 -0
  65. data/ext/libmemcached-0.32/libmemcached/memcached.c +153 -0
  66. data/ext/libmemcached-0.32/libmemcached/memcached.h +305 -0
  67. data/ext/libmemcached-0.32/libmemcached/memcached.hpp +799 -0
  68. data/ext/libmemcached-0.32/libmemcached/memcached_allocators.c +72 -0
  69. data/ext/libmemcached-0.32/libmemcached/memcached_analyze.c +100 -0
  70. data/ext/libmemcached-0.32/libmemcached/memcached_auto.c +207 -0
  71. data/ext/libmemcached-0.32/libmemcached/memcached_behavior.c +290 -0
  72. data/ext/libmemcached-0.32/libmemcached/memcached_callback.c +175 -0
  73. data/ext/libmemcached-0.32/libmemcached/memcached_configure.h.in +23 -0
  74. data/ext/libmemcached-0.32/libmemcached/memcached_connect.c +371 -0
  75. data/ext/libmemcached-0.32/libmemcached/memcached_constants.h +146 -0
  76. data/ext/libmemcached-0.32/libmemcached/memcached_delete.c +0 -0
  77. data/ext/libmemcached-0.32/libmemcached/memcached_do.c +72 -0
  78. data/ext/libmemcached-0.32/libmemcached/memcached_dump.c +79 -0
  79. data/ext/libmemcached-0.32/libmemcached/memcached_exist.c +114 -0
  80. data/ext/libmemcached-0.32/libmemcached/memcached_exist.h +20 -0
  81. data/ext/libmemcached-0.32/libmemcached/memcached_fetch.c +102 -0
  82. data/ext/libmemcached-0.32/libmemcached/memcached_flush.c +89 -0
  83. data/ext/libmemcached-0.32/libmemcached/memcached_flush_buffers.c +23 -0
  84. data/ext/libmemcached-0.32/libmemcached/memcached_get.c +494 -0
  85. data/ext/libmemcached-0.32/libmemcached/memcached_get.h +87 -0
  86. data/ext/libmemcached-0.32/libmemcached/memcached_hash.c +252 -0
  87. data/ext/libmemcached-0.32/libmemcached/memcached_hosts.c +510 -0
  88. data/ext/libmemcached-0.32/libmemcached/memcached_internal.h +31 -0
  89. data/ext/libmemcached-0.32/libmemcached/memcached_io.c +594 -0
  90. data/ext/libmemcached-0.32/libmemcached/memcached_io.h +72 -0
  91. data/ext/libmemcached-0.32/libmemcached/memcached_key.c +28 -0
  92. data/ext/libmemcached-0.32/libmemcached/memcached_parse.c +74 -0
  93. data/ext/libmemcached-0.32/libmemcached/memcached_pool.h +38 -0
  94. data/ext/libmemcached-0.32/libmemcached/memcached_purge.c +76 -0
  95. data/ext/libmemcached-0.32/libmemcached/memcached_quit.c +75 -0
  96. data/ext/libmemcached-0.32/libmemcached/memcached_response.c +529 -0
  97. data/ext/libmemcached-0.32/libmemcached/memcached_result.c +57 -0
  98. data/ext/libmemcached-0.32/libmemcached/memcached_result.h +59 -0
  99. data/ext/libmemcached-0.32/libmemcached/memcached_sasl.c +225 -0
  100. data/ext/libmemcached-0.32/libmemcached/memcached_sasl.h +44 -0
  101. data/ext/libmemcached-0.32/libmemcached/memcached_server.c +159 -0
  102. data/ext/libmemcached-0.32/libmemcached/memcached_server.h +93 -0
  103. data/ext/libmemcached-0.32/libmemcached/memcached_stats.c +437 -0
  104. data/ext/libmemcached-0.32/libmemcached/memcached_storage.c +514 -0
  105. data/ext/libmemcached-0.32/libmemcached/memcached_storage.h +107 -0
  106. data/ext/libmemcached-0.32/libmemcached/memcached_strerror.c +92 -0
  107. data/ext/libmemcached-0.32/libmemcached/memcached_string.c +138 -0
  108. data/ext/libmemcached-0.32/libmemcached/memcached_string.h +53 -0
  109. data/ext/libmemcached-0.32/libmemcached/memcached_touch.c +60 -0
  110. data/ext/libmemcached-0.32/libmemcached/memcached_touch.h +31 -0
  111. data/ext/libmemcached-0.32/libmemcached/memcached_types.h +44 -0
  112. data/ext/libmemcached-0.32/libmemcached/memcached_util.h +15 -0
  113. data/ext/libmemcached-0.32/libmemcached/memcached_verbosity.c +36 -0
  114. data/ext/libmemcached-0.32/libmemcached/memcached_version.c +112 -0
  115. data/ext/libmemcached-0.32/libmemcached/memcached_watchpoint.h +38 -0
  116. data/ext/libmemcached-0.32/libmemcached/murmur_hash.c +76 -0
  117. data/ext/libmemcached-0.32/libmemcached/visibility.h +51 -0
  118. data/ext/libmemcached-0.32/libmemcachedutil/Makefile.am +11 -0
  119. data/ext/libmemcached-0.32/libmemcachedutil/Makefile.in +604 -0
  120. data/ext/libmemcached-0.32/libmemcachedutil/libmemcachedutil.ver +1 -0
  121. data/ext/libmemcached-0.32/libmemcachedutil/memcached_pool.c +170 -0
  122. data/ext/libmemcached-0.32/m4/ac_cxx_compile_stdcxx_0x.m4 +103 -0
  123. data/ext/libmemcached-0.32/m4/ac_cxx_header_stdcxx_98.m4 +67 -0
  124. data/ext/libmemcached-0.32/m4/acx_pthread.m4 +276 -0
  125. data/ext/libmemcached-0.32/m4/byteorder.m4 +40 -0
  126. data/ext/libmemcached-0.32/m4/deprecated.m4 +17 -0
  127. data/ext/libmemcached-0.32/m4/enable_utillib.m4 +16 -0
  128. data/ext/libmemcached-0.32/m4/extensions.m4 +94 -0
  129. data/ext/libmemcached-0.32/m4/hsieh.m4 +18 -0
  130. data/ext/libmemcached-0.32/m4/lib-prefix.m4 +221 -0
  131. data/ext/libmemcached-0.32/m4/libtool.m4 +7831 -0
  132. data/ext/libmemcached-0.32/m4/ltoptions.m4 +369 -0
  133. data/ext/libmemcached-0.32/m4/ltsugar.m4 +123 -0
  134. data/ext/libmemcached-0.32/m4/ltversion.m4 +23 -0
  135. data/ext/libmemcached-0.32/m4/lt~obsolete.m4 +98 -0
  136. data/ext/libmemcached-0.32/m4/memcached.m4 +30 -0
  137. data/ext/libmemcached-0.32/m4/pandora_64bit.m4 +55 -0
  138. data/ext/libmemcached-0.32/m4/pandora_canonical.m4 +151 -0
  139. data/ext/libmemcached-0.32/m4/pandora_check_compiler_version.m4 +37 -0
  140. data/ext/libmemcached-0.32/m4/pandora_check_cxx_standard.m4 +16 -0
  141. data/ext/libmemcached-0.32/m4/pandora_enable_dtrace.m4 +41 -0
  142. data/ext/libmemcached-0.32/m4/pandora_ensure_gcc_version.m4 +36 -0
  143. data/ext/libmemcached-0.32/m4/pandora_have_better_malloc.m4 +54 -0
  144. data/ext/libmemcached-0.32/m4/pandora_have_sasl.m4 +133 -0
  145. data/ext/libmemcached-0.32/m4/pandora_header_assert.m4 +23 -0
  146. data/ext/libmemcached-0.32/m4/pandora_libtool.m4 +15 -0
  147. data/ext/libmemcached-0.32/m4/pandora_optimize.m4 +79 -0
  148. data/ext/libmemcached-0.32/m4/pandora_shared_ptr.m4 +56 -0
  149. data/ext/libmemcached-0.32/m4/pandora_vc_build.m4 +32 -0
  150. data/ext/libmemcached-0.32/m4/pandora_warnings.m4 +262 -0
  151. data/ext/libmemcached-0.32/m4/pod2man.m4 +7 -0
  152. data/ext/libmemcached-0.32/m4/protocol_binary.m4 +23 -0
  153. data/ext/libmemcached-0.32/m4/setsockopt.m4 +57 -0
  154. data/ext/libmemcached-0.32/m4/visibility.m4 +52 -0
  155. data/ext/libmemcached-0.32/support/Makefile.am +4 -0
  156. data/ext/libmemcached-0.32/support/Makefile.in +487 -0
  157. data/ext/libmemcached-0.32/support/libmemcached-fc.spec.in +105 -0
  158. data/ext/libmemcached-0.32/support/libmemcached.pc.in +10 -0
  159. data/ext/libmemcached-0.32/support/libmemcached.spec +105 -0
  160. data/ext/libmemcached-0.32/support/libmemcached.spec.in +105 -0
  161. data/ext/libmemcached-0.32/support/set_benchmark.sh +5 -0
  162. data/ext/libmemcached-0.32/tests/Makefile.am +113 -0
  163. data/ext/libmemcached-0.32/tests/Makefile.in +762 -0
  164. data/ext/libmemcached-0.32/tests/atomsmasher.c +245 -0
  165. data/ext/libmemcached-0.32/tests/function.c +4904 -0
  166. data/ext/libmemcached-0.32/tests/ketama_test_cases.h +108 -0
  167. data/ext/libmemcached-0.32/tests/output.cmp +7 -0
  168. data/ext/libmemcached-0.32/tests/output.res +7 -0
  169. data/ext/libmemcached-0.32/tests/output2.res +46 -0
  170. data/ext/libmemcached-0.32/tests/plus.cpp +293 -0
  171. data/ext/libmemcached-0.32/tests/r/memcat.res +19 -0
  172. data/ext/libmemcached-0.32/tests/r/memcp.res +27 -0
  173. data/ext/libmemcached-0.32/tests/r/memrm.res +19 -0
  174. data/ext/libmemcached-0.32/tests/r/memslap.res +33 -0
  175. data/ext/libmemcached-0.32/tests/r/memstat.res +33 -0
  176. data/ext/libmemcached-0.32/tests/server.c +118 -0
  177. data/ext/libmemcached-0.32/tests/server.h +25 -0
  178. data/ext/libmemcached-0.32/tests/start.c +16 -0
  179. data/ext/libmemcached-0.32/tests/t/memcat.test +4 -0
  180. data/ext/libmemcached-0.32/tests/t/memcp.test +3 -0
  181. data/ext/libmemcached-0.32/tests/t/memrm.test +3 -0
  182. data/ext/libmemcached-0.32/tests/t/memslap.test +5 -0
  183. data/ext/libmemcached-0.32/tests/t/memstat.test +3 -0
  184. data/ext/libmemcached-0.32/tests/test.c +137 -0
  185. data/ext/libmemcached-0.32/tests/test.h +46 -0
  186. data/ext/libmemcached-0.32/tests/udp.c +76 -0
  187. data/ext/rlibmemcached.i +258 -0
  188. data/ext/rlibmemcached_wrap.c +13917 -0
  189. data/lib/memcached/auth.rb +16 -0
  190. data/lib/memcached/behaviors.rb +78 -0
  191. data/lib/memcached/exceptions.rb +84 -0
  192. data/lib/memcached/experimental.rb +48 -0
  193. data/lib/memcached/marshal_codec.rb +10 -0
  194. data/lib/memcached/memcached.rb +732 -0
  195. data/lib/memcached/rails.rb +250 -0
  196. data/lib/memcached.rb +33 -0
  197. data/memcached.gemspec +0 -0
  198. data/test/profile/benchmark.rb +280 -0
  199. data/test/profile/c_profiler.rb +14 -0
  200. data/test/profile/exercise.rb +185 -0
  201. data/test/profile/rb_profiler.rb +21 -0
  202. data/test/profile/valgrind.rb +10 -0
  203. data/test/setup.rb +30 -0
  204. data/test/teardown.rb +0 -0
  205. data/test/test_helper.rb +18 -0
  206. data/test/unit/binding_test.rb +8 -0
  207. data/test/unit/memcached_experimental_test.rb +272 -0
  208. data/test/unit/memcached_test.rb +1487 -0
  209. data/test/unit/rails_test.rb +330 -0
  210. metadata +336 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9be2760563bb518041ebb34a3475f6717623e910
4
+ data.tar.gz: 2ed700f659e5a620ab5f126025377299da5345d4
5
+ SHA512:
6
+ metadata.gz: 8b589b5da74ab8c39073a743adf49688dab86b8a2551a1d7456196e53925327f37a9072d558ec4807d21494a84a9586e81afdfed42c0d733202666d1bd1ad38e
7
+ data.tar.gz: 7c9f96110c460c8688e3eb006a8b8434af516de72d1b0d2ed76f114e0288932b474b51e9b71a13c5961667e2eeae4eb9bfa1fe96b82a7d25fd36701b0d3df6b9
data/BENCHMARKS ADDED
@@ -0,0 +1,142 @@
1
+
2
+ Here are some benchmark results.
3
+
4
+ You can easily run your own benchmarks, as long as you have memcached itself on your system:
5
+ $ ruby -e 'system("ruby #{File.dirname(`gem which memcached`.split("\n").
6
+ last)}/../test/profile/benchmark.rb")'
7
+
8
+ == x86-64 OS X
9
+
10
+ These benchmarks were run on a 64-bit OS X machine, with memcached 1.7.2:
11
+
12
+ Darwin Arthurs-MacBook-Pro.local 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64
13
+ ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-darwin13.0.0]
14
+ RUBYOPT=-rbundler/setup
15
+ RUBYLIB=/Users/arthurnn/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/bundler-1.5.1/lib
16
+ Ruby 2.0.0p353
17
+ Loaded memcached 1.7.2
18
+ Loaded remix-stash 1.1.3
19
+ Loaded memcache-client 1.8.5
20
+ Loaded dalli 2.6.4
21
+ PID is 67055
22
+ Loops is 50000
23
+ Stack depth is 0
24
+ Small value size is: 19 bytes
25
+ Large value size is: 4189 bytes
26
+ user system total real
27
+ set: dalli:bin 6.440000 2.910000 9.350000 ( 10.563638)
28
+ set: libm:ascii 0.790000 1.800000 2.590000 ( 6.383041)
29
+ set: libm:ascii:pipeline 0.190000 0.010000 0.200000 ( 0.202092)
30
+ set: libm:ascii:udp 0.550000 0.940000 1.490000 ( 3.119734)
31
+ set: libm:bin 0.590000 1.790000 2.380000 ( 6.075610)
32
+ set: libm:bin:buffer 0.160000 0.440000 0.600000 ( 0.887930)
33
+ set: mclient:ascii 6.280000 3.380000 9.660000 ( 10.730003)
34
+ set: stash:bin 3.540000 1.990000 5.530000 ( 9.223562)
35
+
36
+ get: dalli:bin 6.680000 3.390000 10.070000 ( 11.180611)
37
+ get: libm:ascii 1.070000 1.830000 2.900000 ( 6.305700)
38
+ get: libm:ascii:pipeline 1.240000 2.440000 3.680000 ( 7.115719)
39
+ get: libm:ascii:udp 0.830000 1.020000 1.850000 ( 3.171187)
40
+ get: libm:bin 0.850000 2.290000 3.140000 ( 6.281492)
41
+ get: libm:bin:buffer 0.840000 2.600000 3.440000 ( 6.200500)
42
+ get: mclient:ascii 8.070000 3.530000 11.600000 ( 12.345600)
43
+ get: stash:bin 3.090000 2.100000 5.190000 ( 8.480606)
44
+
45
+ get-multi: dalli:bin 5.930000 2.180000 8.110000 ( 8.108164)
46
+ get-multi: libm:ascii 0.940000 0.970000 1.910000 ( 2.837050)
47
+ get-multi: libm:ascii:pipeline 0.940000 0.970000 1.910000 ( 2.824970)
48
+ get-multi: libm:ascii:udp 0.780000 0.610000 1.390000 ( 1.639728)
49
+ get-multi: libm:bin 0.750000 1.570000 2.320000 ( 3.138594)
50
+ get-multi: libm:bin:buffer 0.770000 1.610000 2.380000 ( 3.192629)
51
+
52
+ append: dalli:bin 5.740000 2.980000 8.720000 ( 16.344137)
53
+ append: libm:ascii 1.020000 1.950000 2.970000 ( 12.789710)
54
+ append: libm:ascii:pipeline 0.230000 0.070000 0.300000 ( 3.346092)
55
+ append: libm:ascii:udp 0.770000 1.100000 1.870000 ( 9.013537)
56
+ append: libm:bin 0.800000 1.950000 2.750000 ( 12.440546)
57
+ append: libm:bin:buffer 0.600000 1.570000 2.170000 ( 4.633185)
58
+ append: mclient:ascii 6.330000 3.470000 9.800000 ( 17.164551)
59
+
60
+ prepend: dalli:bin 5.710000 2.840000 8.550000 ( 16.196913)
61
+ prepend: libm:ascii 1.040000 1.970000 3.010000 ( 13.116495)
62
+ prepend: libm:ascii:pipeline 0.230000 0.060000 0.290000 ( 3.606279)
63
+ prepend: libm:ascii:udp 0.760000 1.090000 1.850000 ( 10.152684)
64
+ prepend: libm:bin 0.790000 1.880000 2.670000 ( 12.556400)
65
+ prepend: libm:bin:buffer 0.600000 1.600000 2.200000 ( 5.044049)
66
+ prepend: mclient:ascii 6.350000 3.440000 9.790000 ( 17.142962)
67
+
68
+ delete: dalli:bin 5.800000 2.980000 8.780000 ( 9.778920)
69
+ delete: libm:ascii 1.420000 1.990000 3.410000 ( 6.912480)
70
+ delete: libm:ascii:pipeline 0.130000 0.010000 0.140000 ( 0.139597)
71
+ delete: libm:ascii:udp 1.050000 1.030000 2.080000 ( 3.356582)
72
+ delete: libm:bin 1.350000 1.940000 3.290000 ( 6.627281)
73
+ delete: libm:bin:buffer 0.840000 0.900000 1.740000 ( 1.812440)
74
+ delete: mclient:ascii 5.980000 3.260000 9.240000 ( 9.918309)
75
+
76
+ exist: dalli:bin 6.680000 3.420000 10.100000 ( 11.182683)
77
+ exist: libm:ascii 0.580000 1.810000 2.390000 ( 6.127155)
78
+ exist: libm:ascii:pipeline 1.110000 2.390000 3.500000 ( 6.927549)
79
+ exist: libm:ascii:udp 0.360000 0.920000 1.280000 ( 2.827431)
80
+ exist: libm:bin 0.540000 1.760000 2.300000 ( 5.829209)
81
+ exist: libm:bin:buffer 0.330000 1.030000 1.360000 ( 1.668925)
82
+
83
+ get-missing: dalli:bin 5.800000 2.760000 8.560000 ( 9.562492)
84
+ get-missing: libm:ascii 1.500000 1.950000 3.450000 ( 6.884550)
85
+ get-missing: libm:ascii:pipeline 1.550000 2.690000 4.240000 ( 7.153775)
86
+ get-missing: libm:ascii:udp 1.170000 1.220000 2.390000 ( 3.620543)
87
+ get-missing: libm:bin 1.570000 2.520000 4.090000 ( 7.067088)
88
+ get-missing: libm:bin:buffer 1.510000 2.690000 4.200000 ( 6.904890)
89
+ get-missing: mclient:ascii 6.040000 3.230000 9.270000 ( 9.908836)
90
+
91
+ append-missing: dalli:bin 5.830000 3.140000 8.970000 ( 10.275904)
92
+ append-missing: libm:ascii 1.750000 2.150000 3.900000 ( 7.840195)
93
+ append-missing: libm:ascii:pipeline 0.210000 0.050000 0.260000 ( 0.260620)
94
+ append-missing: libm:ascii:udp 1.270000 1.180000 2.450000 ( 3.927083)
95
+ append-missing: libm:bin 1.490000 2.080000 3.570000 ( 7.330363)
96
+ append-missing: libm:bin:buffer 1.560000 2.520000 4.080000 ( 7.541846)
97
+ append-missing: mclient:ascii 6.180000 3.290000 9.470000 ( 10.531754)
98
+
99
+ prepend-missing: dalli:bin 5.830000 3.180000 9.010000 ( 10.289729)
100
+ prepend-missing: libm:ascii 1.780000 2.210000 3.990000 ( 7.993564)
101
+ prepend-missing: libm:ascii:pipeline 0.210000 0.060000 0.270000 ( 0.274244)
102
+ prepend-missing: libm:ascii:udp 1.260000 1.190000 2.450000 ( 3.898849)
103
+ prepend-missing: libm:bin 1.470000 2.100000 3.570000 ( 7.282732)
104
+ prepend-missing: libm:bin:buffer 1.560000 2.540000 4.100000 ( 7.578402)
105
+ prepend-missing: mclient:ascii 6.180000 3.280000 9.460000 ( 10.530963)
106
+
107
+ exist-missing: dalli:bin 6.000000 3.140000 9.140000 ( 10.188436)
108
+ exist-missing: libm:ascii 0.940000 1.990000 2.930000 ( 6.798681)
109
+ exist-missing: libm:ascii:pipeline 1.020000 2.390000 3.410000 ( 6.467459)
110
+ exist-missing: libm:ascii:udp 0.610000 1.060000 1.670000 ( 3.301365)
111
+ exist-missing: libm:bin 0.920000 2.000000 2.920000 ( 6.681597)
112
+ exist-missing: libm:bin:buffer 1.040000 2.540000 3.580000 ( 7.287630)
113
+
114
+ set-large: dalli:bin 7.100000 3.370000 10.470000 ( 11.795271)
115
+ set-large: libm:ascii 0.860000 1.850000 2.710000 ( 6.650196)
116
+ set-large: libm:ascii:pipeline 0.300000 0.270000 0.570000 ( 0.586590)
117
+ set-large: libm:ascii:udp 0.580000 0.970000 1.550000 ( 3.266937)
118
+ set-large: libm:bin 0.630000 1.800000 2.430000 ( 6.203372)
119
+ set-large: libm:bin:buffer 0.260000 0.680000 0.940000 ( 1.260024)
120
+ set-large: mclient:ascii 6.680000 3.700000 10.380000 ( 11.808357)
121
+ set-large: stash:bin 5.080000 2.520000 7.600000 ( 11.345483)
122
+
123
+ get-large: dalli:bin 6.740000 3.700000 10.440000 ( 11.605284)
124
+ get-large: libm:ascii 1.080000 1.860000 2.940000 ( 6.403185)
125
+ get-large: libm:ascii:pipeline 1.200000 2.350000 3.550000 ( 6.870392)
126
+ get-large: libm:ascii:udp 0.810000 1.020000 1.830000 ( 3.129513)
127
+ get-large: libm:bin 0.810000 2.150000 2.960000 ( 5.941723)
128
+ get-large: libm:bin:buffer 0.790000 2.410000 3.200000 ( 5.724441)
129
+ get-large: mclient:ascii 8.150000 3.240000 11.390000 ( 12.305832)
130
+ get-large: stash:bin 3.140000 2.130000 5.270000 ( 8.635335)
131
+
132
+ hash:default 0.330000 0.000000 0.330000 ( 0.328978)
133
+ hash:md5 0.630000 0.000000 0.630000 ( 0.631381)
134
+ hash:crc 0.380000 0.000000 0.380000 ( 0.376241)
135
+ hash:fnv1_64 0.240000 0.000000 0.240000 ( 0.242814)
136
+ hash:fnv1a_64 0.250000 0.000000 0.250000 ( 0.245082)
137
+ hash:fnv1_32 0.240000 0.000000 0.240000 ( 0.242794)
138
+ hash:fnv1a_32 0.250000 0.000000 0.250000 ( 0.245309)
139
+ hash:hsieh 0.090000 0.000000 0.090000 ( 0.096613)
140
+ hash:murmur 0.150000 0.000000 0.150000 ( 0.145111)
141
+ hash:jenkins 0.160000 0.000000 0.160000 ( 0.161225)
142
+ hash:none 0.100000 0.000000 0.100000 ( 0.097352)
data/CHANGELOG ADDED
@@ -0,0 +1,176 @@
1
+ v1.8.0. Add support for multi-entry CAS (fbogsany).
2
+ Make rails client .delete method more consistent with other APIs
3
+
4
+ v1.7.2. Don't build libmemcached docs (peppo1616).
5
+
6
+ v1.7.1. Override lib target.
7
+
8
+ v1.7.0. Remove legacy :namespace option from base class. Always rescue in Memcached::Rails and log, for people who don't care if their cache is actually working (mnzaki). Add snd_timeout (jreichhold).
9
+
10
+ v1.6.2. Add travis configuration file (tests rubies 1.8.7, 1.9, 2.0, and rbx 1.9 mode). Fixes for unit tests breaking under Ruby 1.8.7. Updated gemspec to add check for signing key so that we can also build unsigned gem. Add travis build status image to README.rdoc. Updates to Memcached::Rails to be more compatible with ActiveSupport's cache API.
11
+
12
+ v1.6.1. Clean up C-level handling of to_str (jason-o-matic).
13
+
14
+ v1.6.0. Add support for custom encoders (jason-o-matic).
15
+
16
+ v1.5.1. Fix segfault on Ruby 1.9.3-p429 (plerohellec).
17
+
18
+ v1.5.0. Fix unknown return code errors (tmm1).
19
+
20
+ v1.4.6. Correctly report key in error message instead of erroring again (jason-o-matic, timhaines).
21
+
22
+ v1.4.5. Fix missing file in manifest. Add install test to pre-release hook.
23
+
24
+ v1.4.4. Add memcached_exist function to libmemcached and Memcached#exist to expose it (ccocchi). Make test_all work again without RVM.
25
+
26
+ v1.4.3. Various convenience methods added to Memcached::Rails (grosser). Retain gemspec. Add Gemfile for convenience.
27
+
28
+ v1.4.2. Remove race from Marshal.load for any poor saps who have side-effects in their serialization mechanism (jason-o-matic).
29
+
30
+ v1.4.1. Fix Memcached::Rails#servers bug (tomhughes).
31
+
32
+ v1.4.0. Update Memcached::Rails compatibility wrapper to play along with Rails 3.2, including support for the horrendous ActiveSupport::Duration (tomhughes).
33
+
34
+ v1.3.7. Rebuild gem to work around timestamp issue in Gemspec on Rubygems 1.7 (tarcieri).
35
+
36
+ v1.3.6. Stop autoconf from running (eric). Raise generic Memcached::Error (instead of nil) on unexpected return code (gcampbell). Retry on Memcached::ServerEnd (ChristopherThorpe).
37
+
38
+ v1.3.5. Fix build again (eric).
39
+
40
+ v1.3.4. Fix build on RHEL (avsej). Handling snd_timeout and rcv_timeout >= 1 million usec (manju).
41
+
42
+ v1.3.3. JRuby compatibility. Less aggressive flag clearing in extconf.rb.
43
+
44
+ v1.3.2 Fix bug in backtrace mode; Rubinius compatibility (evanphx).
45
+
46
+ v1.3.1 Rescue ConnectionDataExists for cas because Rails shim over Memcached is not supposed to raise anything for legacy reasons
47
+
48
+ v1.3. Improvements to BSD support; add Memcached#touch method (avsej).
49
+
50
+ v1.2.7.1 Retry SomeErrorsWereReported exception
51
+
52
+ v1.2.7. Fix prefix keys on binary (multi)gets. Remove extraneous space from CAS requests.
53
+
54
+ v1.2.6. Fix build issue on FreeBSD. Fix errno mangling on timeouts during memcached_connect().
55
+
56
+ v1.2.5. Compile properly on JRuby (but doesn't run yet). Do zero-copy Ruby string allocations to improve performance.
57
+
58
+ v1.2.3. Don't keep the server strings around forever.
59
+
60
+ v1.2.2. Work around tcmalloc bug on OS X. Avoid circular reference in memcached_server_by_key().
61
+
62
+ v1.2.1. Fix large allocation on error bug.
63
+
64
+ v1.2. Clean up duplicated set_prefix_key API. Pipeline deletes and remove dead replication code. Apply prefix_key to binary protocol properly (tarrall). Add Memcached::Rails#exist? (ssoroka).
65
+
66
+ v1.1.3. Register new objects to fix leaks around memcached_server_st and other rich structs (tobi).
67
+
68
+ v1.1.2. Fix memory leak in memcached_mget().
69
+
70
+ v1.1.1. Speed up multiget. Don't cast types on unmarshalled set.
71
+
72
+ v1.1. TTL interface requires Fixnums.
73
+
74
+ v1.0.7. Fix build on BSD (Stew Mckinney). Fix build on Rubinius (brixen).
75
+
76
+ v1.0.6. Make build step repeatable in the event of failure.
77
+
78
+ v1.0.5. Fix Manifest.
79
+
80
+ v1.0.4. Fix server_failure_count mangling in memcached_quit.
81
+
82
+ v1.0.3. Clearer benchmarking.
83
+
84
+ v1.0.2. Don't allow compilation with -O3.
85
+
86
+ v1.0.1. SASL compilation fix (tnzk); Rubinious fix (evanphx); re-SWIG.
87
+
88
+ v1. Fix empty string return value bug in multiget.
89
+
90
+ v0.20.1. Better module naming. Oops.
91
+
92
+ v0.20.0. Add experimental module, with get_len() operator (rgbenson).
93
+
94
+ v0.19.10. Add no-op hash (MEMCACHED_HASH_NONE) to skip hashing when there is one server (bierbaum). Updated benchmark.
95
+
96
+ v0.19.8. Support :noreply behavior.
97
+
98
+ v0.19.7. Add no block prepend and append support for the ASCII protocol (rgbenson).
99
+
100
+ v0.19.6. Add get_from_last.
101
+
102
+ v0.19.5. Fix autoconf datestamps.
103
+
104
+ v0.19.3. Add exception_retry_limit and exceptions_to_retry.
105
+
106
+ v0.19.2. Regenerate SWIG with better configuration options for Linux.
107
+
108
+ v0.19.1. Return true in Memcached::Rails#write.
109
+
110
+ v0.19. Support dynamic setting of the namespace (mhat). Support SASL (seanlynch).
111
+
112
+ v0.18. Make Memcached::Rails compatible with Rails 2.3.2 (Ian Fung).
113
+
114
+ v0.17.7. Disable dependency tracking.
115
+
116
+ v0.17.6. Again.
117
+
118
+ v0.17.5. Fuss with archflags.
119
+
120
+ v0.17.4. Don't segfault on invalid keys in get_multi.
121
+
122
+ v0.17.3. Compile with -Os. Retry once on Memcached::ClientError.
123
+
124
+ v0.17.2. Fix realloc bug on Linux that got regressed.
125
+
126
+ v0.17.1. Ruby 1.9 compatibility.
127
+
128
+ v0.17. Update to libmemcached 0.32. Update Darwin version string for Snow Leopard final. Improve benchmarks. Add Memcached::Rails#append and #prepend, alias all original Memcached methods to _orig, and add set_servers= accessor for compatibility.
129
+
130
+ v0.16.3. Optimize append/prepend on miss.
131
+
132
+ v0.16.2. Fix memory leak.
133
+
134
+ v0.16.1. Use seeded random. Fix realloc bug on Linux.
135
+
136
+ v0.16. Build properly on OS X Snow Leopard.
137
+
138
+ v0.15.3. UDP fix. 0-value fix. Enforce server_add response code. Better tests.
139
+
140
+ v0.15.2. Don't require memcached itself to build. Fix for AUTO_EJECT_HOSTS in random and modulus pools. Support binary protocol.
141
+
142
+ v0.15.1. Fix build problem.
143
+
144
+ v0.15. Update to libmemcached 0.31.1. UDP support. Domain socket support (hellvinz). Bugfixes. Bundle libmemcached itself with the gem (antifuchs).
145
+
146
+ v0.14.4. Re-SWIG.
147
+
148
+ v0.14.3. Change Rails#get_multi API.
149
+
150
+ v0.14.2. Update to libmemcached 0.26.2. Return errno description.
151
+
152
+ v0.14.1. Update to libmemcached 0.26.1. Various bugfixes. Expose memcached_generate_hash_rvalue.
153
+
154
+ v0.13. Update to libmemcached 0.25. Use new built-in failover. Document fixed timeouts.
155
+
156
+ v0.12. Update to libmemcached 0.24. Support weights and flags. Default to HASH_WITH_PREFIX behavior. Note, if you use ketama, upgrading will invalidate your entire cache.
157
+
158
+ v0.11. Update to libmemcached 0.22. Support hostname lookups. Register %freefunc for MemcachedSt and remove destroy() method. Use new built-in behavior for namespacing. Raise on version mismatch. Remove private hash function. Fix bug related to socket size behavior reset when struct is initialized with missing servers (Jeffrey Hardy). Note, if you use a namespace, upgrading will invalidate your entire cache.
159
+
160
+ v0.10. Update to libmemcached 0.20. Failover support. Close consistent hashing bugs.
161
+
162
+ v0.9. Update to libmemcached 0.19. Add some failover tests, but we are still waiting on libmemcached's replication branch for them to actually be useful. Fix CAS bug (ktheory).
163
+
164
+ v0.8.1. Disable NotFound backtraces for speed (Blaine Cook).
165
+
166
+ v0.8. CAS support. Update to libmemcached 0.16.
167
+
168
+ v0.7.2. Auto-repair unprintable characters and too-long keys; improve performance of namespacing operation.
169
+
170
+ v0.7.1. Allow for explicit resetting of the struct on each request, at least until Brian fixes the synchronization problem.
171
+
172
+ v0.7. Rails compatibility wrapper; real multiget; rescue UnknownReadFailures in order to reset the struct..
173
+
174
+ v0.6. Better documentation; benchmark suite; improve buffered IO API; remove namespace accessor in favor of generic options hash; patch up extconf.rb to handle unusual library situations; increase test coverage.
175
+
176
+ v0.5. First release.
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
3
+
4
+ gem 'echoe', '>= 4.6.5'
5
+
6
+ group :benchmark do
7
+ gem "remix-stash", '~> 1.1.3'
8
+ gem "dalli", '~> 2.6.4'
9
+ gem "memcache", '= 1.4.1'
10
+ gem "memcache-client", '~> 1.8.5'
11
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,45 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ memcached (1.8.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ activesupport (3.2.6)
10
+ i18n (~> 0.6)
11
+ multi_json (~> 1.0)
12
+ allison (2.0.3)
13
+ dalli (2.6.4)
14
+ echoe (4.6.5)
15
+ allison (>= 2.0.3)
16
+ rake (>= 0.9.2)
17
+ rdoc (>= 2.5.11)
18
+ rubyforge (>= 2.0.4)
19
+ i18n (0.6.0)
20
+ json_pure (1.8.1)
21
+ memcache (1.4.1)
22
+ memcache-client (1.8.5)
23
+ metaclass (0.0.4)
24
+ mocha (1.0.0)
25
+ metaclass (~> 0.0.1)
26
+ multi_json (1.3.6)
27
+ rake (0.9.2.2)
28
+ rdoc (4.1.0)
29
+ remix-stash (1.1.3)
30
+ rubyforge (2.0.4)
31
+ json_pure (>= 1.1.7)
32
+
33
+ PLATFORMS
34
+ ruby
35
+
36
+ DEPENDENCIES
37
+ activesupport
38
+ dalli (~> 2.6.4)
39
+ echoe (>= 4.6.5)
40
+ memcache (= 1.4.1)
41
+ memcache-client (~> 1.8.5)
42
+ memcached!
43
+ mocha
44
+ rake
45
+ remix-stash (~> 1.1.3)
data/LICENSE ADDED
@@ -0,0 +1,184 @@
1
+ Academic Free License (AFL) v. 3.0
2
+
3
+ This Academic Free License (the "License") applies to any original work
4
+ of authorship (the "Original Work") whose owner (the "Licensor") has
5
+ placed the following licensing notice adjacent to the copyright notice
6
+ for the Original Work:
7
+
8
+ Licensed under the Academic Free License version 3.0
9
+
10
+ 1) Grant of Copyright License. Licensor grants You a worldwide,
11
+ royalty-free, non-exclusive, sublicensable license, for the duration of
12
+ the copyright, to do the following:
13
+
14
+ a) to reproduce the Original Work in copies, either alone or as part of
15
+ a collective work;
16
+
17
+ b) to translate, adapt, alter, transform, modify, or arrange the
18
+ Original Work, thereby creating derivative works ("Derivative Works")
19
+ based upon the Original Work;
20
+
21
+ c) to distribute or communicate copies of the Original Work and
22
+ Derivative Works to the public, under any license of your choice that
23
+ does not contradict the terms and conditions, including Licensor's
24
+ reserved rights and remedies, in this Academic Free License;
25
+
26
+ d) to perform the Original Work publicly; and
27
+
28
+ e) to display the Original Work publicly.
29
+
30
+ 2) Grant of Patent License. Licensor grants You a worldwide,
31
+ royalty-free, non-exclusive, sublicensable license, under patent claims
32
+ owned or controlled by the Licensor that are embodied in the Original
33
+ Work as furnished by the Licensor, for the duration of the patents, to
34
+ make, use, sell, offer for sale, have made, and import the Original Work
35
+ and Derivative Works.
36
+
37
+ 3) Grant of Source Code License. The term "Source Code" means the
38
+ preferred form of the Original Work for making modifications to it and
39
+ all available documentation describing how to modify the Original Work.
40
+ Licensor agrees to provide a machine-readable copy of the Source Code of
41
+ the Original Work along with each copy of the Original Work that
42
+ Licensor distributes. Licensor reserves the right to satisfy this
43
+ obligation by placing a machine-readable copy of the Source Code in an
44
+ information repository reasonably calculated to permit inexpensive and
45
+ convenient access by You for as long as Licensor continues to distribute
46
+ the Original Work.
47
+
48
+ 4) Exclusions From License Grant. Neither the names of Licensor, nor the
49
+ names of any contributors to the Original Work, nor any of their
50
+ trademarks or service marks, may be used to endorse or promote products
51
+ derived from this Original Work without express prior permission of the
52
+ Licensor. Except as expressly stated herein, nothing in this License
53
+ grants any license to Licensor's trademarks, copyrights, patents, trade
54
+ secrets or any other intellectual property. No patent license is granted
55
+ to make, use, sell, offer for sale, have made, or import embodiments of
56
+ any patent claims other than the licensed claims defined in Section 2.
57
+ No license is granted to the trademarks of Licensor even if such marks
58
+ are included in the Original Work. Nothing in this License shall be
59
+ interpreted to prohibit Licensor from licensing under terms different
60
+ from this License any Original Work that Licensor otherwise would have a
61
+ right to license.
62
+
63
+ 5) External Deployment. The term "External Deployment" means the use,
64
+ distribution, or communication of the Original Work or Derivative Works
65
+ in any way such that the Original Work or Derivative Works may be used
66
+ by anyone other than You, whether those works are distributed or
67
+ communicated to those persons or made available as an application
68
+ intended for use over a network. As an express condition for the grants
69
+ of license hereunder, You must treat any External Deployment by You of
70
+ the Original Work or a Derivative Work as a distribution under section
71
+ 1(c).
72
+
73
+ 6) Attribution Rights. You must retain, in the Source Code of any
74
+ Derivative Works that You create, all copyright, patent, or trademark
75
+ notices from the Source Code of the Original Work, as well as any
76
+ notices of licensing and any descriptive text identified therein as an
77
+ "Attribution Notice." You must cause the Source Code for any Derivative
78
+ Works that You create to carry a prominent Attribution Notice reasonably
79
+ calculated to inform recipients that You have modified the Original
80
+ Work.
81
+
82
+ 7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants
83
+ that the copyright in and to the Original Work and the patent rights
84
+ granted herein by Licensor are owned by the Licensor or are sublicensed
85
+ to You under the terms of this License with the permission of the
86
+ contributor(s) of those copyrights and patent rights. Except as
87
+ expressly stated in the immediately preceding sentence, the Original
88
+ Work is provided under this License on an "AS IS" BASIS and WITHOUT
89
+ WARRANTY, either express or implied, including, without limitation, the
90
+ warranties of non-infringement, merchantability or fitness for a
91
+ particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL
92
+ WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential
93
+ part of this License. No license to the Original Work is granted by this
94
+ License except under this disclaimer.
95
+
96
+ 8) Limitation of Liability. Under no circumstances and under no legal
97
+ theory, whether in tort (including negligence), contract, or otherwise,
98
+ shall the Licensor be liable to anyone for any indirect, special,
99
+ incidental, or consequential damages of any character arising as a
100
+ result of this License or the use of the Original Work including,
101
+ without limitation, damages for loss of goodwill, work stoppage,
102
+ computer failure or malfunction, or any and all other commercial damages
103
+ or losses. This limitation of liability shall not apply to the extent
104
+ applicable law prohibits such limitation.
105
+
106
+ 9) Acceptance and Termination. If, at any time, You expressly assented
107
+ to this License, that assent indicates your clear and irrevocable
108
+ acceptance of this License and all of its terms and conditions. If You
109
+ distribute or communicate copies of the Original Work or a Derivative
110
+ Work, You must make a reasonable effort under the circumstances to
111
+ obtain the express assent of recipients to the terms of this License.
112
+ This License conditions your rights to undertake the activities listed
113
+ in Section 1, including your right to create Derivative Works based upon
114
+ the Original Work, and doing so without honoring these terms and
115
+ conditions is prohibited by copyright law and international treaty.
116
+ Nothing in this License is intended to affect copyright exceptions and
117
+ limitations (including "fair use" or "fair dealing"). This License shall
118
+ terminate immediately and You may no longer exercise any of the rights
119
+ granted to You by this License upon your failure to honor the conditions
120
+ in Section 1(c).
121
+
122
+ 10) Termination for Patent Action. This License shall terminate
123
+ automatically and You may no longer exercise any of the rights granted
124
+ to You by this License as of the date You commence an action, including
125
+ a cross-claim or counterclaim, against Licensor or any licensee alleging
126
+ that the Original Work infringes a patent. This termination provision
127
+ shall not apply for an action alleging patent infringement by
128
+ combinations of the Original Work with other software or hardware.
129
+
130
+ 11) Jurisdiction, Venue and Governing Law. Any action or suit relating
131
+ to this License may be brought only in the courts of a jurisdiction
132
+ wherein the Licensor resides or in which Licensor conducts its primary
133
+ business, and under the laws of that jurisdiction excluding its
134
+ conflict-of-law provisions. The application of the United Nations
135
+ Convention on Contracts for the International Sale of Goods is expressly
136
+ excluded. Any use of the Original Work outside the scope of this License
137
+ or after its termination shall be subject to the requirements and
138
+ penalties of copyright or patent law in the appropriate jurisdiction.
139
+ This section shall survive the termination of this License.
140
+
141
+ 12) Attorneys' Fees. In any action to enforce the terms of this License
142
+ or seeking damages relating thereto, the prevailing party shall be
143
+ entitled to recover its costs and expenses, including, without
144
+ limitation, reasonable attorneys' fees and costs incurred in connection
145
+ with such action, including any appeal of such action. This section
146
+ shall survive the termination of this License.
147
+
148
+ 13) Miscellaneous. If any provision of this License is held to be
149
+ unenforceable, such provision shall be reformed only to the extent
150
+ necessary to make it enforceable.
151
+
152
+ 14) Definition of "You" in This License. "You" throughout this License,
153
+ whether in upper or lower case, means an individual or a legal entity
154
+ exercising rights under, and complying with all of the terms of, this
155
+ License. For legal entities, "You" includes any entity that controls, is
156
+ controlled by, or is under common control with you. For purposes of this
157
+ definition, "control" means (i) the power, direct or indirect, to cause
158
+ the direction or management of such entity, whether by contract or
159
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
160
+ outstanding shares, or (iii) beneficial ownership of such entity.
161
+
162
+ 15) Right to Use. You may use the Original Work in all ways not
163
+ otherwise restricted or conditioned by this License or by law, and
164
+ Licensor promises not to interfere with or be responsible for such uses
165
+ by You.
166
+
167
+ 16) Modification of This License. This License is Copyright (c) 2005
168
+ Lawrence Rosen. Permission is granted to copy, distribute, or
169
+ communicate this License without modification. Nothing in this License
170
+ permits You to modify this License as applied to the Original Work or to
171
+ Derivative Works. However, You may modify the text of this License and
172
+ copy, distribute or communicate your modified version (the "Modified
173
+ License") and apply it to other original works of authorship subject to
174
+ the following conditions: (i) You may not indicate in any way that your
175
+ Modified License is the "Academic Free License" or "AFL" and you may not
176
+ use those names in the name of your Modified License; (ii) You must
177
+ replace the notice specified in the first paragraph above with the
178
+ notice "Licensed under <insert your license name here>" or with a notice
179
+ of your own that is not confusingly similar to the notice in this
180
+ License; and (iii) You may not claim that your original works are open
181
+ source software unless your Modified License has been approved by Open
182
+ Source Initiative (OSI) and You comply with its license review and
183
+ certification process.
184
+