Skip to main content

cache_config

Creates, updates, deletes, gets or lists a cache_config resource.

Overview

Namecache_config
TypeResource
Idgoogle.aiplatform.cache_config

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. Name of the cache config. Format: - projects/{project}/cacheConfig.
disableCachebooleanIf set to true, disables GenAI caching. Otherwise caching is enabled.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_cache_configselectprojectsIdGets a GenAI cache config.
update_cache_configupdateprojectsIdUpdates 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.

NameDatatypeDescription
projectsIdstring

SELECT examples

Gets a GenAI cache config.

SELECT
name,
disableCache
FROM google.aiplatform.cache_config
WHERE projectsId = '{{ projectsId }}' -- required;

UPDATE examples

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;