> For the complete documentation index, see [llms.txt](https://jairanjankumar.gitbook.io/cheatsheet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jairanjankumar.gitbook.io/cheatsheet/redis.md).

# Redis

```
brew install redis
    $ redis-server
    $ redis-cli
    
#connecting to remote Redis server
#IP address & port
$redis-cli -h XXX.XXX.XXX.XXX -p YYYY


#Using Docker
Redis Example:
$ docker run --name redisdb -p 6000:6379 redis
$ docker exec -it redisdb redis-cli

$ docker exec -it redisdb /bin/bash 
```
