---
title: "HTTP\u30E1\u30E2\u30EA\u30AD\u30E3\u30C3\u30B7\u30E5"
description: "The http_memory_cache-hint specifies whether messages may be cached in memory when the provider uses HTTP to exchange data with the backing platform."
language: ja
source_language: en
translation_state: pending
canonical: https://documentation.invantive.eu/ja/docs/invantive-universalsql/execution-hints/http-memory-cache
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/execution-hints/http-memory-cache
updated: 2026-12-04T07:11:20Z
license: https://documentation.invantive.eu/ja/
---

## 構文
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    stmt_start((START))
    stmt_start --> stmt_0_0[HTTP_MEMORY_CACHE]:::quoted
    stmt_0_0 --> stmt_0_1["("]:::quoted
    stmt_0_1 --> stmt_0_2[booleanConstant]
    stmt_0_2 --> stmt_0_7
    stmt_0_2 --> stmt_0_3[","]:::quoted
    stmt_0_3 --> stmt_0_4[booleanConstant]
    stmt_0_4 --> stmt_0_7
    stmt_0_4 --> stmt_0_5[","]:::quoted
    stmt_0_5 --> stmt_0_6[intervalConstant]
    stmt_0_6 --> stmt_0_7[")"]:::quoted
    stmt_0_7 --> stmt_end((END))
```

## 目的

The `http_memory_cache`-hint specifies whether messages may be cached in memory when the provider uses HTTP to exchange data with the backing platform. This typically holds only for cloud-based platforms such as Exact Online, Teamleader or Salesforce. The default setting varies depending on the execution environment.

The first parameter is a boolean whether data may be taken from the memory cache, the second parameter is a boolean whether data retrieved must be stored also in the memory cache and the third parameter is an interval that specifies the timespan before a memory cache hit found is to considered stale, such as "interval '30 seconds'".

The use of the `http_memory-cache`-hint is recommended for data which is known to change seldom such as seeded or reference data. The contents in the memory cache are forgotten across Invantive UniversalSQL sessions.

## 例
To disable the use of the HTTP memory cache for the query on the `Contacts` table:
```sql
select /*+ http_memory_cache(false) */ * 
from   Contacts 
where  email = 'john.doe@acme.eu'
limit  10
```
To use the contents of the HTTP memory cache for the query on the `Contacts` table, when not older than 30 minutes, and also store the results in the memory cache:
```sql
select /*+ http_memory_cache(true, true, interval '30 minutes') */ * 
from   Contacts 
where  email = 'john.doe@acme.eu'
limit  10
```

