Redis
Setup
Docker
# pull the image from docker hub
$ docker run --name redis-learn -p 6370:6370 -d redis
# connect to container and redis shell
$ docker exec -it redis-learn redis-cliTo benchmark
docker exec -it redis-learn redis-benchmark -n 1000 -d 10000
# -d for bytes of data
redis-benchmark -n 1000 -d 10000To set max memory limit
> config set maxmemory 128MSet & Get value
Key related ops
Set key with expiry time
Delete Key
Set & Get multiple values
Miscellaneous
Maths operations
Lists in Redis
Sorting List
Sets in Redis
Sorted Set Redis
Hashes in Redis
Transaction
GeoSpatial Data
Last updated