Go examples of Redis Hash operations:
- HDEL
- HEXISTS
- HEXPIRE
- HEXPIREAT
- HEXPIRETIME
- HGET
- HGETALL
- HINCRBY
- HINCRBYFLOAT
- HKEYS
- HLEN
- HMGET
- HMSET
- HPERSIST
- HPEXPIRE
- HPEXPIREAT
- HPEXPIRETIME
- HPTTL
- HRANDFIELD
- HSCAN
- HSET
- HSETNX
- HSTRLEN
- HTTL
- HVALS
Make sure you have the following prerequisites installed correctly:
Tool | Version* |
---|---|
Docker | 27.1.1 |
GNU Make | GNU Make 4.3 |
*: Suggested. Other versions may not work as expected.
- Clone this repository.
- Using your terminal, go to the project's root folder.
- In your terminal, execute the command below to start the Redis Server:
make start-redis
- Also in your terminal, execute the command below to execute the Go code:
make run-go
If you want to peek into what's happening inside Redis, you can connect using the Redis CLI tool by executing the command below:
make connect-redis
If you need to troubleshoot errors, you can check the Redis Server logs by executing the command below:
make logs-redis
# Press Ctrl + C to close
To stop the Redis Server, execute the command below in your terminal:
make stop-redis
TBD
TBD
TBD