swayok / alternative-laravel-cache

Replacements for Laravel's redis and file cache stores that properly implement tagging idea
MIT License
169 stars 26 forks source link

PHPRedis support? #12

Closed roberttolton closed 5 years ago

roberttolton commented 5 years ago

When trying to use this package with PHPRedis:

'client' => 'phpredis'

I get the error:

Argument 1 passed to Cache\Adapter\Predis\PredisCachePool::__construct() must be an instance of Predis\ClientInterface, instance of Redis given, called in /vagrant/vendor/swayok/alternative-laravel-cache/src/AlternativeLaravelCache/Store/AlternativeRedisCacheStore.php on line 27

Does this package support using PHPRedis, and if so, what's the correct configuration?

swayok commented 5 years ago

Hi. I have yet to add support for phpredis. Currently it won't work. As for estimation I cannot give any date right now. Too overloaded =(

brazenvoid commented 5 years ago

Please add support, phpredis is the way to go considering Laravel 6 is also actively endorsing it now.

swayok commented 5 years ago

@brazenvoid @roberttolton - Version 5.4.10 now supports PHPRedis. Tests are ok, also tested it on dev version of my project and it seems like there are no problems.