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
                )
            );
        });
    }
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
                )
            );
        });
    }
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 ) ) ; } ) ; }
register 'couchbase' cache driver.
for bucket type memcached.
register couchbase cache driver . for bucket type memcached .