https://learn.microsoft.com/ja-jp/azure/azure-cache-for-redis/scripts/create-manage-cache
https://learn.microsoft.com/ja-jp/azure/azure-cache-for-redis/cache-how-to-redis-cli-tool
https://qiita.com/sawada_masahiko/items/1f60936c421ecab8dfbf
https://salumarine.com/using-redis-cli-on-mac/
C0 Basic 60円/1日
-- 1. 前作業
az login --use-device-code
az account show
az version
az configure --list-defaults
az configure --defaults location=japaneast
az configure --list-defaults
az group create \
--name rg01 \
--location japaneast
az group list
-- 2. キャッシュ作成
az redis create \
--resource-group rg01 \
--name redis123 \
--location japaneast \
--sku basic \
--vm-size C0 \
--enable-non-ssl-port
az redis list \
--resource-group rg01
az redis show \
--resource-group rg01 \
--name redis123
az redis show \
--resource-group rg01 \
--name redis123 \
--query "[hostName,enableNonSslPort,port,sslPort]" \
--output tsv
az redis list-keys \
--resource-group rg01 \
--name redis123 \
--query "[primaryKey,secondaryKey]" \
--output tsv
-- 3. 動作確認
wget http://download.redis.io/releases/redis-5.0.4.tar.gz
tar zxvf redis-5.0.4.tar.gz
cd redis-5.0.4
make
src/redis-cli --help
src/redis-cli -h redis123.redis.cache.windows.net -p 6379 -a xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
set x XXX
set y YYY
set z ZZZ
get x
get y
get z
-- 4. クリーンアップ
az group list
az group delete \
--name rg01 \
--yes