GenAiCacheService constructor

GenAiCacheService({
  1. required Client client,
})

Creates a GenAiCacheService using client for transport.

The provided http.Client must be configured to provide whatever authentication is required by GenAiCacheService. You can do that using package:googleapis_auth.

Implementation

GenAiCacheService({required http.Client client})
  : _client = ServiceClient(client: client);