protected function createDynamodbDriver(array $config)
    {
        $dynamoConfig = [
            'region' => $config['region'],
            'version' => 'latest',
        ];

        if ($config['key'] && $config['secret']) {
            $dynamoConfig['credentials'] = Arr::only(
                $config, ['key', 'secret', 'token']
            );
        }

        return $this->repository(
            new DynamoDbStore(
                new DynamoDbClient($dynamoConfig),
                $config['table'],
                $config['attributes']['key'] ?? 'key',
                $config['attributes']['value'] ?? 'value',
                $config['attributes']['expiration'] ?? 'expires_at',
                $this->getPrefix($config)
            )
        );
    }
protected function createDynamodbDriver(array $config)
    {
        $dynamoConfig = [
            'region' => $config['region'],
            'version' => 'latest',
        ];

        if ($config['key'] && $config['secret']) {
            $dynamoConfig['credentials'] = Arr::only(
                $config, ['key', 'secret', 'token']
            );
        }

        return $this->repository(
            new DynamoDbStore(
                new DynamoDbClient($dynamoConfig),
                $config['table'],
                $config['attributes']['key'] ?? 'key',
                $config['attributes']['value'] ?? 'value',
                $config['attributes']['expiration'] ?? 'expires_at',
                $this->getPrefix($config)
            )
        );
    }
protected function createDynamodbDriver ( array $ config ) { $ dynamoConfig = [ 'region' => $ config [ 'region' ] , 'version' => 'latest' , ] ; if ( $ config [ 'key' ] && $ config [ 'secret' ] ) { $ dynamoConfig [ 'credentials' ] = Arr :: only ( $ config , [ 'key' , 'secret' , 'token' ] ) ; } return $ this -> repository ( new DynamoDbStore ( new DynamoDbClient ( $ dynamoConfig ) , $ config [ 'table' ] , $ config [ 'attributes' ] [ 'key' ] ?? 'key' , $ config [ 'attributes' ] [ 'value' ] ?? 'value' , $ config [ 'attributes' ] [ 'expiration' ] ?? 'expires_at' , $ this -> getPrefix ( $ config ) ) ) ; }
Create an instance of the DynamoDB cache driver.

@param  array  $config
@return \Illuminate\Cache\Repository
Create an instance of the DynamoDB cache driver .