src/Charcoal/Cache/CacheConfig.php
public function setPrefix($prefix)
    {
        if (!is_string($prefix)) {
            throw new InvalidArgumentException(
                'Prefix must be a string'
            );
        }

        /** @see \Stash\Pool\::setNamespace */
        if (!ctype_alnum($prefix)) {
            throw new InvalidArgumentException(
                'Prefix must be alphanumeric'
            );
        }

        $this->prefix = $prefix;
        return $this;
    }
public function setPrefix($prefix)
    {
        if (!is_string($prefix)) {
            throw new InvalidArgumentException(
                'Prefix must be a string'
            );
        }

        /** @see \Stash\Pool\::setNamespace */
        if (!ctype_alnum($prefix)) {
            throw new InvalidArgumentException(
                'Prefix must be alphanumeric'
            );
        }

        $this->prefix = $prefix;
        return $this;
    }
public function setPrefix ( $ prefix ) { if ( ! is_string ( $ prefix ) ) { throw new InvalidArgumentException ( 'Prefix must be a string' ) ; } /** @see \Stash\Pool\::setNamespace */ if ( ! ctype_alnum ( $ prefix ) ) { throw new InvalidArgumentException ( 'Prefix must be alphanumeric' ) ; } $ this -> prefix = $ prefix ; return $ this ; }
Set the cache namespace.

@param  string $prefix The cache prefix (or namespace).
@throws InvalidArgumentException If the prefix is not a string.
@return CacheConfig Chainable
Set the cache namespace .