GraphQL Force Cache (Server Component)
キャッシュ設定:
- •
cache: "force-cache"- 積極的キャッシュ利用
取得データ:
{
"users": [
{
"__typename": "User",
"id": "1",
"name": "John Doe",
"email": "john@example.com",
"createdAt": "2024-01-01"
},
{
"__typename": "User",
"id": "2",
"name": "Jane Smith",
"email": "jane@example.com",
"createdAt": "2024-01-02"
}
]
}