/** * Get the cache object with tags assigned, if applicable. * * @return \Cache\CacheManager */ protected function getCache() { $cache = $this->connection->getCacheManager()->driver($this->cacheDriver); return $this->cacheTags ? $cache->tags($this->cacheTags) : $cache; }