Skip to content

Commit 9f3a5e1

Browse files
committed
added doc for cache service type
1 parent b81bced commit 9f3a5e1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

reference/configuration/doctrine.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Configuration Reference
4848
mappings: # Required
4949
AcmeHelloBundle: ~
5050
class_metadata_factory_name: Doctrine\ORM\Mapping\ClassMetadataFactory
51-
# All cache drivers have to be array, apc, xcache or memcache
51+
# All cache drivers have to be array, apc, xcache, memcache or service
5252
metadata_cache_driver: array
5353
query_cache_driver: array
5454
result_cache_driver:
@@ -152,8 +152,8 @@ certain classes, but those are for very advanced use-cases only.
152152
Caching Drivers
153153
~~~~~~~~~~~~~~~
154154
155-
For the caching drivers you can specify the values "array", "apc", "memcache"
156-
or "xcache".
155+
For the caching drivers you can specify the values "array", "apc", "memcache",
156+
"xcache" or "service".
157157
158158
The following example shows an overview of the caching configurations:
159159
@@ -163,7 +163,9 @@ The following example shows an overview of the caching configurations:
163163
orm:
164164
auto_mapping: true
165165
metadata_cache_driver: apc
166-
query_cache_driver: xcache
166+
query_cache_driver:
167+
type: service
168+
id: my_doctrine_common_cache_service
167169
result_cache_driver:
168170
type: memcache
169171
host: localhost

0 commit comments

Comments
 (0)