Run Redis for Development
1 min read

Run Redis for Development

The quickest way to run Redis for development is to use docker.

docker run -p 6379:6379 --name redis-dev -d redis

This will download the latest image of Redis from the Docker hub and will run on port 6379. The option -d instructs to run the Redis container detached in the background. To test, use the following command ...

 docker exec -it redis-dev redis-cli ping

A PONG message is returned.