由于之前使用的是python。然后自然而然的以为golang的redis 设置单位也是秒。fork python的代码是缓存5min。于是. err = client.Set(key, 1, 5 * 60).
確定! 回上一頁