---
source: apollo-router/src/plugins/response_cache/tests.rs
description: "Make sure everything is in status 'cached' and we have all the entities and root fields"
expression: cache_keys
---
[
  {
    "key": "version:1.1:subgraph:inventory:type:Product:representation:fad83d6ff957f12a7829ec7f25a2160d4bd7530abbe47937f19fbed8996d10d9:hash:e17604a6faec59ed79157e1fadee7d2a3fed4b1dc871da2be114ffafdcdec02c:data:070af9367f9025bd796a1b7e0cd1335246f658aa4857c3a4d6284673b7d07fa6",
    "invalidationKeys": [
      "product",
      "product-1"
    ],
    "kind": {
      "typename": "Product",
      "entityKey": {
        "upc": "1"
      }
    },
    "subgraphName": "inventory",
    "subgraphRequest": {
      "query": "query($representations: [_Any!]!) { _entities(representations: $representations) { ... on Product { shippingEstimate } } }",
      "variables": {
        "representations": []
      }
    },
    "source": "cache",
    "cacheControl": {
      "created": 0,
      "maxAge": 86400,
      "public": true
    },
    "shouldStore": true,
    "data": {
      "data": {
        "shippingEstimate": 15
      }
    },
    "warnings": []
  },
  {
    "key": "version:1.1:subgraph:products:type:Query:hash:950d73004047e5e88793cb22c0c1d0dedc48244c0a1e0c0b41e2078584b4cb65:data:070af9367f9025bd796a1b7e0cd1335246f658aa4857c3a4d6284673b7d07fa6",
    "invalidationKeys": [
      "topProducts",
      "topProducts-5"
    ],
    "kind": {
      "rootFields": [
        "topProducts"
      ]
    },
    "subgraphName": "products",
    "subgraphRequest": {
      "query": "{ topProducts { __typename upc name price weight } }"
    },
    "source": "cache",
    "cacheControl": {
      "created": 0,
      "maxAge": 86400,
      "public": true
    },
    "shouldStore": true,
    "data": {
      "data": {
        "topProducts": [
          {
            "__typename": "Product",
            "upc": "1",
            "name": "Test",
            "price": 150,
            "weight": 5
          }
        ]
      }
    },
    "warnings": []
  }
]
