original_string: protected function registerCouchbaseBucketCacheDriver(): void
      {
          $this->app['cache']->extend('couchbase', function ($app, $config) {
              /** @var \Couchbase\Cluster $cluster */
              $cluster = $app['db']->connection($config['driver'])->getCouchbase();
              $password = (isset($config['bucket_password'])) ? $config['bucket_password'] : '';
  
              return new Repository(
                  new CouchbaseStore(
                      $cluster,
                      $config['bucket'],
                      $password,
                      $app['config']->get('cache.prefix')
                  )
              );
          });
      }
code: protected function registerCouchbaseBucketCacheDriver(): void
      {
          $this->app['cache']->extend('couchbase', function ($app, $config) {
              /** @var \Couchbase\Cluster $cluster */
              $cluster = $app['db']->connection($config['driver'])->getCouchbase();
              $password = (isset($config['bucket_password'])) ? $config['bucket_password'] : '';
  
              return new Repository(
                  new CouchbaseStore(
                      $cluster,
                      $config['bucket'],
                      $password,
                      $app['config']->get('cache.prefix')
                  )
              );
          });
      }
code_tokens: protected function registerCouchbaseBucketCacheDriver ( ) : void { $ this -> app [ 'cache' ] -> extend ( 'couchbase' , function ( $ app , $ config ) { /** @var \Couchbase\Cluster $cluster */ $ cluster = $ app [ 'db' ] -> connection ( $ config [ 'driver' ] ) -> getCouchbase ( ) ; $ password = ( isset ( $ config [ 'bucket_password' ] ) ) ? $ config [ 'bucket_password' ] : '' ; return new Repository ( new CouchbaseStore ( $ cluster , $ config [ 'bucket' ] , $ password , $ app [ 'config' ] -> get ( 'cache.prefix' ) ) ) ; } ) ; }
docstring: register 'couchbase' cache driver.
  for bucket type couchbase.
docstring_tokens: register couchbase cache driver . for bucket type couchbase .