Gdn_Cache::makeKey PHP Method

makeKey() public method

public makeKey ( $Key, $Options )
    public function makeKey($Key, $Options)
    {
        $UsePrefix = !val(Gdn_Cache::FEATURE_NOPREFIX, $Options, false);
        $ForcePrefix = val(Gdn_Cache::FEATURE_FORCEPREFIX, $Options, null);
        $Prefix = '';
        if ($UsePrefix) {
            $Prefix = $this->getPrefix($ForcePrefix) . '!';
        }
        if (is_array($Key)) {
            $Result = array();
            foreach ($Key as $i => $v) {
                $Result[$i] = $Prefix . $v;
            }
        } else {
            $Result = $Prefix . $Key;
        }
        return $Result;
    }