40 private $cacheTags = [];
56 $cacheId =
'connection_config_cache',
61 $this->cacheId = $cacheId;
72 if (!isset($this->data[
'checkout'])) {
75 return $this->data[
'checkout'];
84 $data = $this->cache->load($this->cacheId);
85 if (
false === $data) {
86 $singleQuery = $this->config->getConnectionName(
'checkout_setup') ==
'default' ? true :
false;
87 $data[
'checkout'] = $singleQuery;
88 $this->cache->save($this->serializer->serialize($data), $this->cacheId, $this->cacheTags);
90 $data = $this->serializer->unserialize($data);
101 public function merge(array $config)
103 $this->data = array_replace_recursive($this->data,
$config);
__construct(ConfigInterface $config, CacheInterface $cache, $cacheId='connection_config_cache', SerializerInterface $serializer=null)