File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 13
13
14
14
use PHPUnit \Framework \TestCase ;
15
15
use Symfony \Component \Cache \Adapter \AbstractAdapter ;
16
+ use Symfony \Component \Cache \Adapter \MemcachedAdapter ;
16
17
use Symfony \Component \Cache \Traits \RedisProxy ;
17
18
use Symfony \Component \Lock \Store \FlockStore ;
18
19
use Symfony \Component \Lock \Store \MemcachedStore ;
@@ -56,7 +57,7 @@ public function validConnections()
56
57
if (\extension_loaded ('sysvsem ' )) {
57
58
yield ['semaphore ' , SemaphoreStore::class];
58
59
}
59
- if (class_exists (\Memcached ::class) && class_exists (AbstractAdapter::class )) {
60
+ if (class_exists (AbstractAdapter ::class) && MemcachedAdapter:: isSupported ( )) {
60
61
yield ['memcached://server.com ' , MemcachedStore::class];
61
62
yield ['memcached:?host[localhost]&host[localhost:12345] ' , MemcachedStore::class];
62
63
}
You can’t perform that action at this time.
0 commit comments