For this function:
func (c *Client) Set(key string, value interface{}, expiration time.Duration) *StatusCmd
Is there a way to set without having an expiration time as a really far time from now? Will nil work?
expiration=0 means no expiration. So if you don't want key to expire use:
cl.Set("key", "value", 0)
Thank you. I couldn't find that anywhere in the docs.
Fair point. Tried to address with https://github.com/go-redis/redis/pull/144
Most helpful comment
expiration=0means no expiration. So if you don't want key to expire use: