| Current File : /home/jvzmxxx/wiki1/extensions/Flow/includes/Repository/TreeCacheKey.php |
<?php
namespace Flow\Repository;
use Flow\Container;
use Flow\Model\UUID;
class TreeCacheKey {
/**
* Generate the following cache keys
* flow:tree:subtree|parent|rootpath:<object id>:<cache version>
* For example:
* flow:tree:parent:srkbd1u0mzz81x51:4.7
*
* @param string $treeType
* @param UUID $id
* @return string
*/
public static function build( $treeType, UUID $id ) {
return wfForeignMemcKey( 'flow', '', 'tree', $treeType, $id->getAlphadecimal(), Container::get( 'cache.version' ) );
}
}