original_string: 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)
              )
          );
      }
code: 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)
              )
          );
      }
code_tokens: 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 ) ) ) ; }
docstring: Create an instance of the DynamoDB cache driver.
  
  @param  array  $config
  @return \Illuminate\Cache\Repository
docstring_tokens: Create an instance of the DynamoDB cache driver .