Releases: swayok/alternative-laravel-cache
composer.json cleanup
Removed some packages which requried by other packages from composer
Added support for both flysystem v1 and v3 in file-based cache drivers
Added support for file cache adapter in Laravel 9 (flysystem v3);
Service provider decides which flysystem classes to use based on installed version of flysystem.
I've tested on Laravel 8 (v1) and Laravel 9 (v3) and it seems to be working fine.
Support for Laravel 9
Added Laravel 9 as supported.
Cannot test it now but lib will work at least with redis. Report issue if something goes wrong.
Support for PHP 8.1
Added support for PHP 8.1 in composer.json
Added support for RedisCluster when using phpredis extension
Updated RedisCacheStore
implementation to allow for RedisCluster
when using phpredis
extension.
Thanks to @J5Dev for this update!
Restored support for Laravel <= 7
- Cache locks support moved to separate classes (with
WithLocks
suffix). - Service Provider now detects if locks are supported and creates different pools depending on this flag. This way package can be used in Laravel <= 7.
- Added simple tests for locks
Added memcached support. Refactored tests. Moved to PSR-4.
- Added
memcached
support. - PSR-0 replaced by PSR-4 in composer and also classes moved from
/src
to/
. This should not break anything. - Refactored tests so that it is now possible to run them from inside package (earlier I used a real project to run tests).
Cache locks
- Minimum PHP version now is 7.2.5.
- All drivers added to
require-dev
incomposer.json
. For production you still need torequire
specific package. - Added support for cache locks.
- Version upped to 6 to represent minimal suported Laravel version, Though it probably will still work in 5.* versions.
Thanks to @Malezha for these changes.
Laravel 8 support and suggests instead of requires
Updated composer.json:
- Added Laravel 8 support
- Cache drivers moved from "require" to "suggest" so that you can pick only those you will actually use
Fixed issue with Laravel scheduler
put
, putMany
and forever
methods now return values from parent::
calls (Thanks to @janich for the fix);