Skip to content

Commit

Permalink
Add descriptions of TTL for response caches
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Nov 20, 2014
1 parent cc2bca8 commit 3152548
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
24 changes: 15 additions & 9 deletions _po/ja/tutorial/1.0.8/dump-restore/index.po
Original file line number Diff line number Diff line change
Expand Up @@ -344,15 +344,21 @@ msgid ""
msgstr ""

msgid ""
"Note: before sending a request for the `select` command, clear the response ca"
"che.\n"
"Otherwise you'll see unexpected cached result based on old configurations.\n"
"You can clear all response caches by sending an HTTP `DELETE` request to the p"
"ath `/cache`, like above."
msgstr ""
"注意: `select`コマンドにクエストを送る前に、まずキャッシュを削除しておいてください。\n"
"これを怠ると、古い情報に基づいて、キャッシュされた結果が意図せず返されてしまいます。\n"
"レスポンスキャッシュを削除するには、上記のように、`/cache`のパスの位置にHTTPの`DELETE`のリクエストを送信します。"
"Note, clear the response cache before sending a request for the `select` comma"
"nd.\n"
"Otherwise you'll see unexpected cached result based on old configurations."
msgstr ""
"`select`コマンドにクエストを送る前に、まずキャッシュを削除しておくことに注意が必要です。\n"
"これを怠ると、古い情報に基づいて、キャッシュされた結果が意図せず返されてしまいます。"

msgid ""
"Response caches are stored for recent 100 requests, and their lifetime is 1 mi"
"nute, by default.\n"
"You can clear all response caches manually by sending an HTTP `DELETE` request"
" to the path `/cache`, like above."
msgstr ""
"既定の設定では、レスポンスキャッシュは直近の100リクエストに対して保存され、保持期間は1分間です。\n"
"上記のように、`/cache`のパスの位置にHTTPの`DELETE`のリクエストを送信すると、手動でレスポンスキャッシュを削除できます。"

msgid "### Restore data from a dump result, to an empty Droonga cluster"
msgstr "### ダンプ結果から空のDroongaクラスタへデータを復元する"
Expand Down
6 changes: 4 additions & 2 deletions ja/tutorial/1.0.8/dump-restore/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,11 @@ $ curl "$endpoint/d/select?table=Store&output_columns=name&limit=10" | jq "."
]
~~~

注意: `select`コマンドにクエストを送る前に、まずキャッシュを削除しておいてください
`select`コマンドにクエストを送る前に、まずキャッシュを削除しておくことに注意が必要です
これを怠ると、古い情報に基づいて、キャッシュされた結果が意図せず返されてしまいます。
レスポンスキャッシュを削除するには、上記のように、`/cache`のパスの位置にHTTPの`DELETE`のリクエストを送信します。

既定の設定では、レスポンスキャッシュは直近の100リクエストに対して保存され、保持期間は1分間です。
上記のように、`/cache`のパスの位置にHTTPの`DELETE`のリクエストを送信すると、手動でレスポンスキャッシュを削除できます。

### ダンプ結果から空のDroongaクラスタへデータを復元する

Expand Down
6 changes: 4 additions & 2 deletions tutorial/1.0.8/dump-restore/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,11 @@ $ curl "$endpoint/d/select?table=Store&output_columns=name&limit=10" | jq "."
]
~~~

Note: before sending a request for the `select` command, clear the response cache.
Note, clear the response cache before sending a request for the `select` command.
Otherwise you'll see unexpected cached result based on old configurations.
You can clear all response caches by sending an HTTP `DELETE` request to the path `/cache`, like above.

Response caches are stored for recent 100 requests, and their lifetime is 1 minute, by default.
You can clear all response caches manually by sending an HTTP `DELETE` request to the path `/cache`, like above.

### Restore data from a dump result, to an empty Droonga cluster

Expand Down

0 comments on commit 3152548

Please sign in to comment.