在 Symfony4 中,我使用以下配置进行学说 apcu 缓存:
doctrine:
orm:
auto_mapping: true
auto_generate_proxy_classes: false
metadata_cache_driver: apcu
query_cache_driver: apcu
result_cache_driver: apcu
升级到 Symfony5 后出现错误:
为实体管理器“default”中的缓存“metadata_cache”配置的“apc”类型的未知缓存。
将其更改为以下配置时,它可以工作:
doctrine:
orm:
auto_mapping: true
auto_generate_proxy_classes: false
metadata_cache_driver:
type: pool
pool: doctrine.system_cache_pool
query_cache_driver:
type: pool
pool: doctrine.system_cache_pool
result_cache_driver:
type: pool
pool: doctrine.result_cache_pool
但是我现在使用什么样的缓存?我怎样才能将它切换到 apcu?