I'm trying to implement the following logic in my go program:
def action:
1. GET the value of KEY from Redis
2. SET the value of KEY to 0
go-redis
I'm familiar with Redis transactions but I couldn't seem to find a decent document or example on how to implement the desired set of actions in a concurrent-safe and atomic manner in Golang.
action