public static function encode(
        $cacheVersion = WurflConstants::API_NAMESPACE,
        $namespace = AbstractAdapter::DEFAULT_NAMESPACE,
        $cacheId = ''
    ) {
        $cacheId = implode(':', array($cacheVersion, $namespace, $cacheId));

        return hash('sha512', $cacheId);
    }
public static function encode(
        $cacheVersion = WurflConstants::API_NAMESPACE,
        $namespace = AbstractAdapter::DEFAULT_NAMESPACE,
        $cacheId = ''
    ) {
        $cacheId = implode(':', array($cacheVersion, $namespace, $cacheId));

        return hash('sha512', $cacheId);
    }
public static function encode ( $ cacheVersion = WurflConstants :: API_NAMESPACE , $ namespace = AbstractAdapter :: DEFAULT_NAMESPACE , $ cacheId = '' ) { $ cacheId = implode ( ':' , array ( $ cacheVersion , $ namespace , $ cacheId ) ) ; return hash ( 'sha512' , $ cacheId ) ; }
Encode the Object Id using the Persistence Identifier

@param string $cacheVersion
@param string $namespace
@param string $cacheId

@return string $input with the given $namespace as a prefix
Encode the Object Id using the Persistence Identifier