diff --git a/Resources/doc/config.rst b/Resources/doc/config.rst index cfc3aa01..0a81c71a 100644 --- a/Resources/doc/config.rst +++ b/Resources/doc/config.rst @@ -67,7 +67,7 @@ Sample Configuration server: '%env(resolve:MONGODB_URL)%' If you wish to use memcache to cache your metadata, you need to configure the -``Memcache`` instance; for example, you can do the following: +``Memcached`` instance; for example, you can do the following: .. configuration-block:: @@ -85,11 +85,11 @@ If you wish to use memcache to cache your metadata, you need to configure the mappings: AcmeDemoBundle: ~ metadata_cache_driver: - type: memcache + type: memcached class: Symfony\Component\Cache\Adapter\MemcachedAdapter host: localhost port: 11211 - instance_class: Memcache + instance_class: Memcached .. code-block:: xml @@ -104,11 +104,11 @@ If you wish to use memcache to cache your metadata, you need to configure the - - Doctrine\Common\Cache\MemcacheCache + + Symfony\Component\Cache\Adapter\MemcachedAdapter localhost 11211 - Memcache + Memcached @@ -330,7 +330,7 @@ following syntax: dm1: connection: conn1 database: db1 - metadata_cache_driver: xcache + metadata_cache_driver: array mappings: AcmeDemoBundle: ~ dm2: @@ -363,7 +363,7 @@ following syntax: - + diff --git a/Tests/DependencyInjection/AbstractMongoDBExtensionTestCase.php b/Tests/DependencyInjection/AbstractMongoDBExtensionTestCase.php index 440d78e1..29175548 100644 --- a/Tests/DependencyInjection/AbstractMongoDBExtensionTestCase.php +++ b/Tests/DependencyInjection/AbstractMongoDBExtensionTestCase.php @@ -15,6 +15,9 @@ use Doctrine\ODM\MongoDB\Mapping\Driver\AttributeDriver; use MongoDB\Client; use PHPUnit\Framework\AssertionFailedError; +use Symfony\Component\Cache\Adapter\ApcuAdapter; +use Symfony\Component\Cache\Adapter\ArrayAdapter; +use Symfony\Component\Cache\Adapter\MemcachedAdapter; use Symfony\Component\DependencyInjection\Container; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Definition;