# 5分でLambda Storeをつかってみた

{% embed url="<https://console.lambda.store/login>" %}

![自分はgoogleでログインしました](/files/-M6ZX4laXhZmmJIpJ4U6)

![勝手に表示されるはずですが、そうでなければ、右上の　+　を押しましょう](/files/-M6ZXG5uJGlw81D1m9Wh)

Free

Database名、regionを適当に。（test, US-EAST-1(N. Virginia)としました)

![こんな画面が表示されるので、passwordの下のCONNECTを押しましょう](/files/-M6ZXvWiVP8aYQ9ZDCYn)

ポップアップ（だいあろぐ）が表示されたと思います。ここでは、nodeを選んでみました。

じぶんのpcで動作確認

```
# nodeをdockerで起動
docker run -it --rm node bash

# redisをinstall
yarn add redis

# nodeを起動
node

# redisをrequire
redis = require('redis')

# Lamda Storeのサンプルの通り
var client = redis.createClient ({
  host : 'us1-excited-dog-30334.lambda.store',
  port : '30334',
  password: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
  });
client.on("error", function(err) {
  throw err;
  });
client.set('foo','bar');

# 試しにget
client.get('foo', (e,r)=>console.log(r))
```

めっちゃ楽

消去も簡単

![](/files/-M6Za8zg2tu6i97q43Uv)

このデータベースは消去済みです


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kajirikajiri.gitbook.io/gitbook/5delambda-storewotsukattemita.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
