framework/web/UrlManager.php
protected function setBuiltRulesCache($ruleDeclarations, $builtRules)
    {
        if (!$this->cache instanceof CacheInterface) {
            return false;
        }

        return $this->cache->set([$this->cacheKey, $this->ruleConfig, $ruleDeclarations], $builtRules);
    }
protected function setBuiltRulesCache($ruleDeclarations, $builtRules)
    {
        if (!$this->cache instanceof CacheInterface) {
            return false;
        }

        return $this->cache->set([$this->cacheKey, $this->ruleConfig, $ruleDeclarations], $builtRules);
    }
protected function setBuiltRulesCache ( $ ruleDeclarations , $ builtRules ) { if ( ! $ this -> cache instanceof CacheInterface ) { return false ; } return $ this -> cache -> set ( [ $ this -> cacheKey , $ this -> ruleConfig , $ ruleDeclarations ] , $ builtRules ) ; }
Stores $builtRules to cache, using $rulesDeclaration as a part of cache key.

@param array $ruleDeclarations the rule declarations. Each array element represents a single rule declaration.
Please refer to [[rules]] for the acceptable rule formats.
@param UrlRuleInterface[] $builtRules the rule objects built from the given rule declarations.
@return bool whether the value is successfully stored into cache
@since 2.0.14
Stores $builtRules to cache using $rulesDeclaration as a part of cache key .