This repo is for dummy aplication impementation of pubsub redis.
- minimum Redis v 5.X.X
- minimum Golang V1.15.X
- Clone this repo on your
gopath
- Pull depedency this repo using
go get
orgo mod
. Comeback to your preference. Or u can search how to get depedency on golang. - Run aplication using command
Go run main.go
If aplication running well, will showing
$ go run main.go
2022/12/14 13:31:37 Everything is fine!!!
example: subscribe 1
thats mean application is running and already subscribe on channel. Another Way to check, u can check on redis-cli with this command:
redis-cli
pubsub numsub [name_channel]
will showing number of subscriber on that channel.