|
|
The class Zend\Cache\Utils is a class that defines a set of
methods that perform common, often re-used logic needed by the
Zend\Cache component.
It is a static class and has only static members.
Get disk capacity
Returns array
Get php memory capacity
Returns array
Get system memory capacity
Returns array
Generate a hash value.
This helper adds the virtual hash algo "strlen".
Returns string
Return a list of registered hashing algorithms, incl. the virtual hash algo "strlen".
Returns string
Example #1 Get capacity of a disk path, internal php memory, or the system memory
use Zend\Cache\Utils;
var_dump(Utils::getDiskCapacity(__DIR__));
var_dump(Utils::getPhpMemoryCapacity());
var_dump(Utils::getSystemMemoryCapacity());
/*
* Will produce:
*
* array(2) {
* ["total"]=>
* float(892826808320)
* ["free"]=>
* float(649714921472)
* }
* array(2) {
* ["total"]=>
* float(134217728)
* ["free"]=>
* float(129236992)
* }
* array(2) {
* ["total"]=>
* float(516055040)
* ["free"]=>
* float(417021952)
* }
*/
|
|
Copyright © 2005-2011 Zend Technologies Inc (compiled by mikaelkael with ZFDocumentor - GIT c517eb0).

