---
title: "GET /v1/projects/{projectsId}/cacheConfig"
method: GET
path: "/v1/projects/{projectsId}/cacheConfig"
tags: ["projects"]
---

# GET /v1/projects/{projectsId}/cacheConfig

`GET /v1/projects/{projectsId}/cacheConfig`

## Request

- Base URL: `https://aiplatform.googleapis.com`
- URL: `https://aiplatform.googleapis.com/v1/projects/{projectsId}/cacheConfig`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`
- TypeScript: <https://skmtc.dev/google/apis/aiplatform/docs/v1/projects/:projectsId/cacheConfig/get.ts> (a function with typed inputs; its response is checked against the schema)

Gets a GenAI cache config.

## Path parameters

- `projectsId` string, required

## Response `200`

Successful response

- GoogleCloudAiplatformV1CacheConfig: Config of GenAI caching features. This is a singleton resource.
  - `disableCache` boolean: If set to true, disables GenAI caching. Otherwise caching is enabled.
  - `name` string: Identifier. Name of the cache config. Format: - `projects/{project}/cacheConfig`.
  - `retentionConfig` GoogleCloudAiplatformV1CacheConfigRetentionConfig: Configures the retention behavior of GenAI implicit (automatic) context caching for this project.
    - `retentionType` 'RETENTION_TYPE_UNSPECIFIED' | 'EPHEMERAL' | 'DURABLE': Optional. Retention type applied to implicit cache traffic for this project.

---

[API](https://skmtc.dev/google/apis/aiplatform.md) - [All operations](https://skmtc.dev/google/apis/aiplatform/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/aiplatform/revisions/3aca3b348f0c?raw)
