# cacheEntries

```graphql
query CacheEntries($projectReference: String!) {
  cacheEntries(projectReference: $projectReference) {
    data {
      key
      expiresAt
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}
```

List cache entries, optionally by glob pattern, as REST GET /projects/{project\_reference}/cache/entries. Requires project.cache.read.

## Arguments

| Name               | Type    | Required | Description                                                                    |
| ------------------ | ------- | -------- | ------------------------------------------------------------------------------ |
| `projectReference` | String! | Yes      | Project UUID or slug.                                                          |
| `pattern`          | String  |          | Glob pattern over keys, 1 to 512 characters; defaults to \*.                   |
| `cursor`           | String  |          | The previous page's pageInfo.endCursor, bound to the same project and pattern. |
| `limit`            | Int     |          | Entries per page, 1 to 100; default 20.                                        |

## Variables

```json
{
  "projectReference": "string"
}
```

## Responses

| Status | Description                                     |
| ------ | ----------------------------------------------- |
| 200    | The CacheEntryConnection! in data.cacheEntries. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "query CacheEntries($projectReference: String!) {\n  cacheEntries(projectReference: $projectReference) {\n    data {\n      key\n      expiresAt\n    }\n    pageInfo {\n      hasNextPage\n      hasPreviousPage\n      startCursor\n      endCursor\n    }\n  }\n}",
  "variables": {
    "projectReference": "string"
  }
}'
```

## Example response

```json
{
  "data": {
    "cacheEntries": {
      "data": [
        {
          "key": "string",
          "expiresAt": "2026-01-01T00:00:00Z"
        }
      ],
      "pageInfo": {
        "hasNextPage": false,
        "hasPreviousPage": false,
        "startCursor": "string",
        "endCursor": "string"
      }
    }
  }
}
```
