Skip to content

Commit 9406768

Browse files
committed
Readme: update cache example
1 parent 07ef232 commit 9406768

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.docs/README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Supported drivers:
186186
> Take a look at more information in official Doctrine documentation:
187187
> - https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/caching.html
188188
189-
A Doctrine can automatically cache result sets. The feature is optional though, and by default, no result set is cached.
189+
A Doctrine DBAL can automatically cache result sets. The feature is optional though, and by default, no result set is cached.
190190
You can enable the result cache by setting the `resultCache` configuration option to an instance of a cache driver.
191191

192192
> [!WARNING]
@@ -221,9 +221,7 @@ nettrine.dbal:
221221
connections:
222222
default:
223223
# Creat cache manually
224-
resultCache: Symfony\Component\Cache\Adapter\Psr16Adapter(
225-
Symfony\Component\Cache\Adapter\FilesystemAdapter(%tempDir%/cache/dbal)
226-
)
224+
resultCache: Symfony\Component\Cache\Adapter\FilesystemAdapter(namespace: doctrine-dbal, defaultLifetime: 0, directory: %tempDir%/cache/dbal)
227225
228226
# Use registered cache service
229227
resultCache: @cacheFilesystem

0 commit comments

Comments
 (0)