doctrine-orm
doctrine-orm copied to clipboard
Impossible to set own second level cache
Cannot set own cache configuration factory as service like this:
nettrine.orm.cache:
secondLevelCache: @redisCacheConfigurationFactory::create(%tempDir%)
services:
redisCacheConfigurationFactory: Eshop\Core\Cache\RedisCacheConfigurationFactory(%redis.host%, %redis.port%)
I have to create next service so working result is
services: redisCacheConfigurationFactory: Eshop\Core\Cache\RedisCacheConfigurationFactory(%redis.host%, %redis.port%) redisCacheConfiguration: @redisCacheConfigurationFactory::create(%tempDir%)
nettrine.orm.cache: secondLevelCache: @redisCacheConfiguration
Yep, that's seems correct. Will be fixed in some new version.