Skip to content

Commit

Permalink
Fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Dec 19, 2023
1 parent 7af4dd3 commit 09d6795
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Resources/doc/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::

Expand All @@ -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
Expand All @@ -104,11 +104,11 @@ If you wish to use memcache to cache your metadata, you need to configure the
<doctrine_mongodb:config default-database="hello_%kernel.environment%">
<doctrine_mongodb:document-manager id="default">
<doctrine_mongodb:mapping name="AcmeDemoBundle" />
<doctrine_mongodb:metadata-cache-driver type="memcache">
<doctrine_mongodb:class>Doctrine\Common\Cache\MemcacheCache</doctrine_mongodb:class>
<doctrine_mongodb:metadata-cache-driver type="memcached">
<doctrine_mongodb:class>Symfony\Component\Cache\Adapter\MemcachedAdapter</doctrine_mongodb:class>
<doctrine_mongodb:host>localhost</doctrine_mongodb:host>
<doctrine_mongodb:port>11211</doctrine_mongodb:port>
<doctrine_mongodb:instance-class>Memcache</doctrine_mongodb:instance-class>
<doctrine_mongodb:instance-class>Memcached</doctrine_mongodb:instance-class>
</doctrine_mongodb:metadata-cache-driver>
</doctrine_mongodb:document-manager>
<doctrine_mongodb:connection id="default" server="mongodb://localhost:27017">
Expand Down Expand Up @@ -330,7 +330,7 @@ following syntax:
dm1:
connection: conn1
database: db1
metadata_cache_driver: xcache
metadata_cache_driver: array
mappings:
AcmeDemoBundle: ~
dm2:
Expand Down Expand Up @@ -363,7 +363,7 @@ following syntax:
<doctrine_mongodb:options>
</doctrine_mongodb:options>
</doctrine_mongodb:connection>
<doctrine_mongodb:document-manager id="dm1" metadata-cache-driver="xcache" connection="conn1" database="db1">
<doctrine_mongodb:document-manager id="dm1" metadata-cache-driver="array" connection="conn1" database="db1">
<doctrine_mongodb:mapping name="AcmeDemoBundle" />
</doctrine_mongodb:document-manager>
<doctrine_mongodb:document-manager id="dm2" connection="conn2" database="db2">
Expand Down

0 comments on commit 09d6795

Please sign in to comment.