Finish the session link.

This commit is contained in:
zicla
2018-11-30 13:02:33 +08:00
parent cb96b18579
commit bfc549a669
9 changed files with 211 additions and 147 deletions

View File

@ -334,7 +334,8 @@ func (table *CacheTable) Value(key interface{}, args ...interface{}) (*CacheItem
return nil, errors.New("无法加载到缓存值")
}
return nil, errors.New(fmt.Sprintf("没有找到%s对应的记录", key))
//没有找到任何东西返回nil.
return nil, nil
}
// 删除缓存表中的所有项目