Skip to main content

Anemos Public API キャッシュ仕様書

CacheにはRedisを使用する。 Redisは検索を行うとO(N)とめっちゃ遅いため、対象のデータをすべて取得。

Redisのスキーマ

weekly-weather-forecast

| weekly-weather-forecast | list[id]| 一週間分の天気予報のデータIDを格納する。

weekly-weather-warning

| weekly-weather-warning | list[id]| 一週間分の気象警報のデータIDを格納する。

weekly-earthquake-info

| weekly-earthquake-info | list[id]| 一週間分の気象警報のデータIDを格納する。

[data-id]

| data-id | json | データを格納する。