@@ -202,7 +202,7 @@ nettrine.orm:
202202 managers:
203203 default:
204204 # Create cache manually
205- defaultCache: App\CacheService(%tempDir%/cache/orm)
205+ defaultCache: App\CacheService(%tempDir%/cache/doctrine/ orm)
206206
207207 # Use registered cache service
208208 defaultCache: @cacheService
@@ -214,10 +214,10 @@ Or you can define each cache separately.
214214nettrine.orm:
215215 managers:
216216 default:
217- queryCache: App\CacheService(%tempDir%/cache/orm- query)
218- resultCache: App\CacheService(%tempDir%/cache/orm- result)
219- hydrationCache: App\CacheService(%tempDir%/cache/orm- hydration)
220- metadataCache: App\CacheService(%tempDir%/cache/orm- metadata)
217+ queryCache: App\CacheService(%tempDir%/cache/doctrine/ orm/ query)
218+ resultCache: App\CacheService(%tempDir%/cache/doctrine/ orm/ result)
219+ hydrationCache: App\CacheService(%tempDir%/cache/doctrine/ orm/ hydration)
220+ metadataCache: App\CacheService(%tempDir%/cache/doctrine/ orm/ metadata)
221221```
222222
223223Second level cache is a bit different. Be sure you know what you are doing, lear more in official [ Doctrine documentation] ( https://www.doctrine-project.org/projects/doctrine-orm/en/3.3/reference/second-level-cache.html ) .
@@ -228,7 +228,7 @@ nettrine.orm:
228228 default:
229229 secondLevelCache:
230230 enable: true
231- cache: App\CacheService(%tempDir%/cache/orm- slc)
231+ cache: App\CacheService(%tempDir%/cache/doctrine/ orm/ slc)
232232 logger: App\LoggerService()
233233 regions:
234234 region1:
@@ -246,13 +246,13 @@ nettrine.orm:
246246 managers:
247247 default:
248248 # Use default cache
249- defaultCache: Symfony\Component\Cache\Adapter\FilesystemAdapter(namespace: doctrine- orm, defaultLifetime: 0, directory: %tempDir%/cache/orm)
249+ defaultCache: Symfony\Component\Cache\Adapter\FilesystemAdapter(namespace: orm, defaultLifetime: 0, directory: %tempDir%/cache/doctrine /orm)
250250
251251 # Or use separate caches
252- queryCache: Symfony\Component\Cache\Adapter\FilesystemAdapter(namespace: doctrine- orm-query, defaultLifetime: 0, directory: %tempDir%/cache/orm- query)
253- resultCache: Symfony\Component\Cache\Adapter\FilesystemAdapter(namespace: doctrine- orm-result, defaultLifetime: 0, directory: %tempDir%/cache/orm- result)
254- hydrationCache: Symfony\Component\Cache\Adapter\FilesystemAdapter(namespace: doctrine- orm-hydration, defaultLifetime: 0, directory: %tempDir%/cache/orm- hydration)
255- metadataCache: Symfony\Component\Cache\Adapter\FilesystemAdapter(namespace: doctrine- orm-metadata, defaultLifetime: 0, directory: %tempDir%/cache/orm- metadata)
252+ queryCache: Symfony\Component\Cache\Adapter\FilesystemAdapter(namespace: orm-query, defaultLifetime: 0, directory: %tempDir%/cache/doctrine/ orm/ query)
253+ resultCache: Symfony\Component\Cache\Adapter\FilesystemAdapter(namespace: orm-result, defaultLifetime: 0, directory: %tempDir%/cache/doctrine/ orm/ result)
254+ hydrationCache: Symfony\Component\Cache\Adapter\FilesystemAdapter(namespace: orm-hydration, defaultLifetime: 0, directory: %tempDir%/cache/doctrine/ orm/ hydration)
255+ metadataCache: Symfony\Component\Cache\Adapter\FilesystemAdapter(namespace: orm-metadata, defaultLifetime: 0, directory: %tempDir%/cache/doctrine/ orm/ metadata)
256256```
257257
258258If you like [ ` nette/caching ` ] ( https://github.com/nette/caching ) you can use it as well. Be aware that ` nette/caching ` is not PSR-6 + PSR-16 compatible, you need ` contributte/psr16-caching ` .
@@ -264,7 +264,7 @@ nettrine.orm:
264264 defaultCache: Contributte\Psr6\CachePool(
265265 Nette\Caching\Cache(
266266 Nette\Caching\Storages\FileStorage(%tempDir%/cache)
267- doctrine/dbal
267+ doctrine/orm
268268 )
269269 )
270270```
0 commit comments