We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
memcached
1 parent 8434171 commit 7fd7afaCopy full SHA for 7fd7afa
src/Mutex.php
@@ -2,12 +2,13 @@
2
3
namespace Illuminated\Console;
4
5
+use Cache;
6
use Illuminate\Console\Command;
7
use NinjaMutex\Lock\FlockLock;
8
+use NinjaMutex\Lock\MemcachedLock;
9
use NinjaMutex\Lock\MySqlLock;
10
use NinjaMutex\Lock\PredisRedisLock;
11
use NinjaMutex\Mutex as Ninja;
-use NinjaMutex\MutexException;
12
use Redis;
13
14
class Mutex
@@ -37,7 +38,7 @@ private function strategy()
37
38
return new PredisRedisLock(Redis::connection());
39
40
case 'memcached':
- throw new MutexException('Strategy `memcached` is not implemented yet.');
41
+ return new MemcachedLock(Cache::getStore()->getMemcached());
42
43
case 'file':
44
default:
0 commit comments