PageRenderTime 69ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

/docs/gem.memcache-client-1.8.5/files/History_rdoc.html

https://github.com/toy/rb
HTML | 532 lines | 424 code | 108 blank | 0 comment | 0 complexity | c8fa581a8d91ec8aa4a61acaa7260087 MD5 | raw file
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  5. <head>
  6. <title>History.rdoc</title>
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  8. <link rel="stylesheet" href="../css/reset.css" type="text/css" media="screen" />
  9. <link rel="stylesheet" href="../css/main.css" type="text/css" media="screen" />
  10. <script src="../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
  11. <script src="../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
  12. <script src="../js/main.js" type="text/javascript" charset="utf-8"></script>
  13. </head>
  14. <body>
  15. <div class="banner">
  16. <h1>
  17. History.rdoc
  18. </h1>
  19. <ul class="files">
  20. <li>History.rdoc</li>
  21. <li>Last modified: Sun Oct 02 01:01:13 +0200 2011</li>
  22. </ul>
  23. </div>
  24. <div id="bodyContent">
  25. <div id="content">
  26. <div class="description">
  27. <h1>1.8.5 (2010-07-05)</h1>
  28. <pre>
  29. * Fix bad release
  30. </pre>
  31. <h1>1.8.4 (2010-07-02)</h1>
  32. <pre>
  33. * Fix unfibered usage of memcache-client in EM
  34. * Remove nag message (tenderlove)
  35. </pre>
  36. <h1>1.8.3 (2010-04-26)</h1>
  37. <pre>
  38. * Don't allow blank keys. (Bill Horsman)
  39. </pre>
  40. <h1>1.8.2 (2010-04-03)</h1>
  41. <pre>
  42. * Fix concurrency issues with eventmachine support.
  43. </pre>
  44. <h1>1.8.1 (2010-03-20)</h1>
  45. <pre>
  46. * Only require SystemTimer if the Ruby VM looks like MRI.
  47. * Remove VERSION.yml usage as we should avoid using files outside of lib at runtime. (josh)
  48. </pre>
  49. <h1>1.8.0 (2010-03-05)</h1>
  50. <pre>
  51. * Add support for EventMachine-based connections.
  52. * Add support for raw values in get_multi
  53. * Add memcached_top binary for gathering server statistics
  54. </pre>
  55. <h1>1.7.8 (2010-02-03)</h1>
  56. <ul>
  57. <li>Fix issue where autofix_keys logic did not account for namespace length.
  58. (menno)
  59. </li>
  60. <li>Fix issue when using memcache-client without rubygems. (anvar)
  61. </li>
  62. <li>Fix issue when using the cas method with raw=true (Takahiro Kikumoto)
  63. </li>
  64. </ul>
  65. <h1>1.7.7 (2009-11-24)</h1>
  66. <ul>
  67. <li>Fix invalid delete request in memcached 1.4.x. The expiry parameter to <a
  68. href="../classes/MemCache.html#M000037">MemCache#delete</a> is now ignored
  69. as memcached 1.4.x has dropped support for this feature.
  70. </li>
  71. </ul>
  72. <h1>1.7.6 (2009-11-03)</h1>
  73. <ul>
  74. <li>Reworked socket timeout code due to several customer complaints about
  75. timeouts not working 100% of the time since 1.7.3.
  76. </li>
  77. <li>Add option to configure the namespace separator string, for interop with
  78. Perl which does not use a separator character:
  79. <pre>
  80. MemCache.new(servers, :namespace_separator =&gt; '')
  81. </pre>
  82. </li>
  83. <li>Move to jeweler and gemcutter for RubyGem support.
  84. </li>
  85. </ul>
  86. <h1>1.7.5 (2009-09-09)</h1>
  87. <ul>
  88. <li>Fix ruby warnings (josh)
  89. </li>
  90. <li>Make megabyte value size limit optional since Tokyo Tyrant can accept
  91. values larger than 1MB. Use :check_size => false to disable the size check.
  92. (jsl)
  93. </li>
  94. <li>Ruby 1.9 support for recent I/O changes.
  95. </li>
  96. <li>Fix duplicate value marshalling on server error. (rajiv)
  97. </li>
  98. <li>Added option :autofix_keys (disabled by default) to replace long keys with
  99. md5 hashes (sd)
  100. </li>
  101. </ul>
  102. <h1>1.7.4 (2009-06-09)</h1>
  103. <ul>
  104. <li>Fix issue with raising timeout errors.
  105. </li>
  106. </ul>
  107. <h1>1.7.3 (2009-06-06)</h1>
  108. <ul>
  109. <li>Remove SystemTimer support, refactor I/O to use nonblocking operations.
  110. Speeds up performance approx 100%. Timeouts basically have no overhead now!
  111. (tenderlove)
  112. </li>
  113. <li>Update load logic to support SystemTimer running in Ruby Enterprise
  114. Edition. Thanks to splattael on github for the comment.
  115. </li>
  116. </ul>
  117. <h1>1.7.2 (2009-04-12)</h1>
  118. <ul>
  119. <li>Rollback socket timeout optimization. It does not work on all operating
  120. systems and was a support headache.
  121. </li>
  122. </ul>
  123. <h1>1.7.1 (2009-03-28)</h1>
  124. <ul>
  125. <li>Performance optimizations:
  126. <ul>
  127. <li>Rely on higher performance operating system socket timeouts for low-level
  128. socket read/writes where possible, instead of the (slower) SystemTimer or
  129. (slowest, unreliable) Timeout libraries.
  130. </li>
  131. <li>the native binary search is back! The recent performance tuning made the
  132. binary search a bottleneck again so it had to return. It uses RubyInline to
  133. compile the native extension and silently falls back to pure Ruby if
  134. anything fails. Make sure you run: `gem install RubyInline` if you want
  135. ultimate performance.
  136. </li>
  137. <li>the changes make memcache-client 100% faster than 1.7.0 in my performance
  138. test on Ruby 1.8.6: 15 sec -> 8 sec.
  139. </li>
  140. </ul>
  141. </li>
  142. <li>Fix several logging issues.
  143. </li>
  144. </ul>
  145. <h1>1.7.0 (2009-03-08)</h1>
  146. <ul>
  147. <li>Go through the memcached protocol document and implement any commands not
  148. already implemented:
  149. <ul>
  150. <li>cas
  151. </li>
  152. <li>append
  153. </li>
  154. <li>prepend
  155. </li>
  156. <li>replace
  157. </li>
  158. </ul>
  159. <p>
  160. Append and prepend only work with raw data since it makes no sense to
  161. concatenate two Marshalled values together. The cas functionality should be
  162. considered a prototype. Since I don&#8217;t have an application which uses
  163. <tt>cas</tt>, I&#8217;m not sure what semantic sugar the API should
  164. provide. Should it retry if the value was changed? Should it massage the
  165. returned string into true/false? Feedback would be appreciated.
  166. </p>
  167. </li>
  168. <li>Add fetch method which provides a method very similar to
  169. ActiveSupport::Cache::Store#fetch, basically a wrapper around get and add.
  170. (djanowski)
  171. </li>
  172. <li>Implement the flush_all delay parameter, to allow a large memcached farm to
  173. be flushed gradually.
  174. </li>
  175. <li>Implement the noreply flag, which tells memcached not to reply in
  176. operations which don&#8217;t need a reply, i.e. set/add/delete/flush_all.
  177. </li>
  178. <li>The only known functionality not implemented anymore is the <flags>
  179. parameter to the storage commands. This would require modification of the
  180. API method signatures. If someone can come up with a clean way to implement
  181. it, I would be happy to consider including it.
  182. </li>
  183. </ul>
  184. <h1>1.6.5 (2009-02-27)</h1>
  185. <ul>
  186. <li>Change memcache-client to multithreaded by default. The mutex does not add
  187. significant overhead and it is far too easy, now that Sinatra, Rails and
  188. Merb are all thread-safe, to use memcache-client in a thread-unsafe manner.
  189. Remove some unnecessary mutexing and add a test to verify heavily
  190. multithreaded usage does not act unexpectedly.
  191. </li>
  192. <li>Add optional support for the SystemTimer gem when running on Ruby 1.8.x.
  193. This gem is highly recommended - it ensures timeouts actually work and
  194. halves the overhead of using timeouts. Using this gem, Ruby 1.8.x is
  195. actually faster in my performance tests than Ruby 1.9.x. Just &#8220;gem
  196. install SystemTimer&#8221; and it should be picked up automatically.
  197. </li>
  198. </ul>
  199. <h1>1.6.4 (2009-02-19)</h1>
  200. <ul>
  201. <li>Remove native code altogether. The speedup was only 10% on Ruby 1.8.6 and
  202. did not work on Ruby 1.9.1.
  203. </li>
  204. <li>Removed memcache_util.rb from the distribution. If you are using it, please
  205. copy the code into your own project. The file will live in the github
  206. repository for a few more months for this purposes. <a
  207. href="http://github.com/mperham/memcache-client/raw/7a276089aa3c914e47e3960f9740ac7377204970/lib/memcache_util.rb">github.com/mperham/memcache-client/raw/7a276089aa3c914e47e3960f9740ac7377204970/lib/memcache_util.rb</a>
  208. </li>
  209. <li>Roll continuum.rb into memcache.rb. The project is again a single Ruby
  210. file, with no dependencies.
  211. </li>
  212. </ul>
  213. <h1>1.6.3 (2009-02-14)</h1>
  214. <ul>
  215. <li>Remove gem native extension in preference to RubyInline. This allows the
  216. gem to install
  217. </li>
  218. </ul>
  219. <p>
  220. and work on JRuby and Ruby 1.8.5 when the native code fails to compile.
  221. </p>
  222. <h1>1.6.2 (2009-02-04)</h1>
  223. <ul>
  224. <li>Validate that values are less than one megabyte in size.
  225. </li>
  226. <li>Refactor error handling in get_multi to handle server failures and return
  227. what values we could successfully retrieve.
  228. </li>
  229. <li>Add optional logging parameter for debugging and tracing.
  230. </li>
  231. <li>First official release since 1.5.0. Thanks to Eric Hodel for turning over
  232. the project to me! New project home page: <a
  233. href="http://github.com/mperham/memcache-client">github.com/mperham/memcache-client</a>
  234. </li>
  235. </ul>
  236. <h1>1.6.1 (2009-01-28)</h1>
  237. <ul>
  238. <li>Add option to disable socket timeout support. Socket timeout has a
  239. significant performance penalty (approx 3x slower than without in Ruby
  240. 1.8.6). You can turn off the timeouts if you need absolute performance, but
  241. by default timeouts are enabled. The performance penalty is much lower in
  242. Ruby 1.8.7, 1.9 and JRuby. (mperham)
  243. </li>
  244. <li>Add option to disable server failover. Failover can lead to
  245. &#8220;split-brain&#8221; caches that return stale data. (mperham)
  246. </li>
  247. <li>Implement continuum binary search in native code for performance reasons.
  248. Pure ruby is available for platforms like JRuby or Rubinius which
  249. can&#8217;t use C extensions. (mperham)
  250. </li>
  251. <li>Fix add with raw=true (iamaleksey)
  252. </li>
  253. </ul>
  254. <h1>1.6.0</h1>
  255. <ul>
  256. <li>Implement a consistent hashing algorithm, as described in libketama. This
  257. dramatically reduces the cost of adding or removing servers dynamically as
  258. keys are much more likely to map to the same server.
  259. <p>
  260. Take a scenario where we add a fourth server. With a naive modulo
  261. algorithm, about 25% of the keys will map to the same server. In other
  262. words, 75% of your memcached content suddenly becomes invalid. With a
  263. consistent algorithm, 75% of the keys will map to the same server as before
  264. - only 25% will be invalidated. (mperham)
  265. </p>
  266. </li>
  267. <li>Implement socket timeouts, should fix rare cases of very bad things
  268. happening in production at 37signals and FiveRuns. (jseirles)
  269. </li>
  270. </ul>
  271. <h1>1.5.0.5</h1>
  272. <ul>
  273. <li>Remove native C CRC32_ITU_T extension in favor of Zlib&#8217;s crc32
  274. method. memcache-client is now pure Ruby again and will work with JRuby and
  275. Rubinius.
  276. </li>
  277. </ul>
  278. <h1>1.5.0.4</h1>
  279. <ul>
  280. <li>Get test suite working again (packagethief)
  281. </li>
  282. <li>Ruby 1.9 compatiblity fixes (packagethief, mperham)
  283. </li>
  284. <li>Consistently return server responses and check for errors (packagethief)
  285. </li>
  286. <li>Properly calculate CRC in Ruby 1.9 strings (mperham)
  287. </li>
  288. <li>Drop rspec in favor of test/unit, for 1.9 compat (mperham)
  289. </li>
  290. </ul>
  291. <h1>1.5.0.3 (FiveRuns fork)</h1>
  292. <ul>
  293. <li>Integrated ITU-T CRC32 operation in native C extension for speed. Thanks to
  294. Justin Balthrop!
  295. </li>
  296. </ul>
  297. <h1>1.5.0.2 (FiveRuns fork)</h1>
  298. <ul>
  299. <li>Add support for seamless failover between servers. If one server connection
  300. dies,
  301. </li>
  302. </ul>
  303. <p>
  304. the client will retry the operation on another server before giving up.
  305. </p>
  306. <ul>
  307. <li>Merge Will Bryant&#8217;s socket retry patch.
  308. </li>
  309. </ul>
  310. <p>
  311. <a
  312. href="http://willbryant.net/software/2007/12/21/ruby-memcache-client-reconnect-and-retry">willbryant.net/software/2007/12/21/ruby-memcache-client-reconnect-and-retry</a>
  313. </p>
  314. <h1>1.5.0.1 (FiveRuns fork)</h1>
  315. <ul>
  316. <li>Fix set not handling client disconnects.
  317. </li>
  318. </ul>
  319. <p>
  320. <a
  321. href="http://dev.twitter.com/2008/02/solving-case-of-missing-updates.html">dev.twitter.com/2008/02/solving-case-of-missing-updates.html</a>
  322. </p>
  323. <h1>1.5.0</h1>
  324. <ul>
  325. <li>Add <a href="../classes/MemCache.html#M000038">MemCache#flush_all</a>
  326. command. Patch 13019 and bug 10503. Patches submitted by Sebastian Delmont
  327. and Rick Olson.
  328. </li>
  329. <li>Type-cast data returned by <a
  330. href="../classes/MemCache.html#M000040">MemCache#stats</a>. Patch 10505
  331. submitted by Sebastian Delmont.
  332. </li>
  333. </ul>
  334. <h1>1.4.0</h1>
  335. <ul>
  336. <li>Fix bug 10371, set does not check response for server errors. Submitted by
  337. Ben VandenBos.
  338. </li>
  339. <li>Fix bug 12450, set TCP_NODELAY socket option. Patch by Chris McGrath.
  340. </li>
  341. <li>Fix bug 10704, missing add method. Patch by Jamie Macey.
  342. </li>
  343. <li>Fix bug 10371, handle socket EOF in cache_get. Submitted by Ben VandenBos.
  344. </li>
  345. </ul>
  346. <h1>1.3.0</h1>
  347. <ul>
  348. <li>Apply patch 6507, add stats command. Submitted by Tyler Kovacs.
  349. </li>
  350. <li>Apply patch 6509, parallel implementation of get_multi. Submitted by Tyler
  351. Kovacs.
  352. </li>
  353. <li>Validate keys. Disallow spaces in keys or keys that are too long.
  354. </li>
  355. <li>Perform more validation of server responses. <a
  356. href="../classes/MemCache.html">MemCache</a> now reports errors if the
  357. socket was not in an expected state. (Please file bugs if you find some.)
  358. </li>
  359. <li>Add incr and decr.
  360. </li>
  361. <li>Add raw argument to set and get to retrieve incr and decr values.
  362. </li>
  363. <li>Also put on MemCacheError when using Cache::get with block.
  364. </li>
  365. <li>memcache.rb no longer sets $TESTING to a true value if it was previously
  366. defined. Bug 8213 by Matijs van Zuijlen.
  367. </li>
  368. </ul>
  369. <h1>1.2.1</h1>
  370. <ul>
  371. <li>Fix bug 7048, <a
  372. href="../classes/MemCache.html#M000025">MemCache#servers=</a> referenced
  373. changed local variable. Submitted by Justin Dossey.
  374. </li>
  375. <li>Fix bug 7049, MemCache#initialize resets @buckets. Submitted by Justin
  376. Dossey.
  377. </li>
  378. <li>Fix bug 6232, Make Cache::Get work with a block only when nil is returned.
  379. Submitted by Jon Evans.
  380. </li>
  381. <li>Moved to the seattlerb project.
  382. </li>
  383. </ul>
  384. <h1>1.2.0</h1>
  385. <p>
  386. NOTE: This version will store keys in different places than previous
  387. versions! Be prepared for some thrashing while memcached sorts itself out!
  388. </p>
  389. <ul>
  390. <li>Fixed multithreaded operations, bug 5994 and 5989. Thanks to Blaine Cook,
  391. Erik Hetzner, Elliot Smith, Dave Myron (and possibly others I have
  392. forgotten).
  393. </li>
  394. <li>Made memcached interoperable with other memcached libraries, bug
  395. <ol>
  396. <li>Thanks to anonymous.
  397. </li>
  398. </ol>
  399. </li>
  400. <li>Added get_multi to match Perl/etc APIs
  401. </li>
  402. </ul>
  403. <h1>1.1.0</h1>
  404. <ul>
  405. <li>Added some tests
  406. </li>
  407. <li>Sped up non-multithreaded and multithreaded operation
  408. </li>
  409. <li>More Ruby-memcache compatibility
  410. </li>
  411. <li>More RDoc
  412. </li>
  413. <li>Switched to Hoe
  414. </li>
  415. </ul>
  416. <h1>1.0.0</h1>
  417. <p>
  418. Birthday!
  419. </p>
  420. </div>
  421. </div>
  422. </div>
  423. </body>
  424. </html>