有没有标准的方法来缓存学说对象?

Hap*_*per 5 php caching symfony doctrine-orm

假设我有很多具有很少改变的属性的对象.我不希望DB一直被点击以获取这些对象的数据.我能做什么?

Raf*_*ael 4

Doctrine2 提供查询结果缓存

缓存依赖于第三方缓存解决方案,例如 APC、Memcache 和 Xcache。Doctrine 提供了驱动程序来将它们集成到您的应用程序中。