I am working on a project and I need to use memcached features to cache the queries and results.
I have followed the tutorial from this .
Do I need to use below code for each query?
->useQueryCache(true)
->useResultCache(true, 3600)
Is there any alternative like to setup somewhere in services
file or config
file?
如果您在Symfony应用程序中使用DoctrineBundle
,那么您当然可以通过configuration来为Doctrine配置Memcached缓存使用。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.