Commit 5d38146
committed
Allow for setting a cache namespace
If `cache_namespace` is set, `setNamespace` will be called on the resulting
cache instance if it is a Doctrine CacheProvider instance. Doctrine's
CacheProvider will take care of normalizing this call for various backends
based on its own rules.
$app->register(
new Dflydev\Silex\Provider\DoctrineOrm\DoctrineOrmServiceProvider,
array(
'orm.em.options' => array(
'cache_namespace' => 'appname_',
'metadata_cache' => 'apc',
'query_cache' => 'apc',
'mappings' => array(
array(),
),
),
)
);
Thanks to @asiermarques for this work.
Closes #15
Closes #161 parent 24be501 commit 5d38146
File tree
1 file changed
+8
-1
lines changed- src/Dflydev/Pimple/Provider/DoctrineOrm
1 file changed
+8
-1
lines changedLines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
195 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
196 | 203 | | |
197 | 204 | | |
198 | 205 | | |
| |||
0 commit comments