- Sample on a docker-ized local nodejs application environment
sample.js
is a simple redis demo that can be used to create and read records in redis- these records contain a ttl
- build the app image
make build
- run the stack
make run
- on a second terminal, you can stop it if needed
make stop
- local URL
- Inserting a record through curl
curl -XPOST https://localhost:8001/v1/token/n1
- Reading all records via curl
curl -XGET https://localhost:8001/v1/tokens
- Reading records from
redis-cli
docker exec -ti redis redis-cli get n1
docker exec -ti redis redis-cli ttl n1
docker exec -ti redis redis-cli keys "*"