src/Utility/KeySaltingTrait.php
private function salted($key, $suffix = null)
    {
        $delimiter = ':';
        if (defined('static::DELIMITER')) {
            $delimiter = static::DELIMITER;
        }

        if (defined('static::PREFIX')) {
            $key = sprintf('%s%s%s', static::PREFIX, $delimiter, $key);
        }

        if ($suffix) {
            return sprintf('%s%s%s', $key, $delimiter, $suffix);
        }

        return $key;
    }
private function salted($key, $suffix = null)
    {
        $delimiter = ':';
        if (defined('static::DELIMITER')) {
            $delimiter = static::DELIMITER;
        }

        if (defined('static::PREFIX')) {
            $key = sprintf('%s%s%s', static::PREFIX, $delimiter, $key);
        }

        if ($suffix) {
            return sprintf('%s%s%s', $key, $delimiter, $suffix);
        }

        return $key;
    }
private function salted ( $ key , $ suffix = null ) { $ delimiter = ':' ; if ( defined ( 'static::DELIMITER' ) ) { $ delimiter = static :: DELIMITER ; } if ( defined ( 'static::PREFIX' ) ) { $ key = sprintf ( '%s%s%s' , static :: PREFIX , $ delimiter , $ key ) ; } if ( $ suffix ) { return sprintf ( '%s%s%s' , $ key , $ delimiter , $ suffix ) ; } return $ key ; }
Salt the cache key if a salt is provided.

@param string $key
@param string|null $suffix

@return string
Salt the cache key if a salt is provided .