You are here

public function DriverBase::getBins in Memcache API and Integration 8.2

Helper function to get the bins.

1 call to DriverBase::getBins()
DriverBase::stats in src/Driver/DriverBase.php
Retrieves statistics recorded during memcache operations.

File

src/Driver/DriverBase.php, line 231

Class

DriverBase
Class DriverBase.

Namespace

Drupal\memcache\Driver

Code

public function getBins() {
  $memcache_bins = \Drupal::configFactory()
    ->getEditable('memcache.settings')
    ->get('memcache_bins');
  if (!isset($memcache_bins)) {
    $memcache_bins = [
      'cache' => 'default',
    ];
  }
  return $memcache_bins;
}