Sets the hyphenator cache for all registered token fixes (that require one).

@param Cache $cache A hyphenator cache instance.
163695
public function update_hyphenator_cache( Cache $cache ) {
		foreach ( $this->token_fixes as $fix ) {
			if ( $fix instanceof Hyphenate_Fix ) {
				$fix->set_hyphenator_cache( $cache );
			}
		}
	}
158340
public function setPrefix($prefix)
    {
        $this->prefix = $prefix;
        if (!StringHelper::endsWith(".", $prefix)) {
            $this->prefix .= ".";
        }
    }
343092
public static function createFromCache(array $cache): self
    {
        /** @var self $definition */
        $definition = (new \ReflectionClass(static::class))->newInstanceWithoutConstructor();

        [
            $definition->name,
            $definition->methods,
            $definition->segments,
            $definition->patterns,
            $definition->handler,
            $definition->format,
            $definition->parameterNames,
        ] = $cache;

        return $definition;
    }
1317017
public function setCaching($caching) {
    $this->view->caching = $caching ? \Smarty::CACHING_LIFETIME_CURRENT : \Smarty::CACHING_OFF;
  }
707724
private function setCache($singular, $plural = null)
    {
        $singular = Utf8String::strtolower($singular);

        if ($plural === null) {
            $plural = $singular;
        } else {
            $plural = Utf8String::strtolower($plural);
        }

        $this->cache[$singular] = $plural;
    }
401782
public function setStatusCache(StringFrontend $cache)
    {
        $this->statusCache = $cache;
        $backend = $this->statusCache->getBackend();
        if (is_callable(['initializeObject', $backend])) {
            $backend->initializeObject();
        }
    }
772788
public function SetLevel2CacheProvider(ICache $cache, $lockFilePath = "")
	{
		$this->_level2Cache = $cache;
		$this->LockFilePath = $lockFilePath;
	}
1363189
function setCache($cache,$expire=3600)
	{
		$this->cache = $cache;
		$this->if_cache = true;
		$this->expire = $expire;
	}
259118
public function remove($key)
    {
        $key = strtr(strtolower($key), '_', '-');

        unset($this->headers[$key]);

        if ('cache-control' === $key) {
            $this->cacheControl = array();
        }
    }
812914
public function setCache($cache, $namespace = null)
    {
        if($cache && ClassRegistryCache::isSupported())
        {
            $this->__registry = new ClassRegistryCache();

            if($namespace) {
                $this->__registry->setNamespace($namespace);
            }
        }
        else
        {
            if(!$this->__registry instanceof ClassRegistry) {
                $this->__registry = new ClassRegistry();
            }
        }

        return $this;
    }
775261
public function setCache(FrontendInterface $cache)
    {
        parent::setCache($cache);

        $pathHash = substr(md5($this->environmentConfiguration->getApplicationIdentifier() . $cache->getIdentifier()), 0, 12);
        $this->identifierPrefix = 'Flow_' . $pathHash . '_';
    }
595798
protected function updateCacheControlHeader(): void
    {
        $parts = [];
        ksort($this->container);
        foreach ($this->container as $key => $value) {
            if (true === $value) {
                $parts[] = $key;
            } else {
                if (preg_match('#[^a-zA-Z0-9._-]#', (string)$value)) {
                    $value = '"' . $value . '"';
                }
                $parts[] = "$key=$value";
            }
        }
        if (\count($parts)) {
            $this->response->setHeader('Cache-Control', implode(', ', $parts));
        }
    }
1251714
public function setCaching($caching) {
        if(is_object($caching)) {
            $this->cacheObj = $caching;
            $this->cacheEnabled = true;
        }
        return $this;
    }
334433
public function addCache(AbstractCacheAdapterInterface $cache)
  {
    $this->caches[\strtolower($cache->getDriver())] = $cache;

    return $this;
  }
100618
protected static function fixDynModulesCache($cache)
    {
        $result = [];
        foreach ($cache as $numMid => $info) {
            $expParentUid = $parentNumber = $info['parent_uid'];
            while (!empty($parentNumber)) {
                //if (preg_match('/\{\d+\}/', $parentNumber, $matches) == 0) break;
                //$idx = $matches[0];
                //if (empty($cache[$idx]['parent_uid'])) break;
                //else $parentNumber = $cache[$idx]['parent_uid'];

                if (empty($cache[$parentNumber]['parent_uid'])) break;
                else $parentNumber = $cache[$parentNumber]['parent_uid'];
                $expParentUid = $parentNumber . '/' . $expParentUid;
            }

            $cache[$numMid]['parent_uid_expanded'] = $expParentUid;
            $cache[$numMid]['module_uid_expanded'] = (empty($expParentUid) ? '' : ($expParentUid . '/')) . $numMid;
            $idx = static::fromnumberModuleUniqueId($cache[$numMid]['module_uid_expanded']);
            $result[$idx] = $cache[$numMid];
        }
        return $result;
    }
184658
protected function instantiateCache(Cache $cache = null)
    {
        if (is_null($this->cache) || ! is_null($cache)) {
            $this->cache = ! is_null($cache)
                ? $cache
                : new Cache($this->config);
        }

        return $this->cache;
    }
1198875
public function storeCache(array $cache)
    {
        if ($this->store === null) {
            register_shutdown_function([$this, 'saveCacheFile']);
        }

        $this->store = $cache;
    }