di->setShared($this->serviceName, function () { $config = $this->getShared('config'); $frontend = new IgbinaryFrontend([ 'lifetime' => $config->redis->lifetime, ]); return new RedisBackend($frontend, [ 'host' => $config->redis->host, 'port' => $config->redis->port, 'auth' => $config->redis->auth, 'index' => $config->redis->index, ]); }); } }