-
-
Notifications
You must be signed in to change notification settings - Fork 451
[V5˖] The cache statistics
Georges.L edited this page Oct 16, 2016
·
4 revisions
The V5 introduce a new driverStatistic object. You can extend a specific driver like this:
$driverInstance = CacheManager::getInstance('driverName');
$stats = $driverInstance->stats();// Returns a driverStatistic object
$stats->getSize();// Returns the size taken by the cache instance| Method | Description |
|---|---|
| getInfo():string | Return a quick information about the driver instance |
| getSize():int | Return the approximate size taken by the driver instance (in bytes) |
| getData:array | Return an array of item keys used by this driver instance |
| getRawData:mixed | Return a bunch of random data provided by the driver himself. Any type can be provided, generally an array however |
❓ Finally, if you need help, always check out the inevitable README.md