public function __get($name)Inherited
public function __get($name)
Inherited
Parameters
$name |
Return
wild |
public function __set($name, $value)Inherited
public function __set($name, $value)
Inherited
Parameters
$name | ||
$value |
Return
wild |
public function current()Inherited
public function current()
Inherited
Return
wild |
public function key()Inherited
public function key()
Inherited
Return
wild |
public function next()Inherited
public function next()
Inherited
Return
wild |
public function rewind()Inherited
public function rewind()
Inherited
Return
wild |
public function valid()Inherited
public function valid()
Inherited
Return
wild |
private function throwOnAttemptedIteration()Inherited
private function throwOnAttemptedIteration()
Inherited
Return
wild |
public function getPhobjectClassConstant($key, $byte_limit)Inherited
public function getPhobjectClassConstant($key, $byte_limit)
Inherited
Phobject
Read the value of a class constant.
This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.
Parameters
string | $key | Name of the constant. |
int|null | $byte_limit | Maximum number of bytes permitted in the value. |
Return
string | Value of the constant. |
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 |