cache_config
Creates, updates, deletes, gets or lists a cache_config
resource.
Overview
Name | cache_config |
Type | Resource |
Id | google.aiplatform.cache_config |
Fields
The following fields are returned by SELECT
queries:
- get_cache_config
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. Name of the cache config. Format: - projects/{project}/cacheConfig . |
disableCache | boolean | If set to true, disables GenAI caching. Otherwise caching is enabled. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_cache_config | select | projectsId | Gets a GenAI cache config. | |
update_cache_config | update | projectsId | Updates a cache config. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
projectsId | string |
SELECT
examples
- get_cache_config
Gets a GenAI cache config.
SELECT
name,
disableCache
FROM google.aiplatform.cache_config
WHERE projectsId = '{{ projectsId }}' -- required;
UPDATE
examples
- update_cache_config
Updates a cache config.
UPDATE google.aiplatform.cache_config
SET
data__name = '{{ name }}',
data__disableCache = {{ disableCache }}
WHERE
projectsId = '{{ projectsId }}' --required
RETURNING
name,
done,
error,
metadata,
response;