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()Inherited
public function delete()
Inherited
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 getPathMap()
public function getPathMap()
Return
wild |
public function writePathMap()
public function writePathMap()
Return
wild |
public function getAtomPathsFromCache($hash)
public function getAtomPathsFromCache($hash)
Parameters
$hash |
Return
wild |
public function removeAtomPathsFromCache($hash)
public function removeAtomPathsFromCache($hash)
Parameters
$hash |
Return
wild |
public function addAtomPathsToCache($hash, $paths)
public function addAtomPathsToCache($hash, $paths)
Parameters
$hash | ||
array | $paths |
Return
wild |
public function getIndex()
public function getIndex()
Return
wild |
public function writeIndex()
public function writeIndex()
Return
wild |
public function deleteAtomFromIndex($hash)
public function deleteAtomFromIndex($hash)
Parameters
$hash |
Return
wild |
public function addAtomToIndex($hash, $data)
public function addAtomToIndex($hash, $data)
Parameters
$hash | ||
array | $data |
Return
wild |