1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-24 14:00:19 +00:00

Revert "Add error to SessionExist interface"

This reverts commit 28e6b3b924.
This commit is contained in:
Phillip Stagnet
2020-08-05 18:29:47 +02:00
parent 5f2f6e4f86
commit 3052c64b6c
14 changed files with 48 additions and 109 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, error) {
func (lp *Provider) SessionExist(sid string) bool {
count, _ := c.Exists([]byte(sid))
return count != 0, nil
return count != 0
}
// SessionRegenerate generate new sid for ledis session