Database名、regionを適当に。(test, US-EAST-1(N. Virginia)としました)
# 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))