original_string: protected function registerMemcachedBucketCacheDriver(): void
      {
          $this->app['cache']->extend('couchbase-memcached', function ($app, $config) {
              $prefix = $app['config']['cache.prefix'];
              $credential = $config['sasl'] ?? [];
              $memcachedBucket = $this->app['couchbase.memcached.connector']
                  ->connect($config['servers']);
  
              return new Repository(
                  new MemcachedBucketStore(
                      $memcachedBucket,
                      strval($prefix),
                      $config['servers'],
                      $credential
                  )
              );
          });
      }
code: protected function registerMemcachedBucketCacheDriver(): void
      {
          $this->app['cache']->extend('couchbase-memcached', function ($app, $config) {
              $prefix = $app['config']['cache.prefix'];
              $credential = $config['sasl'] ?? [];
              $memcachedBucket = $this->app['couchbase.memcached.connector']
                  ->connect($config['servers']);
  
              return new Repository(
                  new MemcachedBucketStore(
                      $memcachedBucket,
                      strval($prefix),
                      $config['servers'],
                      $credential
                  )
              );
          });
      }
code_tokens: protected function registerMemcachedBucketCacheDriver ( ) : void { $ this -> app [ 'cache' ] -> extend ( 'couchbase-memcached' , function ( $ app , $ config ) { $ prefix = $ app [ 'config' ] [ 'cache.prefix' ] ; $ credential = $ config [ 'sasl' ] ?? [ ] ; $ memcachedBucket = $ this -> app [ 'couchbase.memcached.connector' ] -> connect ( $ config [ 'servers' ] ) ; return new Repository ( new MemcachedBucketStore ( $ memcachedBucket , strval ( $ prefix ) , $ config [ 'servers' ] , $ credential ) ) ; } ) ; }
docstring: register 'couchbase' cache driver.
  for bucket type memcached.
docstring_tokens: register couchbase cache driver . for bucket type memcached .