> ## Documentation Index
> Fetch the complete documentation index at: https://docs.peaka.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Table is Cached

> Checks whether the specified table has an active cache in Peaka. When a table is cached, its data is stored locally in Peaka, enabling significantly faster query performance compared to live queries against the original data source. Returns `isCached: true` if a cache is currently active, or `false` otherwise.

The response also carries `isCacheable` and `supportedCacheTypes` (`FULL_REFRESH`, `INCREMENTAL`), so a single call is enough to decide whether — and with which schedule types — a cache can be created for the table. `supportedCacheTypes` is empty when the table is not cacheable; both fields are absent when the information could not be resolved.

<span style={{display: "flex", gap: "10px", flexDirection: "row", alignItems: "center"}}>
  <img src="https://cdn.peaka.com/badges/partner-api-key-badge.png" />

  <img src="https://cdn.peaka.com/badges/project-api-key-badge.png" />
</span>


## OpenAPI

````yaml get /data/projects/{projectId}/catalogs/{catalogId}/schemas/{schemaName}/tables/{tableName}/isCached
openapi: 3.0.1
info:
  title: Peaka Gateway API
  description: Peaka Gateway API Documentation
  version: '1.0'
servers:
  - url: https://partner.peaka.studio/api/v1
    description: Default Server URL (US Zone)
  - url: https://partner.eu.peaka.studio/api/v1
    description: EU Zone
security:
  - bearerAuth: []
paths:
  /data/projects/{projectId}/catalogs/{catalogId}/schemas/{schemaName}/tables/{tableName}/isCached:
    get:
      tags:
        - Data -- Catalogs
      summary: Table is Cached
      description: >-
        Checks whether the specified table has an active cache in Peaka. When a
        table is cached, its data is stored locally in Peaka, enabling
        significantly faster query performance compared to live queries against
        the original data source. Returns `isCached: true` if a cache is
        currently active, or `false` otherwise.


        The response also carries `isCacheable` and `supportedCacheTypes`
        (`FULL_REFRESH`, `INCREMENTAL`), so a single call is enough to decide
        whether — and with which schedule types — a cache can be created for the
        table. `supportedCacheTypes` is empty when the table is not cacheable;
        both fields are absent when the information could not be resolved.
      operationId: isCached
      parameters:
        - name: projectId
          in: path
          description: ID of the project
          required: true
          schema:
            type: string
          example: mtKDhe1U
        - name: catalogId
          in: path
          description: ID of the catalog
          required: true
          schema:
            type: string
          example: 846085284821991600
        - name: schemaName
          in: path
          description: Name of the schema
          required: true
          schema:
            type: string
          example: public
        - name: tableName
          in: path
          description: Name of the table
          required: true
          schema:
            type: string
          example: actor
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TableCacheResult'
              examples:
                Table is Cached:
                  description: Table is Cached
                  value:
                    isCached: true
                    isCacheable: true
                    supportedCacheTypes:
                      - FULL_REFRESH
                      - INCREMENTAL
                Table is Not Cacheable:
                  description: Table is Not Cacheable
                  value:
                    isCached: false
                    isCacheable: false
                    supportedCacheTypes: []
components:
  schemas:
    TableCacheResult:
      type: object
      properties:
        supportedCacheTypes:
          type: array
          description: >-
            The cache types supported by the table: FULL_REFRESH and/or
            INCREMENTAL.
             An empty list means the table is not cacheable.
             The field is absent when capability information could not be resolved.
          items:
            type: string
        isCached:
          type: boolean
          description: Indicates whether the table currently has an active cache.
        isCacheable:
          type: boolean
          description: |-
            Indicates whether the table can be cached.
             The field is absent when the information could not be resolved.
  securitySchemes:
    bearerAuth:
      type: http
      description: >-
        Use the Authorization header with the value 'Bearer <apiKey>' to
        authenticate. Partner API Keys have full access; Project API Keys are
        limited to their project scope. Learn more:
        https://docs.peaka.com/api-reference/authentication
      scheme: bearer
      bearerFormat: Api Key

````