2.5 KiB
Get started
This doc has examples how to use workspace to interact with Redis.
In examples we use local Redis that is running inside the workspace, but the commands apply to any Redis instance.
Tutorial
Open Quickstart page localhost:8020 for quick access to all the tools
Use workspace terminal localhost:8026 and load some Redis datasets
git clone https://github.com/redis-developer/redis-datasets.git /home/project/redis-datasets
cat /home/project/redis-datasets/movie-database/import_actors.redis | redis-cli
cat /home/project/redis-datasets/movie-database/import_movies.redis | redis-cli
GUI
Open Redis Commander UI on localhost:8029 and explore Redis databases
Alternatively use browser-based VS-code localhost:8025 with Redis extension
CLI tools
If you prefer working in the terminal, explore Redis with Redis-Tui. To connect to the internal Redis instance simply execute
redis-tui
To interact with internal Redis, inn the workspace terminal launch iredis CLI, get & set keys
iredis
Iredis has autocompletion and hints, which might be handy for administrative tasks
iredis --newbie
Create dump of the Redis database
redis-dump-go -h localhost > /home/redis-movie-dump.resp
Use File Browser localhost:8021 to get the dump to your PC