private function MemcacheBackend::debug in Memcache API and Integration 8.2
Check to see if debug is on. Wrap it in safety for early bootstraps.
@returns bool
5 calls to MemcacheBackend::debug()
- MemcacheBackend::deleteAll in src/
MemcacheBackend.php - Deletes all cache items in a bin.
- MemcacheBackend::invalidateAll in src/
MemcacheBackend.php - Marks all cache items as invalid.
- MemcacheBackend::invalidateTags in src/
MemcacheBackend.php - MemcacheBackend::removeBin in src/
MemcacheBackend.php - Remove a cache bin.
- MemcacheBackend::splitItem in src/
MemcacheBackend.php - Given a single cache item, split it into multiple child items.
File
- src/
MemcacheBackend.php, line 103
Class
- MemcacheBackend
- Defines a Memcache cache backend.
Namespace
Drupal\memcacheCode
private function debug() : bool {
try {
$debug = \Drupal::service('memcache.settings')
->get('debug');
if ($debug) {
return $debug;
}
return false;
} catch (ServiceNotFoundException $e) {
return false;
} catch (ContainerNotInitializedException $e) {
return false;
}
}