Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to set own second level cache #94

Open
paveltizek opened this issue Jun 27, 2021 · 1 comment
Open

Impossible to set own second level cache #94

paveltizek opened this issue Jun 27, 2021 · 1 comment
Labels

Comments

@paveltizek
Copy link

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 paveltizek changed the title Impossible to set second level cache Impossible to set own second level cache Jun 27, 2021
@f3l1x f3l1x added the feature label Nov 2, 2021
@f3l1x
Copy link
Member

f3l1x commented Nov 2, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants