doctrine-orm icon indicating copy to clipboard operation
doctrine-orm copied to clipboard

Impossible to set own second level cache

Open paveltizek opened this issue 3 years ago • 1 comments

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

paveltizek avatar Jun 27 '21 16:06 paveltizek

Yep, that's seems correct. Will be fixed in some new version.

f3l1x avatar Nov 02 '21 17:11 f3l1x