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.
1 2 3 4 5 6 7 | if ( $this ->cache->apc->is_supported()) { if ( $data = $this ->cache->apc->get( 'my_cache' )) { // do things. } } |
Please login to continue.