Skip to content

v3.0.0

Choose a tag to compare

@whitfin whitfin released this 20 Feb 03:37

Cachex v3.0.0 contains many breaking changes to make way to make improvements and new features to the library. Please see the migration guide for a list of all breaking changes.

Fixes:

  • Corrected an issue ignoring invalid Hooks
  • Corrected an issue with timeouts being ignored on asynchronous hooks
  • Corrected several issues with statistics gathering
  • Corrected several documentation issues

Improvements:

  • Added a new amount argument to the incr/4 and decr/4 signatures
  • Added a new explicit fetch/4 signature
  • Added a new put_many/3 signature to allow batch writes
  • Added a new parent spec module to control global functions
  • Added the ability to whitelist actions to listen on inside Hooks
  • Enabled complex cache streaming using match specifications
  • Integrated @unsafe to remove internal macros
  • Introduced synchronized fallbacks to optimize reactive caches
  • Janitors are now enabled by default
  • Migrated Hook options into the module behaviour
  • Migrated set/4 to put/4 and deprecated set/4
  • Normalized statistics gathered by Cachex.Stats
  • Proactive cache warming via Cachex.Warmer
  • Replaced internal state with records rather than maps
  • Replaced options with easier to understand counterparts
  • Restructured to a new internal services tree
  • Surfaced all documentation in the generated docs
  • Updated all dependencies to their latest versions

Please make sure to file any issues found and they'll be addressed as soon as possible!