This post will guide you how to get your hands on Redis. If you are a totally beginner, this can help you to start. I am a totally beginner using this technology, so contact me if there is something wrong with the blog or you want to connect. I am creating a series of Redis to learn more about it. Happy coding.
What is Redis?
Redis is an open source, in-memory data store used by millions of developers as a database, cache, streaming engine, and message broker
Install
We are going to use Docker because it is really simple to get start and running.
Three lines
1
2
3
REDIS_ID=$(docker container run --publish 6379:6379 --rm --detach redis:latest)
docker container ls --all --format "" $REDIS_ID
docker container exec -it $REDIS_ID redis-cli
One liner
1
2
docker container exec -it \
$(docker container run --publish 6379:6379 --rm --detach redis:latest) redis-cli
Data types
In redis, we have various data types to play with:
- string
- hash
- list
- set
- ordered set
- streams
- geospatial
- hyperLogLog
- Bitmaps
- BitFields
Well, it sounds interesting, but less talk and more action.