You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am doing some non-traditional stuff with caching and so I found out that the RedisJournal object always gets the autowired (default) redis client instead of the one from it's connection:
Also because of this the extension is not working when there is no connection named default because the journal is missing autowired client:
Fatal error: Uncaught Nette\DI\ServiceCreationException: Service 'redis.connection.xxx.journal' (type of Contributte\Redis\Caching\RedisJournal): Service of type Predis\ClientInterface required by $client in RedisJournal::__construct() not found. Did you add it to configuration file? in /app/vendor/nette/di/src/DI/Resolver.php:635
I have fixed this issue few days ago. Take a look at configuration in PR #47 , journal now does not require any autowired client – always uses correct client definition by name
I am doing some non-traditional stuff with caching and so I found out that the
RedisJournal
object always gets the autowired (default) redis client instead of the one from it's connection:It's a pretty straightforward fix, but I am not sure if it is really a bug or an intended behaviour.
The text was updated successfully, but these errors were encountered: