We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f82641 commit 7bebd79Copy full SHA for 7bebd79
src/Mutex.php
@@ -35,7 +35,7 @@ public function getStrategy()
35
return new MySqlLock(env('DB_USERNAME'), env('DB_PASSWORD'), env('DB_HOST'));
36
37
case 'redis':
38
- return new PredisRedisLock(Redis::connection()->client());
+ return new PredisRedisLock($this->getRedisClient());
39
40
case 'memcached':
41
return new MemcachedLock(Cache::getStore()->getMemcached());
@@ -46,6 +46,11 @@ public function getStrategy()
46
}
47
48
49
+ public function getRedisClient()
50
+ {
51
+ return Redis::connection()->client();
52
+ }
53
+
54
public function __call($method, $parameters)
55
{
56
return call_user_func_array([$this->ninja, $method], $parameters);
0 commit comments