Skip to content

Redis quickstart

Wabe supports Redis commands over HTTP. Each disk can hold multiple Redis namespaces. A namespace opens on first use.

Create the demo disk and a project API key in the quickstart. Use the key in both requests.

Terminal window
curl --fail-with-body "https://api.wabe.sh/v1/disks/demo/redis/app" \
-H "Authorization: Bearer YOUR_PROJECT_API_KEY" \
--json '["SET","greeting","Hello"]'

The app namespace stores the key. SET returns {"result":"OK"}.

Terminal window
curl --fail-with-body "https://api.wabe.sh/v1/disks/demo/redis/app" \
-H "Authorization: Bearer YOUR_PROJECT_API_KEY" \
--json '["GET","greeting"]'

GET returns {"result":"Hello"}.

See the HTTP API and supported commands, Upstash SDK and virtual Redis CLI.