| 1 |
Revision history for CHI |
| 2 |
|
| 3 |
** denotes an incompatible change |
| 4 |
|
| 5 |
0.61 Oct 13, 2021 |
| 6 |
|
| 7 |
* Fixes |
| 8 |
- Unescaped left brace in regex is deprecated - RT #125596, #115022 |
| 9 |
- Missing dependency on Module::Mask - RT #114665 |
| 10 |
|
| 11 |
* Tests |
| 12 |
- Added continuous integration (CI) via GitHub Actions |
| 13 |
|
| 14 |
* Docs |
| 15 |
- improved POD |
| 16 |
|
| 17 |
0.60 Jun 7, 2015 |
| 18 |
|
| 19 |
* Fixes |
| 20 |
- Switch JSON backends from JSON.pm to JSON::MaybeXS - https://github.com/jonswar/perl-chi/pull/20 (Karen Etheridge) |
| 21 |
|
| 22 |
0.59 Jan 7, 2015 |
| 23 |
|
| 24 |
* Improvements |
| 25 |
- Pass driver to expire_if - https://github.com/jonswar/perl-chi/pull/19 (rouzier) |
| 26 |
|
| 27 |
* Fixes |
| 28 |
- Fix DiscardPolicy type - RT #95291 (Josh Rosenbaum) |
| 29 |
- Don't mandate that get_namespaces returns in same order - RT #89892 (nhorne) |
| 30 |
|
| 31 |
0.58 May 18, 2014 |
| 32 |
|
| 33 |
* Implementation |
| 34 |
- Use Moo instead of Moose for object system. This should be fully compatible |
| 35 |
with existing code, including Moose drivers or other extensions. This |
| 36 |
reduces the startup time and memory overhead. |
| 37 |
|
| 38 |
* Improvements |
| 39 |
- The Memory and RawMemory drivers now support zero as a valid value for |
| 40 |
the global argument causing a new hashref datastore to be created. (Aran |
| 41 |
Deltac) |
| 42 |
|
| 43 |
* Fixes |
| 44 |
- Fix busted packaging |
| 45 |
- Fix the loading of additional roles or traits (jrouzierinverse) |
| 46 |
|
| 47 |
0.57 Jan 26, 2014 |
| 48 |
|
| 49 |
* Improvements |
| 50 |
- Use nfreeze instead of freeze for network portability - RT #74188 (Jeffrey Fuller) |
| 51 |
|
| 52 |
0.56 Oct 22, 2012 |
| 53 |
|
| 54 |
* Fixes |
| 55 |
- Mention testing_driver_class in CHI/Driver/Development.pm - RT #78921 (Nigel Horne) |
| 56 |
|
| 57 |
* Tests |
| 58 |
- Add test_multiple_processes for testing drivers under concurrent writes - RT #79132 (Nigel Horne) |
| 59 |
|
| 60 |
* Docs |
| 61 |
- Mention that driver tests are responsible for their own cleanup - RT #79100 (Nigel Horne) |
| 62 |
- Various spelling fixes thanks to Pod::Spell |
| 63 |
|
| 64 |
0.55 Jul 3, 2012 |
| 65 |
|
| 66 |
* Improvements |
| 67 |
- Compute derived/aggregate stats in CHI::Stats::parse_stats_logs |
| 68 |
|
| 69 |
* Fixes |
| 70 |
- Eliminate "=for html" POD entries, which were mangling metacpan.org output (Pedro Melo) |
| 71 |
|
| 72 |
0.54 May 30, 2012 |
| 73 |
|
| 74 |
** Incompatible Changes ** |
| 75 |
- ** Switch CHI::Stats format to JSON for easier generation and parsing |
| 76 |
|
| 77 |
0.53 May 30, 2012 |
| 78 |
|
| 79 |
* Improvements |
| 80 |
- Measure time elapsed in get, set, and compute; record in logs and stats. Only |
| 81 |
measure when debug logging or stats are enabled. |
| 82 |
- compute() now handles list or scalar caller context |
| 83 |
- The driver parameter now accepts full classes prefixed by '+', as is standard. |
| 84 |
driver_class is still accepted for backward compatibility but no longer documented. |
| 85 |
|
| 86 |
* Fixes |
| 87 |
- compute() no longer modifies passed-in options hashref |
| 88 |
- Fix get_multi_* with partially empty l1 cache - perl-chi/pull/12 (Mike Cartmell) |
| 89 |
- Fix get_keys when file_extension set on CHI::Driver::File - RT #76489 (Vitaliy Tokarev) |
| 90 |
- Have set_multi call store_multi underneath as documented in Development.pod - RT |
| 91 |
#76621 (Oliver Paukstadt) |
| 92 |
- Minor POD fixes (Alessandro Ghedini) |
| 93 |
|
| 94 |
0.52 Mar 7, 2012 |
| 95 |
|
| 96 |
* Improvements |
| 97 |
- Subclasses inherit configuration from their parents unless they also call config() |
| 98 |
|
| 99 |
* Fixes |
| 100 |
- Fix Config test to not require memcached |
| 101 |
|
| 102 |
0.51 Mar 4, 2012 |
| 103 |
|
| 104 |
* Improvements |
| 105 |
- Add CHI->config() to register storage types, and set core and per-namespace defaults |
| 106 |
|
| 107 |
* Fixes |
| 108 |
- Fix new test_max_key_length test to work on drivers that do not support get_keys |
| 109 |
|
| 110 |
0.50 Nov 30, 2011 |
| 111 |
|
| 112 |
* Docs |
| 113 |
- Clarify busy_lock doc, add obj_ref doc (perlover) |
| 114 |
|
| 115 |
* Fixes |
| 116 |
- Override set() rather than set_object() in Role/HasSubcaches.pm so that |
| 117 |
keys are not double-transformed when set in l1 or mirror caches. This is |
| 118 |
simpler and should be more robust. |
| 119 |
- Remove htdocs which were accidentally added into dist |
| 120 |
|
| 121 |
0.49 Jun 23, 2011 |
| 122 |
|
| 123 |
* Fixes |
| 124 |
- Go back to generating version numbers for all sub-modules again |
| 125 |
|
| 126 |
0.48 Jun 15, 2011 |
| 127 |
|
| 128 |
* Fixes |
| 129 |
- Disregard default expires_at and expires_in if either are provided - RT #67970 (spjw) |
| 130 |
|
| 131 |
0.47 Apr 28, 2011 |
| 132 |
|
| 133 |
* Improvements |
| 134 |
- Allow compute() to take get options - expire_if and busy_lock |
| 135 |
- Add atomic operations: add, append, replace (alpha) |
| 136 |
|
| 137 |
0.46 Apr 22, 2011 |
| 138 |
|
| 139 |
* Other |
| 140 |
- Only generate version numbers for .pm files with documentation, to reduce inter-version churn |
| 141 |
|
| 142 |
0.45 Apr 18, 2011 |
| 143 |
|
| 144 |
* Improvements |
| 145 |
- Add expires_on_backend parameter |
| 146 |
|
| 147 |
0.44 Mar 17, 2011 |
| 148 |
|
| 149 |
* Fixes |
| 150 |
- Recreate tarball so that it can be read with older tars |
| 151 |
- Remove more unnecessary packages from CPAN index |
| 152 |
|
| 153 |
0.43 Mar 17, 2011 |
| 154 |
|
| 155 |
* Improvements |
| 156 |
- Add compress_threshold parameter |
| 157 |
|
| 158 |
0.42 Mar 3, 2011 |
| 159 |
|
| 160 |
* Fixes |
| 161 |
- Put parens around qw in various places to fix for perl 5.13+ |
| 162 |
|
| 163 |
* Improvements |
| 164 |
- Improve accuracy of benchmarks (nothingmuch) |
| 165 |
|
| 166 |
0.41 Mar 1, 2011 |
| 167 |
|
| 168 |
* Improvements |
| 169 |
- Add RawMemory driver, a faster version of Memory that does not serialize/deserialize |
| 170 |
values |
| 171 |
- Add etc/bench/bench.pl for benchmarking CHI and non-CHI caches |
| 172 |
- Publish current benchmarking results in CHI::Benchmarks |
| 173 |
|
| 174 |
* Testing |
| 175 |
- Stop using test counts (http://stackoverflow.com/questions/690342/) |
| 176 |
|
| 177 |
0.40 Feb 27, 2011 |
| 178 |
|
| 179 |
* Improvements |
| 180 |
- Reverse order of 2nd and 3rd arguments in compute() (old order will still work) |
| 181 |
- Throw error if arguments passed to clear() |
| 182 |
|
| 183 |
* Fixes |
| 184 |
- Fix CHI::Driver::Metacache::meta_cache to build lazily, eliminating intermittent bug |
| 185 |
and making compatible with Moose 1.99+ (autarch) |
| 186 |
- Check if get_object defined in purge - RT #63699 (forrest) |
| 187 |
|
| 188 |
0.39 Feb 6, 2011 |
| 189 |
|
| 190 |
* Fixes |
| 191 |
- Put missing module names back in POD |
| 192 |
|
| 193 |
0.38 Feb 6, 2011 |
| 194 |
|
| 195 |
* Fixes |
| 196 |
- Move some smoke tests back to author tests |
| 197 |
|
| 198 |
0.37 Feb 6, 2011 |
| 199 |
|
| 200 |
* Fixes |
| 201 |
- Eliminate Module::Load::Conditional which was causing problems with version.pm - RT |
| 202 |
#64900 - reported by [email protected] |
| 203 |
|
| 204 |
* Implementation |
| 205 |
- Switch to Dist::Zilla |
| 206 |
|
| 207 |
0.36 Jun 9, 2010 |
| 208 |
|
| 209 |
* Fixes |
| 210 |
- Only encode keys with wide characters |
| 211 |
- In escape_for_filename, replace \w with A-Za-z0-9_ to avoid The Unicode Bug |
| 212 |
|
| 213 |
0.35 Jun 4, 2010 |
| 214 |
|
| 215 |
* Improvements |
| 216 |
- Automatically serialize keys that are references |
| 217 |
- Automatically digest long keys, based on max_key_length and key_digester |
| 218 |
- Handle utf-8 characters in keys and values |
| 219 |
|
| 220 |
* Fixes |
| 221 |
- Add Test::Builder and Test::Log::Dispatch to dependencies - RT #57091 - reported by Doug Bell |
| 222 |
- Add line about installing Cache::FastMmap in CHI::Driver::FastMmap - RT #55920 - reported by RSAVAGE |
| 223 |
|
| 224 |
0.34 Feb 9, 2010 |
| 225 |
|
| 226 |
* Improvements |
| 227 |
- Add statistics recording with CHI::Stats |
| 228 |
- Add max_build_depth to ward off accidental infinite subcache recursion |
| 229 |
|
| 230 |
* Fixes |
| 231 |
- Change unique_id so as not to seg fault with threads - RT #53591 - reported by Marc Tobias |
| 232 |
- Eliminate existence check in File remove(), as it is prone to race condition - RT #50104 - reported by Aran Deltac |
| 233 |
- In File clear(), rename directory before removing to reduce chance of conflict |
| 234 |
|
| 235 |
0.33 Nov 29, 2009 |
| 236 |
|
| 237 |
* Fixes |
| 238 |
- In CacheContainer, ensure that fetch returns scalar |
| 239 |
- Include Role::IsSubcache attributes in CHI::Driver->non_common_constructor_params |
| 240 |
|
| 241 |
0.32 Nov 24, 2009 |
| 242 |
|
| 243 |
* Fixes |
| 244 |
- get_keys not supported in File driver when key_digest is used, for now |
| 245 |
- Replace deprecated Class::MOP get_attribute_map with get_attribute_list - RT #52019 - |
| 246 |
reported by Todd Caine |
| 247 |
- Include Role::HasSubcaches and Role::IsSizeAware attributes in |
| 248 |
CHI::Driver->non_common_constructor_params |
| 249 |
|
| 250 |
0.31 Nov 17, 2009 |
| 251 |
|
| 252 |
* Improvements |
| 253 |
- ** Rename file_digest to key_digest, so it can be made a generic driver feature later on |
| 254 |
- Allow key_digest to be passed as a string, hash or object |
| 255 |
- Create Digest object once per CHI object, rather than once per read/write |
| 256 |
|
| 257 |
0.30 Nov 5, 2009 |
| 258 |
|
| 259 |
* Fixes |
| 260 |
- Fix bug with size-aware L1 cache not keeping track of size |
| 261 |
- Fix description of never-expiring set in logs and errors |
| 262 |
|
| 263 |
* Improvements |
| 264 |
- Add file_digest and file_extension options to File driver |
| 265 |
- Improve l1 cache performance by reusing packed CacheObject data |
| 266 |
- Document options that cannot be overriden by subcache, and warn if user tries to override these |
| 267 |
|
| 268 |
0.29 Oct 14, 2009 |
| 269 |
|
| 270 |
* Fixes |
| 271 |
- Make sure Memory cache is cleared when multiple objects use the same datastore, or when datastore hash itself is emptied |
| 272 |
- Fix synopsis of Memory cache in main docs - RT #50360 - reported by zloyrusskiy |
| 273 |
- Fix get_namespaces when File root dir doesn't exist |
| 274 |
- Fix tests to use label for log matching |
| 275 |
|
| 276 |
0.28 Aug 31, 2009 |
| 277 |
|
| 278 |
* Fixes |
| 279 |
- Add Test::Exception, Log::Any::Adapter::Dispatch to dependencies |
| 280 |
- Remove use of no-longer-existent CHI::Test::Logger from test modules - RT #49252 |
| 281 |
- Fix get_multi_* when $@ already contains an error - RT #48988 - reported by Sergey Panteleev |
| 282 |
- Fix docs to mention root_dir - RT #43409 - reported by anirvan |
| 283 |
|
| 284 |
* Implementation |
| 285 |
- Remove private debugging methods dp and dps |
| 286 |
|
| 287 |
0.27 Aug 27, 2009 |
| 288 |
|
| 289 |
** Incompatible Changes ** |
| 290 |
- ** Switch to using Log::Any for controlling logging, instead of custom CHI->logger() |
| 291 |
|
| 292 |
* Implementation |
| 293 |
- Move internal tests to xt/release, as per standard |
| 294 |
|
| 295 |
0.26 Jul 14, 2009 |
| 296 |
|
| 297 |
* Fixes |
| 298 |
- Eliminate is_subcache redefinition of attribute (causes CHI to fail to load under latest Moose) |
| 299 |
|
| 300 |
* Implementation |
| 301 |
- Make sure that tests are only using keys from a particular list; this is necessary for |
| 302 |
memcached tests, which has to simulate get_keys by checking for all the possible ones |
| 303 |
|
| 304 |
0.25 Jun 2, 2009 |
| 305 |
|
| 306 |
* Improvements |
| 307 |
- Non-Moose drivers should be fully functional again (reversing the change in 0.23) |
| 308 |
|
| 309 |
* Implementation |
| 310 |
- Moved role composition to CHI.pm factory (ala MooseX::Traits), so that each role can have its |
| 311 |
own attributes and initialization |
| 312 |
- Moved all Moose types to CHI::Types |
| 313 |
- Replaced require_dynamic with Class::MOP::load_class |
| 314 |
|
| 315 |
0.241 May 26, 2009 |
| 316 |
|
| 317 |
* Fixes |
| 318 |
- Actually add Moose to requirements, in place of Any::Moose |
| 319 |
|
| 320 |
0.24 May 26, 2009 |
| 321 |
|
| 322 |
* Fixes |
| 323 |
- Reverted test scripts to previous format, as they were causing problems with other |
| 324 |
driver distributions |
| 325 |
|
| 326 |
0.23 May 24, 2009 |
| 327 |
|
| 328 |
** Incompatible Changes ** |
| 329 |
- ** Drivers must now be Moose based to be fully functional, since we use Moose roles to |
| 330 |
implement various features. For backward compatibility, non-Moose drivers will still work |
| 331 |
at a basic level (for now). |
| 332 |
|
| 333 |
* Improvements |
| 334 |
- Added concepts of size awareness, maximum size, and discard policies for any driver. |
| 335 |
See "Size Awareness" section of docs. |
| 336 |
|
| 337 |
* Implementation |
| 338 |
- Added a metacache, which resides in a separate _CHI_META namespace and stores meta-information |
| 339 |
about caches. Initially for tracking size for size-aware caches. |
| 340 |
- Added dependency on Carp::Assert |
| 341 |
- Eliminate boilerplate in test scripts |
| 342 |
|
| 343 |
* Fixes |
| 344 |
- Croak if specify both 'global' and 'datastore' for memory driver |
| 345 |
|
| 346 |
0.22 May 13, 2009 |
| 347 |
|
| 348 |
* Implementation |
| 349 |
- Switch from Mouse back to Moose - six week experiment over. Once we started using roles, |
| 350 |
Mouse became increasingly unattractive and the Moose community encouraged us not to go |
| 351 |
further with it. We can hope (or help ensure) that Moose installation and startup time improves. |
| 352 |
- Moved subcache code to a separate role, CHI::Driver::Role::HasSubcaches. API remains |
| 353 |
the same -- activated via l1_cache and mirror_cache options to CHI->new. |
| 354 |
|
| 355 |
0.21 May 5, 2009 |
| 356 |
|
| 357 |
** Incompatible Changes ** |
| 358 |
- ** Deprecate get_multi_array - silly to have this along with get_multi_arrayref |
| 359 |
- ** CHI::Driver::Memory will no longer use a global datastore by default - it was too easy |
| 360 |
to accidentally share the same datstore in unrelated code. Either a datastore or the |
| 361 |
'global' flag must be specified. Right now the absence of either will issue a warning, |
| 362 |
eventually this may become an error. |
| 363 |
|
| 364 |
* Improvements |
| 365 |
- To implement get_multi_*, drivers now define the simpler fetch_multi_hashref |
| 366 |
- Made get_multi_* work optimally with l1 caches |
| 367 |
|
| 368 |
* Fixes |
| 369 |
- Eliminated t/Multilevel.t which was causing test failures on new installations |
| 370 |
- Fixed get_namespaces for File driver to ignore non-standard dir names |
| 371 |
|
| 372 |
* Docs |
| 373 |
- Tidied pod with Pod::Tidy |
| 374 |
- Added Features section and mention of Chris Leishman's Cache to docs |
| 375 |
|
| 376 |
0.2 Apr 25, 2009 |
| 377 |
|
| 378 |
** Incompatibile Changes ** |
| 379 |
- ** Removed CHI::Driver::Multilevel, replaced with subcaches |
| 380 |
- ** ref($driver) is no longer simply the driver class, it is an auto-generated wrapper |
| 381 |
class like CHI::Wrapped::CHI::Driver::Memory - this is so that certain driver methods |
| 382 |
can be automatically wrapped |
| 383 |
|
| 384 |
* Improvements |
| 385 |
- Added a more practical and intuitive multi-level cache mechanism: subcaches. l1_cache |
| 386 |
and mirror_cache are the first two supported subcaches |
| 387 |
- Added customizable cache label, used in logs and error messages |
| 388 |
|
| 389 |
0.102 Mar 6, 2009 |
| 390 |
|
| 391 |
* Fixes |
| 392 |
- Skip get_namespaces in tests with drivers that don't support it |
| 393 |
- Eliminate unconditional use of Data::Serializer in tests; improve error when Data::Serializer not installed |
| 394 |
|
| 395 |
0.101 Mar 2, 2009 |
| 396 |
|
| 397 |
* Fixes |
| 398 |
- Don't use Data::Serializer up front |
| 399 |
|
| 400 |
0.10 Feb 28, 2009 |
| 401 |
|
| 402 |
- ** Deprecate expire_if method - this can easily be done manually, and it now differs |
| 403 |
deceptively from the expire_if option to get() |
| 404 |
- ** Change expire_if option to simply return undef, without actually expiring the item |
| 405 |
- Switch to Mouse instead of Moose, to reduce install dependencies and overhead. Eliminate |
| 406 |
Moose-isms as needed. Eventually may switch to Any::Moose but want to get comfortable |
| 407 |
with Mouse first. |
| 408 |
- Eliminate dependencies on Data::Serializer, File::Slurp, and Module::Find |
| 409 |
- Revert Memory driver implementation to more readable and illustrative form |
| 410 |
- Handle value-too-large errors in FastMmap driver |
| 411 |
- When serializer passed as a string, use raw=>1 so as not to hex-encode or insert token |
| 412 |
- Allow serializer to be passed as a hashref |
| 413 |
- Fix bug when specifying serializer with multilevel driver |
| 414 |
|
| 415 |
0.091 Jan 2, 2009 |
| 416 |
|
| 417 |
- Ensure that unlink_on_exit=0 is being passed to FastMmap |
| 418 |
- Allow serializer to be passed as a simple string |
| 419 |
- Documentation fixes |
| 420 |
|
| 421 |
0.09 Dec 30, 2008 |
| 422 |
|
| 423 |
- Moved source to git |
| 424 |
- Added Null driver |
| 425 |
- Fixed main docs regarding Memcached driver |
| 426 |
- Changed FastMmap driver to pass all unrecognized options onto Cache::FastMmap, to better |
| 427 |
handle future FastMmap versions |
| 428 |
- Fixed small get_keys bug in File driver |
| 429 |
- Added expires time to set logs |
| 430 |
- Added get_multi_array alongside get_multi_arrayref |
| 431 |
- Added test for get_namespaces |
| 432 |
|
| 433 |
0.081 Sep 24, 2008 |
| 434 |
|
| 435 |
- Fix t/Driver/File.pm test so it does not depend on specific OS error message |
| 436 |
|
| 437 |
0.08 Sep 23, 2008 |
| 438 |
|
| 439 |
- ** Move CHI::Driver::Memcached to its own distribution |
| 440 |
- Many internal changes to make greater use of Moose (Dave Rolsky). |
| 441 |
- Add serializer option, allowing control over how data is serialized/deserialized |
| 442 |
- The FastMmap driver was not actually making use of the init_file, |
| 443 |
cache_size, page_size, or num_pages options. Reported by Mike |
| 444 |
Astle. RT #35819. (Dave Rolsky) |
| 445 |
- Allow suppression of renames in CHI::Driver::File by overriding |
| 446 |
generate_temporary_filename |
| 447 |
|
| 448 |
0.07 Mar 12, 2008 |
| 449 |
|
| 450 |
- Add Date::Parse to build dependencies |
| 451 |
|
| 452 |
0.06 Feb 29, 2008 |
| 453 |
|
| 454 |
- Created separate manual for developing drivers (CHI::Driver::Development) |
| 455 |
- Made standard CHI driver tests easily available to external drivers |
| 456 |
- Fixed clear() in Memcached driver - RT #32859 - reported by Justin Ellison |
| 457 |
- Add size to set logs |
| 458 |
|
| 459 |
0.05 Jan 30, 2008 |
| 460 |
|
| 461 |
- Switched to Moose |
| 462 |
- Added maximum full path length check to File driver, mainly for MSWin32 |
| 463 |
- Added TODO to pod |
| 464 |
|
| 465 |
0.04 Jan 25, 2008 |
| 466 |
|
| 467 |
- Default unlink_on_exit to 0 for Cache::FastMmap to conform to the CHI API |
| 468 |
|
| 469 |
0.03 Jan 23, 2008 |
| 470 |
|
| 471 |
- ** Eliminated automatic namespace selection based on caller; namespace now defaults to |
| 472 |
'Default', as in Cache::Cache. |
| 473 |
- Added 5.6.0 requirement |
| 474 |
- Made Memcached test internal-only for now, since test success depends on presence and |
| 475 |
configuration of an external server |
| 476 |
- Changed README to generate from CHI.pm |
| 477 |
|
| 478 |
0.02 Jan 19, 2008 |
| 479 |
|
| 480 |
- Changed Multilevel-Single test to use a temporary root dir |
| 481 |
- Eliminated non-portable file permissions test |
| 482 |
- Concealed use of test package name (Foo::Bar) from PAUSE indexer |
| 483 |
|
| 484 |
0.01 Jan 15, 2008 |
| 485 |
|
| 486 |
- Initial version |