]> 127.0.0.1 Git - part/.git/commitdiff
fix v0.5.29
authorqydysky <qydysky@foxmail.com>
Thu, 17 Jun 2021 10:11:42 +0000 (18:11 +0800)
committerqydysky <qydysky@foxmail.com>
Thu, 17 Jun 2021 10:11:42 +0000 (18:11 +0800)
tmplKV/tmplKV.go

index 3cbe13238cb209389601e6c85ac18620c69a4b05..a9a2fae32f8adfc20caadfbb246ce5537d670c4c 100644 (file)
@@ -40,7 +40,7 @@ func (s *tmplKV) Set(key,value interface{},exp int64) {
 }
 
 //获取Value 及是否有效
-func (s *tmplKV) Get(key interface{}) (value interface{},isLive bool){
+func (s *tmplKV) Get(key interface{}) (isLive bool, value interface{}){
        tmp, ok := s.kvt_map.Load(key)
 
        item,_ := tmp.(tmplKV_item)