List cache entries

cacheEntries(projectReference: String!, pattern: String, cursor: String, limit: Int): CacheEntryConnection!

Requires project.cache.read.

Arguments

ArgumentTypeRequiredDescription
projectReferenceString!YesProject UUID or slug.
patternStringNoGlob pattern over keys, 1 to 512 characters; defaults to *.
cursorStringNoThe previous page's pageInfo.endCursor, bound to the same project and pattern.
limitIntNoEntries per page, 1 to 100; default 20.

Response

Returns CacheEntryConnection!. Open the type for its fields and nested types.

FieldTypeDescription
data[CacheEntrySummary!]!
pageInfoPageInfo!endCursor is the next page's cursor and expires five minutes after creation.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query CacheEntries($projectReference: String!, $pattern: String, $cursor: String, $limit: Int) {
  cacheEntries(projectReference: $projectReference, pattern: $pattern, cursor: $cursor, limit: $limit) {
    data {
      expiresAt
      key
    }
    pageInfo {
      hasNextPage
      endCursor
      hasPreviousPage
      startCursor
    }
  }
}
json
{
  "projectReference": "00000000-0000-4000-8000-000000000001"
}