is_supported($driver)
| Parameters: |
|
|---|---|
| Returns: |
TRUE if supported, FALSE if not |
| Return type: |
bool |
This method is automatically called when accessing drivers via $this->cache->get(). However, if the individual drivers are used, make sure to call this method to ensure the driver is supported in the hosting environment.
if ($this->cache->apc->is_supported())
{
if ($data = $this->cache->apc->get('my_cache'))
{
// do things.
}
}
Please login to continue.