Skip to content

Releases: swayok/alternative-laravel-cache

Updated minimal versions of dependencies

22 Sep 18:17
Compare
Choose a tag to compare
6.1.17

Merge remote-tracking branch 'origin/master'

Cache keys prefixing disabling

25 Aug 13:04
4916c08
Compare
Choose a tag to compare

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

12 Mar 19:45
Compare
Choose a tag to compare

Note: It is still compatible with previous versions of Laravel.

Fixed default cache duration

13 Dec 17:23
Compare
Choose a tag to compare

Fixed connecting to store to set logger

06 Oct 16:13
Compare
Choose a tag to compare

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

24 Jul 06:37
Compare
Choose a tag to compare

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

08 May 13:27
ad4b02e
Compare
Choose a tag to compare

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

16 Mar 10:57
Compare
Choose a tag to compare
  • 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

29 Oct 20:14
Compare
Choose a tag to compare
  • AlternativeCacheStore::getHierarchySeparator() now does not create connection to detect hierarchy separator (thanks to @dciprian-petrisor)
  • AlternativeHierarchialFileCacheStore, AlternativeRedisCacheStore and AlternativeMemcachedCacheStore 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);

AlternativeTaggedCache methods put(), putMany() and forever() now have returns

03 Oct 19:28
40d72d0
Compare
Choose a tag to compare