Vapor - Redis

2022-07-24

Additions to the Vapor Doc - Redis , refer to doc of redis.io

1. Installation

brew install redis

2. Start

brew services start redis

3. Check info

brew services info redis

4. Stop

brew services stop redis

5. Connect

redis-cli

6. Exploring Redis with the CLI

$ redis-cli
redis 127.0.0.1:6379> ping
PONG
redis 127.0.0.1:6379> set mykey somevalue
OK
redis 127.0.0.1:6379> get mykey
"somevalue"