1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-24 04:50:54 +00:00

Change interface in session README

This commit is contained in:
Phillip Stagnet 2020-08-03 13:33:30 +02:00
parent 28e6b3b924
commit 6f5c5bd3a6
No known key found for this signature in database
GPG Key ID: 029E4A7879FBE381

View File

@ -101,7 +101,7 @@ Maybe you will find the **memory** provider is a good example.
type Provider interface { type Provider interface {
SessionInit(gclifetime int64, config string) error SessionInit(gclifetime int64, config string) error
SessionRead(sid string) (SessionStore, error) SessionRead(sid string) (SessionStore, error)
SessionExist(sid string) bool SessionExist(sid string) (bool, error)
SessionRegenerate(oldsid, sid string) (SessionStore, error) SessionRegenerate(oldsid, sid string) (SessionStore, error)
SessionDestroy(sid string) error SessionDestroy(sid string) error
SessionAll() int //get all active session SessionAll() int //get all active session