1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-15 02:00:39 +00:00

Add interface change in pkg folder

This commit is contained in:
Phillip Stagnet
2020-08-05 18:29:22 +02:00
parent 6f5c5bd3a6
commit 5f2f6e4f86
14 changed files with 107 additions and 49 deletions

View File

@ -132,9 +132,9 @@ func (lp *Provider) SessionRead(sid string) (session.Store, error) {
}
// SessionExist check ledis session exist by sid
func (lp *Provider) SessionExist(sid string) bool {
func (lp *Provider) SessionExist(sid string) (bool, error) {
count, _ := c.Exists([]byte(sid))
return count != 0
return count != 0, nil
}
// SessionRegenerate generate new sid for ledis session