# cacheEntry

```graphql
query CacheEntry($projectReference: String!, $key: String!) {
  cacheEntry(projectReference: $projectReference, key: $key) {
    projectId
    key
    found
    value
    expiresAt
  }
}
```

Read one cache entry, as REST GET /projects/{project\_reference}/cache/entries/{key}. A miss returns found=false. Requires project.cache.read.

## Arguments

| Name               | Type    | Required | Description                     |
| ------------------ | ------- | -------- | ------------------------------- |
| `projectReference` | String! | Yes      | Project UUID or slug.           |
| `key`              | String! | Yes      | Cache key, 1 to 512 characters. |

## Variables

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

## Responses

| Status | Description                         |
| ------ | ----------------------------------- |
| 200    | The CacheEntry! in data.cacheEntry. |

## 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 CacheEntry($projectReference: String!, $key: String!) {\n  cacheEntry(projectReference: $projectReference, key: $key) {\n    projectId\n    key\n    found\n    value\n    expiresAt\n  }\n}",
  "variables": {
    "projectReference": "string",
    "key": "string"
  }
}'
```

## Example response

```json
{
  "data": {
    "cacheEntry": {
      "projectId": "string",
      "key": "string",
      "found": false,
      "value": "string",
      "expiresAt": "2026-01-01T00:00:00Z"
    }
  }
}
```
