Releases: tedious/Stash
v0.12.2: Stability and Efficiency Release
This backwards compatible release contains a number of feature and stability improvements, particularly for users of HHVM, Memcache on AWS, or the Redis drivers.
- Added an alternative format than native PHP for the Filesystem Driver using the "encoder" option.
- Improved performance of Filesystem clear operations.
- Better commenting on files generated by Filesystem driver.
- Added work around for HHVM APCIterator bug.
- Improved Redis error handling in the event of a lost or disconnected server.
- Improved Redis and Memcached persistent connection support.
- Added support for AWS autodiscovery functionality in Memcached.
- Refactored PDO and SQLite "isAvailable" functions to prevent notices when the PDO extension is not present.
- Docblock and commenting improvements.
- Updated dependency versions (only affects development code).
v0.12.1: The Refactoring
This release is designed specifically to make integrating, extending and developing Stash easier. Although there have been some API additions, the bulk of the work is behind the scenes. That being said we've pushed in a few BC breaks that we've been meaning to make for awhile, so please review the changelog carefully (especially if you have custom drivers or specialized code for initializing them).
Major Updates:
- Full HHVM Support
- Removed xcache experimental driver.
- Removed PEAR Support
- Internal Improvements- DocBlock, Explicitly Defined Variables, Commenting.
- Enforcement of code standards in test suite.
- FileSystem - Improved Storage and Retrieval
- Memcache - Altered subdrivers constructors and initialization.
- SQLite - Reduced duplicate code amongst PDO subdrivers.
- Updated Test Suite to make it simple to run again custom Pool or Item objects other than the build in ones.
- Redis and Memcache constructors now take both forms (associative array or indexed array) when setting server configuration. Originally Memcache accepted an indexed list of settings while Redis expected an associative array.
API Changes:
- Removed constructor requirements from DriverInterface and added setOptions to replace it. Please note this means all drivers no longer take their options through the constructor, but expect them through the setOptions method.
- Replaced "Item->setDriver" with "Item->setPool" function. This should have no effect on typical consumers of this library but may effect those extending the Item or Pool class.
- Renamed Drivers class to DriversList to prevent confusion when talking about "Drivers".
- Added DriversList::getAllDrivers which returns an unfiltered list of registered drivers.
- Added DriversList::getAvailableDrivers to replace the existing DriversList::getDrivers, which is now deprecated.
- Added "setDriver(DriverInterface $driver)" and "setKey($key, $namespace = null)" functions to the Item Interface. These functions are used by Pool to initialize the Item class.
- Added "setNamespace($namespace = null)" and "getNamespace()" functions to the Pool class for.
- Added "getCreation()" and "getExpiration()" functions to the Item class.
- Added internal function Utilities::checkFileSystemPermissions.
- Moved Item::SP_* Constants to new Invalidation class and Deprecated the existing Item::SP_* constants.
- "PRECOMPUTE" is now the default method for dealing with stale data.
v0.11.6: Opcode Cache Bugfix
This release deals with changes between the APC and Opcode Caching system in PHP 5.4, specifically how opcode caches get invalidated. As of this release the Filesystem Driver explicitly invalidates the opcode cache for the files it creates or updates, preventing PHP from including an older version of it's data.
v0.11.5 OSX Bugfix Release
This release takes care of a small bug that occurs when running on OSX. This bug was caused by improper checking of the operating system, which was causing a Windows work around designed to limit filename length to kick in when it wasn't needed.
v0.11.4 Bugfix
Corrected a bug with APC where the max ttl would end up being used where it shouldn't have been.
v0.11.3 Minor Update, Bugfix and Performance
This update includes a few minor performance enhancements as well as a bug fix for the Ephemeral driver.
v0.11.2 Bug Fix Release
This is the first bug release of the 0.11 line, so if you are updating from an older version please see the 0.11 notes.
- Fixed Bug which prevented some file based caches from purging or flushing on Windows based systems.
- Fixed Bug in the Filesystem cache which caused a fatal error when certain keys were used.
v0.11.1 - Logging, PSR Formatting, and new Interfaces
This represents the first backwards compatibility break since v0.10.1 about one year ago. These are detailed in the changelog, but for the most part will be minor tweaks for a small amount of users.
One of the biggest additions is a new set of Interfaces. This will allow developers to type check for the interfaces, rather than the class type, which should in turn allow developers to create custom Pool or Item classes when needed. This should also make the future addition of PSR-5 support a bit easier.
Another useful addition in this release is logging support. By using PSR-3 compliant logging libraries, such as monolog, developers can now get a much better look at what's going on inside of Stash and admins can see when errors are occurring with their underlying cache systems.