public function getCaches()
    {
        if (!$this->caches) {
            foreach (Cache::getBins() as $name => $bin) {
                $this->caches[$name] = $bin;
            }
        }

        return $this->caches;
    }
public function getCaches()
    {
        if (!$this->caches) {
            foreach (Cache::getBins() as $name => $bin) {
                $this->caches[$name] = $bin;
            }
        }

        return $this->caches;
    }
public function getCaches ( ) { if ( ! $ this -> caches ) { foreach ( Cache :: getBins ( ) as $ name => $ bin ) { $ this -> caches [ $ name ] = $ bin ; } } return $ this -> caches ; }
Auxiliary function to get all available drupal caches.

@return \Drupal\Core\Cache\CacheBackendInterface[] The all available drupal caches
Auxiliary function to get all available drupal caches .