Debian Codegraph @

Changes-new

raw
1 0.28 ???
2
3 - Tidy & port the test suite to Test2::V0.
4 - Lots of internal simplifications and cleanups.
5 - Bump minimum Perl to 5.12.
6
7 0.27 2021-05-22
8
9 - Fix gat/gat_multi methods on newer Perls (#19, Mutsutoshi Yoshimoto).
10
11 0.26 2020-03-26
12
13 - Fix stack when not returning anything (#13, Sergey Aleynikov).
14 - Add gat/gat_multi methods (#15, Mutsutoshi Yoshimoto).
15
16 0.25 2017-03-15
17
18 - Fix build on a modern ExtUtils::MakeMaker (#7, Alexandr Ciornii).
19 - Test that we return undef on server errors (#8, Olli-Antti Kivilahti).
20
21 0.24 2017-03-12
22
23 - Add LICENSE field to Makefile.PL (#4, Hunter McMillen)
24 - Undef values no longer segfault multi methods (#5, Hunter McMillen).
25 - Replace OpenHack project home with GitHub (#6, Dmitry Shalashov).
26
27 0.23 2014-11-15
28
29 - Optimize Perl thread-local state access (Alexandr Evstigneev).
30 - Fix compilation warnings on Win64 (Alexandr Evstigneev).
31 - Add touch/touch_multi methods (#3 neguse).
32
33 0.22 2014-04-28
34
35 - Fix RT#92678: behaviour with utf8=0. When utf8 option is disabled
36 C::M::F will try to downgrade UTF-8 strings and will croak if failed to
37 do so.
38
39 0.21 2013-04-06
40
41 - Regenerate tarball to include META.json and META.yml.
42
43 0.20 2013-04-03
44
45 - Fix magic handling (tie, Readonly, etc.).
46 - Fix typo in POD (RT#77254, Alex)
47 - Remove unnecessary string eval in constructor (RT#81782, Andrew Holland).
48
49 0.19 2010-04-24
50
51 - Turned out some orthodox systems do not have sigtimedwait(). Since
52 advanced systems that have sigtimedwait() also have MSG_NOSIGNAL and
53 thus do not use SIGPIPE suppression code in question, and other systems
54 have neither MSG_NOSIGNAL nor sigtimedwait(), the only option is to
55 revert to the previous suppression code. It works correctly unless your
56 program is multi-threaded.
57
58 0.18 2010-04-06
59
60 - Fix RT#56142: handle Perl magic. Tied scalars, arrays and hashes are
61 supported now, as well as Readonly variables and other magic stuff.
62 - Fix t/command.t failure on some Solaris distributions.
63 - Make module thread-safe with Perl >= 5.7.2.
64
65 0.17 2009-11-02
66
67 - Warn about ignoring non-zero delete expiration time. Expiration time for
68 "delete" command has been optional in older versions of memcached, and
69 was dropped in memcached 1.3.2 (in an incompatible manner). Not knowing
70 server version it's impossible to tell whether the server will handle
71 the parameter or not, so we simply do not send it at all. Explicit zero
72 passed to delete() or delete_multi() is silently ignored, and a warning
73 is given if you pass non-zero delete expiration time. Furthermore the
74 syntax delete($key, $delay) and delete_multi([$key, $delay]) is
75 obsoleted and no more documented.
76
77 0.16 2009-06-15
78
79 - Add src/addrinfo_hostent.c and src/addrinfo_hostent.h to MANIFEST. Oops.
80
81 0.15 2009-06-15
82 - no need to upgrade for existing users. This release fixes
83 issues that new users may encounter (lack of getaddrinfo() on
84 some Windows systems; failing test case due to behaviour
85 change in memcached 1.3.3 that would break automatic
86 installation from CPAN).
87
88 Changes since 0.14:
89
90 Previous release (0.14) featured the change in the Ketama
91 algorithm. While that was a necessary move to improve key
92 distribution across servers, it introduced incompatibility
93 with earlier versions, and provided no means for smooth
94 transition for existing users of Ketama algorithm (i.e.,
95 without complete loss of cached data). The following
96 workaround was suggested by Masahiro Nagano---thanks!:
97
98 - apply the patch at http://limilic.com/entry/ljlt0sksbiqi16p3
99
100 - create two instances of C::M::F, one with enabled
101 old_ketama_algo => 1.
102
103 - for some time populate caches via both client instances,
104 while serving gets through old_ketama_algo. For this you
105 may use Cache::Migrate (http://gist.github.com/110981).
106
107 - after some time (depends on cache refresh rate) you may
108 drop old_ketama_algo, as new data is now distributed
109 according to the new Ketama implementation as well (this
110 doubles memory use though).
111
112 I do not include the named patch in the distribution, because
113 it's use is limited for one-time transition for existing
114 Ketama users only.
115
116 On systems lacking getaddrinfo() implement it with
117 gethostbyname(). In particular this should fix the build on
118 Win32 (Cygwin, Mingw32). Problem report (for Windows 2000 and
119 below) and initial patch are by Yasuhiro Matsumoto.
120
121 Fix t/commands.t: starting with memcached 1.3.3 incr/decr
122 commands expect numeric value in the cache. Patch by Jason
123 M. Mills (RT#46883).
124
125
126 0.14 2009-02-07
127 - improve Ketama distribution. The change is incompatible
128 with Ketama implementation in previous versions.
129
130 Changes since 0.13:
131
132 Change calculation of Ketama points for a given server to get
133 mapping ratios closer to server weight ratios. New Ketama
134 mode is compatible with nginx's module memcached_hash
135 (http://openhack.ru/nginx-patched/wiki/MemcachedHash) version
136 0.4, which has the same change, and is incompatible with
137 earlier versions of both named and this module.
138
139 Add script/ketama-distr.pl to compute server's share of
140 continuum. Real-world example:
141
142 script/ketama-distr.pl --ketama_points=150 \
143 --server=10.0.143.4:11211 \
144 --server=10.0.143.6:11211 \
145 --server=10.0.143.7:11211 \
146 --server=10.0.143.8:11211
147
148 outputs:
149
150 Old:
151 server 1: 10.0.143.4:11211 total = 671585356 (15.64%)
152 server 2: 10.0.143.6:11211 total = 601117590 (14.00%)
153 server 3: 10.0.143.7:11211 total = 1771239512 (41.24%)
154 server 4: 10.0.143.8:11211 total = 1251024837 (29.13%)
155
156 New:
157 server 1: 10.0.143.4:11211 total = 1057134262 (24.61%)
158 server 2: 10.0.143.6:11211 total = 1111432463 (25.88%)
159 server 3: 10.0.143.7:11211 total = 1017280856 (23.69%)
160 server 4: 10.0.143.8:11211 total = 1109119714 (25.82%)
161
162 Continuum array size = 4800 bytes
163
164 I.e. "Old" is what we were getting before the change, and
165 "New" is what we are getting now. "Continuum array size" is
166 how much memory is used to store the continuum array. Try
167 this script on your servers to see your distribution, and
168 possibly to tweak ketama_points and/or server weights to get a
169 better one.
170
171 Fix RT#41077 (http://rt.cpan.org/Ticket/Display.html?id=41077):
172 implement disconnect_all(). Patch is by norbi.nix.hu, with
173 minor corrections---thanks!.
174
175
176 0.13 2008-10-13
177 - introduce Win32 support (based on the patch by Yasuhiro
178 Matsumoto---arigatou!), and use poll() instead of select()
179 (suggested by Vladimir Timofeev).
180
181 Changes since 0.12:
182
183 Add support for Win32. I personally don't have the system nor
184 compiler, so I can't even test the build. Win32 port is
185 expected to be supported by community. Note: on Win32 below
186 Windows Vista max number of memcached servers is 64. See
187 comment on FD_SETSIZE in src/socket_win32.h to learn how to
188 increase this value if you need to connect to more than 64
189 servers.
190
191 Use poll() system call instead of select(). The latter has
192 the limit on the file descriptor value. I.e. even when the
193 number of memcached servers is low, but your application opens
194 lots of other files, then after some point socket() returns
195 fd value larger that select() can handle. poll() doesn't have
196 this limitation. On a side note, we don't have to use
197 advanced calls like epoll()/kqueue(), because number of
198 memcached servers is normally not very large (and single
199 request touches even a smaller subset).
200
201 Add bench make target ('make bench'). You may change initial
202 parameters at the top of script/benchmark.pl to benchmark
203 different types of loads.
204
205 Do not install libclient.a. Thanks to Vladimir Timofeev for
206 finding out how to prevent the installation.
207
208
209 0.12 2008-07-21
210 - this release fixes compilation on Solaris broken in 0.11.
211 If you were able to compile 0.11, then you weren't affected.
212
213 Changes since 0.11:
214
215 Fix compilation on Solaris. Ironically, 0.11 was supposed to
216 fix unrecognized format problem on Solaris, but instead broke
217 the compilation. Back in May the line
218
219 return XSRETURN_EMPTY;
220
221 has been introduced to the code, whereas it should be
222
223 XSRETURN_EMPTY;
224
225 It went unnoticed because expansion produces the code
226 permitted by compilers like GCC that allow blocks to return a
227 value. But Perl on Solaris has a different definition of this
228 macro that is not an expression. Hence the problem.
229
230
231 0.11 2008-07-17
232 - this release fixes %zu problem on Solaris.
233
234 Changes since 0.10:
235
236 Replace size_t/%zu with unsigned long/%lu for benefit of
237 systems that do not recognize the former format (Solaris 9).
238 Thanks to Michael Vychizhanin!
239
240 Add new parameter max_size (suggested by Alex Kapranoff, see
241 RT#35588, http://rt.cpan.org/Ticket/Display.html?id=35588).
242
243 Fix RT#36074 (http://rt.cpan.org/Ticket/Display.html?id=36074):
244 ExtUtils::MakeMaker version 6.17 and below generated invalid
245 Makefile.
246
247
248 0.10 2008-05-01
249 - this is a bugfix release fixing key distribution in
250 compatible mode (reported by Anton Yuzhaninov---thanks!), and
251 minor fixes in Ketama mode for collision case (very rare).
252
253 Changes since 0.09:
254
255 Fix key distribution bug in compatible mode. Because of
256 accumulated rounding error some keys were mapped to the
257 different server than with Cache::Memcached.
258
259 Remove explicit OPTIMIZE setting from the makefiles. It ought
260 to be set explicitly by the user. You can run 'perl -V:optimize'
261 to learn the default. It is safe to increase optimization
262 level to -O3.
263
264 Fix hash_namespace parameter: it didn't work for the namespace
265 specified in the constructor.
266
267 Minor fixes in Ketama mode for rare collision case.
268
269
270 0.09 2008-03-06
271 - this release makes 'noreply' mode official, and improves
272 latency for some command patterns by managing TCP_NODELAY flag.
273
274 Changes since 0.08:
275
276 Enable TCP_NODELAY to reduce latency of commands that wait for
277 the reply, and disable it for throughput of commands that don't
278 need any reply.
279
280 t/encoding.t was removed from distribution. It doesn't work
281 with Perl 5.6, which has no 'encoding' pragma, and I don't
282 know how to fix it (beautifully, there's a number of ugly
283 ways).
284
285 'noreply' mode is documented as the official feature of
286 memcached 1.2.5. script/benchmark.pl uses it automatically
287 when available.
288
289 Add parameter 'hash_namespace' (see docs).
290
291 Add method 'namespace' to get and/or set the namespace prefix.
292 This is handy when you "lease" C::M::F object for different
293 parts of your application that do unrelated things.
294
295
296 0.08 2008-01-24
297 - this is mostly a cleanup release, that also improves
298 decompression speed.
299
300 Changes since 0.07:
301
302 compress_alog was replaced with more generic compress_methods.
303 It turned out that IO::Uncompress::Gunzip is much (~4x) slower
304 than Compress::Zlib, so the latter is used as the default for
305 compress_methods. Besides, previous mechanism didn't scale
306 well.
307
308 Implemented the check of constructor arguments to catch
309 various typos (enabled by default), and new 'check_args'
310 parameter to disable it.
311
312 Workaround "cast from integer to pointer of different size"
313 warning on 64-bit platforms.
314
315 Removed 127.0.0.x from test cases since not all hosts resolve
316 such addresses when x is not 1.
317
318 Use plain malloc()/free() instead of Newx()/Safefree() in XS.
319 This should fix the build with Perl versions 5.6.0--5.8.6.
320
321
322 0.07 2008-01-18
323 - this is a major release that features a significant speed
324 improvement and introduces multi update commands. It also
325 fixes a bug in nowait mode that was introduced in 0.06.
326 Upgrade is recommended if you are using nowait => 1, or want
327 to employ new features and speed.
328
329 Changes since 0.06:
330
331 For performance reasons all Perl code was converted to XS. If
332 you performed any benchmarks, you may want to repeat them ;).
333 This change has a drawback that now you can't derive from
334 C::M::F easily.
335
336 Every update command now has its multi equivalent: set_multi,
337 add_multi, replace_multi, append_multi, prepend_multi,
338 incr_multi, decr_multi and delete_multi. By using multi
339 commands you will reduce request latency: several requests
340 would be sent in one packet, and the client would talk to all
341 servers simultaneously.
342
343 Improved results of update commands: commands that previously
344 returned boolean value now return true for positive server
345 reply, false for negative server reply, and undef on error.
346 Similar to DBI, decr returns "0E0" for positive zero reply,
347 which evaluates to true in a boolean context.
348
349 flush_all now returns a hash 'server_name' => 'bool_result'.
350
351 New commands 'server_versions' and 'nowait_push'.
352
353 New 'utf8' and 'serialize_methods' parameters for constructor.
354
355 script/compare.pl was removed. Instead script/benchmark.pl
356 takes an optional last argument "compare".
357
358 t/03-flush_all.t was removed. We use PID as a part of a
359 namespace prefix now, so we don't need clear cache any more.
360 And there are good reasons not to have flush_all: the user may
361 flush a valuable cache by mistake, and "flush_all 0" doesn't
362 work on memcached 1.2.2, so the outcome was uncertain anyway.
363 Without flush_all it's possible to execute in parallel more
364 than one 'make test'.
365
366 Fixed bug in 'nowait' mode that could cause false negative
367 replies to subsequent requests that you are waiting for.
368
369 Workaround the loss of the last 'noreply' request on the
370 server. 'noreply' is still an undocumented feature.
371
372 To support multi commands the API of internal client
373 implementation was changed. If you were using it as a
374 standalone library---sorry :). After API will freeze C client
375 library will likely be released on its own.
376
377
378 0.06 2007-12-20
379 - this release fixes a serious bug and features the 'nowait'
380 mode. Upgrade is recommended.
381
382 Changes since 0.05:
383
384 Fix a subtle race bug present since 0.02 that could mix
385 several values into one when you have more than one memcached
386 server and executed get_multi or gets_multi. If you have seen
387 the following in your logs or on the console:
388
389 Attempt to free unreferenced scalar: SV 0x9e89d34 at
390 /tmp/Cache-Memcached-Fast/blib/lib/Cache/Memcached/Fast.pm line 688.
391
392 that was it.
393
394 Added 'nowait' mode that allows the client to not wait the
395 reply, and thus reduces the wallclock time. Run
396 script/benchmark.pl and see how it affects wallclock time,
397 especially over the wire.
398
399 Made undocumented 'noreply' parameter a per-server setting.
400
401
402 0.05 2007-12-18
403 - more fixes to build and pass tests on different platforms.
404 There's no functional changes again.
405
406 Changes since 0.04:
407
408 At least on Perl 5.6.2 SVREF typemap entry has the meaning of
409 the class based on blessed SV. So instead of SVREF we use
410 custom Ref_SV and custom typemap entry. Found by CPAN
411 testers.
412
413 Do not use AUTOLOAD for normal commands, only for undocumented
414 ones.
415
416 Add incr() and decr() to script/compare.pl and
417 script/benchmark.pl.
418
419 Test case is split into several files and cleaned a bit.
420
421 Rename 'sun' -> 's_unix' in connect.c, because 'sun' is
422 reserved on... guesses? Right, Sun systems! Found by CPAN
423 testers.
424
425 Fix test case for FreeBSD and derivatives: do not use
426 localhost.localdomain address, which FreeBSD doesn't resolve
427 by default.
428
429 Added docs section "UTF-8 and tainted data".
430
431
432 0.04 2007-12-16
433 - CPAN testers found more issues on different platforms,
434 fixing these.
435
436 Changes since 0.03:
437
438 const char * is missing from typemap in Perl 5.6.2, fixed by
439 using plain char * for class name in new().
440
441 Use AI_ADDRCONFIG conditionally, some systems do not have it
442 (NetBSD 3.1).
443
444
445 0.03 2007-12-16
446 - this release has no new functionality compared to 0.02. It
447 only fixes some test and documentation problems that were
448 discovered, as it always happens, after the upload to CPAN.
449
450 Changes since 0.02:
451
452 Fixed internal documentation references.
453
454 Added missing docs for incr and decr.
455
456 Fixed test case to test server version and use
457 cas/gets/append/prepend only for 1.2.4 and up.
458
459 Actually there's new _undocumented_ command server_versions,
460 is has broken interface, you can't say which version
461 corresponds to which server when some of them do not respond.
462 This command is subject to change.
463
464
465 0.02 2007-12-15
466
467 Fully restartable code was replaced with classic
468 fill-the-buffer-first approach: it turned out that
469 restartability doesn't add much advantage. Lots of beautiful
470 and ugly code gone away.
471
472 Added support for multiple servers (select machine, CRC32,
473 timeouts).
474
475 Added script/compare.pl to compare this module to the original
476 Cache::Memcached, and also to measure speed in general.
477
478 Added Unix socket support, SIGPIPE handling (proper ignoring
479 actually ;)).
480
481 Added support for serialization of Perl data structures, and
482 for compression.
483
484 New commands: incr, decr, gets, gets_multi, cas,
485 enable_compression, remove (alias to delete).
486
487 New client parameters: connect_timeout, io_timeout (aka
488 select_timeout), compress_threshold, compress_ratio,
489 compress_algo, max_failure, failure_timeout.
490
491 Finally added documentation!
492
493 Added support for server weights.
494
495 Added the Ketama consistent hashing algorithm.
496
497 Added default tests as generated with Module::Starter. Main
498 test case is still messy, should be split into several tests.
499
500 There's also support for 'noreply'-enabled memcached, but
501 those patches are not (yet) accepted to mainline, so 'noreply'
502 is not an official feature and is not documented.
503
504
505 0.01 2007-11-26
506 - first internal release.
507
508 Supported only one server connection (TCP). Commands are
509 set(), add(), replace(), prepend(), append(), delete(),
510 flush_all(), get(), get_multi(). Client parameters are
511 'servers', 'namespace', 'close_on_error'. There's no
512 documentation. Test case is messy (but does its job).
513
514
515 0.00 2007-11-19
516 - original version; created by h2xs 1.23 with options
517 -O --omit-autoload --compat-version=5.6.0 \
518 --use-new-tests --name=Cache::Memcached::Fast