mperham-memcache-client 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt ADDED
@@ -0,0 +1,116 @@
1
+ = 1.6.0
2
+
3
+ * First official release since 1.5.0. Thanks to Eric Hodel for turning the project to me!
4
+
5
+ * Implement socket timeouts, should fix rare cases of very bad things happening
6
+ in production at 37signals and FiveRuns. (jseirles)
7
+
8
+ * New project home page: http://github.com/mperham/memcache-client
9
+
10
+ * Implement a consistent hashing algorithm, as described in libketama.
11
+ This dramatically reduces the cost of adding or removing servers dynamically
12
+ as keys are much more likely to map to the same server.
13
+
14
+ Take a scenario where we add a fourth server. With a dumb modulo algorithm, about
15
+ 25% of the keys will map to the same server. In other words, 75% of your memcached
16
+ content suddenly becomes invalid. With a consistent algorithm, 75% of the keys
17
+ will map to the same server as before - only 25% will be invalidated. (mperham)
18
+
19
+ = 1.5.0.5
20
+
21
+ * Remove native C CRC32_ITU_T extension in favor of Zlib's crc32 method.
22
+ memcache-client is now pure Ruby again and will work with JRuby and Rubinius.
23
+
24
+ = 1.5.0.4
25
+
26
+ * Get test suite working again (packagethief)
27
+ * Ruby 1.9 compatiblity fixes (packagethief, mperham)
28
+ * Consistently return server responses and check for errors (packagethief)
29
+ * Properly calculate CRC in Ruby 1.9 strings (mperham)
30
+ * Drop rspec in favor of test/unit, for 1.9 compat (mperham)
31
+
32
+ = 1.5.0.3 (FiveRuns fork)
33
+
34
+ * Integrated ITU-T CRC32 operation in native C extension for speed. Thanks to Justin Balthrop!
35
+
36
+ = 1.5.0.2 (FiveRuns fork)
37
+
38
+ * Add support for seamless failover between servers. If one server connection dies,
39
+ the client will retry the operation on another server before giving up.
40
+
41
+ * Merge Will Bryant's socket retry patch.
42
+ http://willbryant.net/software/2007/12/21/ruby-memcache-client-reconnect-and-retry
43
+
44
+ = 1.5.0.1 (FiveRuns fork)
45
+
46
+ * Fix set not handling client disconnects.
47
+ http://dev.twitter.com/2008/02/solving-case-of-missing-updates.html
48
+
49
+ = 1.5.0
50
+
51
+ * Add MemCache#flush_all command. Patch #13019 and bug #10503. Patches
52
+ submitted by Sebastian Delmont and Rick Olson.
53
+ * Type-cast data returned by MemCache#stats. Patch #10505 submitted by
54
+ Sebastian Delmont.
55
+
56
+ = 1.4.0
57
+
58
+ * Fix bug #10371, #set does not check response for server errors.
59
+ Submitted by Ben VandenBos.
60
+ * Fix bug #12450, set TCP_NODELAY socket option. Patch by Chris
61
+ McGrath.
62
+ * Fix bug #10704, missing #add method. Patch by Jamie Macey.
63
+ * Fix bug #10371, handle socket EOF in cache_get. Submitted by Ben
64
+ VandenBos.
65
+
66
+ = 1.3.0
67
+
68
+ * Apply patch #6507, add stats command. Submitted by Tyler Kovacs.
69
+ * Apply patch #6509, parallel implementation of #get_multi. Submitted
70
+ by Tyler Kovacs.
71
+ * Validate keys. Disallow spaces in keys or keys that are too long.
72
+ * Perform more validation of server responses. MemCache now reports
73
+ errors if the socket was not in an expected state. (Please file
74
+ bugs if you find some.)
75
+ * Add #incr and #decr.
76
+ * Add raw argument to #set and #get to retrieve #incr and #decr
77
+ values.
78
+ * Also put on MemCacheError when using Cache::get with block.
79
+ * memcache.rb no longer sets $TESTING to a true value if it was
80
+ previously defined. Bug #8213 by Matijs van Zuijlen.
81
+
82
+ = 1.2.1
83
+
84
+ * Fix bug #7048, MemCache#servers= referenced changed local variable.
85
+ Submitted by Justin Dossey.
86
+ * Fix bug #7049, MemCache#initialize resets @buckets. Submitted by
87
+ Justin Dossey.
88
+ * Fix bug #6232, Make Cache::Get work with a block only when nil is
89
+ returned. Submitted by Jon Evans.
90
+ * Moved to the seattlerb project.
91
+
92
+ = 1.2.0
93
+
94
+ NOTE: This version will store keys in different places than previous
95
+ versions! Be prepared for some thrashing while memcached sorts itself
96
+ out!
97
+
98
+ * Fixed multithreaded operations, bug 5994 and 5989.
99
+ Thanks to Blaine Cook, Erik Hetzner, Elliot Smith, Dave Myron (and
100
+ possibly others I have forgotten).
101
+ * Made memcached interoperable with other memcached libraries, bug
102
+ 4509. Thanks to anonymous.
103
+ * Added get_multi to match Perl/etc APIs
104
+
105
+ = 1.1.0
106
+
107
+ * Added some tests
108
+ * Sped up non-multithreaded and multithreaded operation
109
+ * More Ruby-memcache compatibility
110
+ * More RDoc
111
+ * Switched to Hoe
112
+
113
+ = 1.0.0
114
+
115
+ Birthday!
116
+
data/LICENSE.txt ADDED
@@ -0,0 +1,28 @@
1
+ Copyright 2005-2009 Bob Cottrell, Eric Hodel, Mike Perham.
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions
6
+ are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright
9
+ notice, this list of conditions and the following disclaimer.
10
+ 2. Redistributions in binary form must reproduce the above copyright
11
+ notice, this list of conditions and the following disclaimer in the
12
+ documentation and/or other materials provided with the distribution.
13
+ 3. Neither the names of the authors nor the names of their contributors
14
+ may be used to endorse or promote products derived from this software
15
+ without specific prior written permission.
16
+
17
+ THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
18
+ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE
21
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
22
+ OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
23
+ OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
24
+ BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
26
+ OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
27
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+
data/Rakefile ADDED
@@ -0,0 +1,22 @@
1
+ # vim: syntax=Ruby
2
+ require 'rubygems'
3
+ require 'rake/rdoctask'
4
+ require 'rake/testtask'
5
+
6
+ task :gem do
7
+ sh "gem build memcache-client.gemspec"
8
+ end
9
+
10
+ task :install => [:gem] do
11
+ sh "sudo gem install memcache-client-*.gem"
12
+ end
13
+
14
+ Rake::RDocTask.new do |rd|
15
+ rd.main = "README.rdoc"
16
+ rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
17
+ rd.rdoc_dir = 'doc'
18
+ end
19
+
20
+ Rake::TestTask.new
21
+
22
+ task :default => :test