public function __construct($cache_directory)
public function __construct($cache_directory)
Parameters
$cache_directory | ||
$name |
Return
this | //Implicit.// |
protected function getCache()Inherited
protected function getCache()
Inherited
Return
wild |
public function delete()
public function delete()
Return
wild |
protected function getHashKey($hash)Inherited
protected function getHashKey($hash)
Inherited
DivinerDiskCache
Convert a long-form hash key like ccbbaaaaaaaaaaaaaaaaaaaaaaaaaaaaN into a shortened directory form, like cc/bb/aaaaaaaaN. In conjunction with PhutilDirectoryKeyValueCache, this gives us nice directories inside .divinercache instead of a million hash files with huge names at the top level.
Parameters
$hash |
Return
wild |
public function getFileHashMap()
public function getFileHashMap()
Return
wild |
public function addFileHash($file_hash, $atom_hash)
public function addFileHash($file_hash, $atom_hash)
Parameters
$file_hash | ||
$atom_hash |
Return
wild |
public function fileHashExists($file_hash)
public function fileHashExists($file_hash)
Parameters
$file_hash |
Return
wild |
public function deleteFileHash($file_hash)
public function deleteFileHash($file_hash)
Parameters
$file_hash |
Return
wild |
public function getAtomMap()
public function getAtomMap()
Return
wild |
public function getAtom($atom_hash)
public function getAtom($atom_hash)
Parameters
$atom_hash |
Return
wild |
public function addAtom($atom)
public function addAtom($atom)
Parameters
array | $atom |
Return
wild |
public function deleteAtomHash($atom_hash)
public function deleteAtomHash($atom_hash)
Parameters
$atom_hash |
Return
wild |
public function saveAtoms()
public function saveAtoms()
Return
wild |
public function getSymbolMap()
public function getSymbolMap()
Return
wild |
public function addSymbol($atom_hash, $symbol_hash)
public function addSymbol($atom_hash, $symbol_hash)
Parameters
$atom_hash | ||
$symbol_hash |
Return
wild |
public function deleteSymbol($atom_hash)
public function deleteSymbol($atom_hash)
Parameters
$atom_hash |
Return
wild |
public function saveSymbols()
public function saveSymbols()
Return
wild |
public function getEdgeMap()
public function getEdgeMap()
Return
wild |
public function getEdgesWithDestination($symbol_hash)
public function getEdgesWithDestination($symbol_hash)
Parameters
$symbol_hash |
Return
wild |
public function addEdges($node_hash, $symbol_hash_list)
public function addEdges($node_hash, $symbol_hash_list)
Parameters
$node_hash | ||
array | $symbol_hash_list |
Return
wild |
public function deleteEdges($node_hash)
public function deleteEdges($node_hash)
Parameters
$node_hash |
Return
wild |
public function saveEdges()
public function saveEdges()
Return
wild |
public function getGraphMap()
public function getGraphMap()
Return
wild |
public function deleteGraph($node_hash)
public function deleteGraph($node_hash)
Parameters
$node_hash |
Return
wild |
public function addGraph($node_hash, $graph_hash)
public function addGraph($node_hash, $graph_hash)
Parameters
$node_hash | ||
$graph_hash |
Return
wild |
public function saveGraph()
public function saveGraph()
Return
wild |