Skip to content

devdrops/go-redis-hash-operations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go: Redis Hash Operations

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

Before Start

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.

How to Run?

  1. Clone this repository.
  2. Using your terminal, go to the project's root folder.
  3. In your terminal, execute the command below to start the Redis Server:
make start-redis
  1. 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

What is a Hash?

TBD

Redis Hash Operations

TBD

Obs

TBD


References

About

Go examples of Redis Hash operations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published