Releases: swayok/alternative-laravel-cache
Releases · swayok/alternative-laravel-cache
Updated minimal versions of dependencies
Cache keys prefixing disabling
Now prefix
option can be set to empty string to disable prefixes:
'altfile' => [
'driver' => 'altfile',
...
'prefix' => '',
],
Thanks to Macek007 for this fix.
Laravel 11 Support
Note: It is still compatible with previous versions of Laravel.
Fixed default cache duration
Thanks to @iamvladshevchuk for report (#49)
Fixed connecting to store to set logger
In AlternativeCacheStoresServiceProvider
replaced $store->getWrappedConnection()->setLogger(app('log'))
by $store->setLogger($app->make('log')) which does not initiate a connection to store.
Added support for Stringable keys and tags
Keys and Tags now can be instances of classes that have __toString() method.
Thanks to code-distortion for report and PR.
Redis driver registration when using predis lib
Fixed redis driver registration when predis lib is used instead of php-redis extension.
Thanks to @bjhijmans for PR.
Conditional drivers registration, Laravel 10 support, refactoring
- Updated PHP requirements in composer to allow all versions since 7.2.5 (but actually version 7.4 is minimum because of other packages);
- Refactored service provider to register drivers only when required classes/interfaces exist;
- Updated to comply to PSR 12 code style;
- Added type hints where possible;
Laravel 9 supported.
Laravel 10 supported.
Refactoring and outdated code cleanup
AlternativeCacheStore::getHierarchySeparator()
now does not create connection to detect hierarchy separator (thanks to @dciprian-petrisor)AlternativeHierarchialFileCacheStore
,AlternativeRedisCacheStore
andAlternativeMemcachedCacheStore
now determine hierarchy separator explicitly;- Removed outdated code related to Laravel <= 5.6 (cache expected minutes for ttl, since 5.7 it expects seconds);
- Updated PHPDoc blocks;
- Minor refactoring and code cleanup;
- Refactored and fixed tests (used 1 as ttl for cache);