Documentation ¶
Index ¶
- type FromMemory
- func (fm *FromMemory) LoadFile(file string) error
- func (fm *FromMemory) SaveToFile(file string) error
- func (frommemory *FromMemory) SessionDestroy(sid string) error
- func (frommemory *FromMemory) SessionGC(maxLifeTime int64)
- func (frommemory *FromMemory) SessionInit(sid string) (SessionStore, error)
- func (frommemory *FromMemory) SessionRead(sid string) (SessionStore, error)
- func (frommemory *FromMemory) SessionUpdate(sid string) error
- type SessionStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FromMemory ¶
type FromMemory struct {
// contains filtered or unexported fields
}
session来自内存 实现
func (*FromMemory) LoadFile ¶ added in v0.1.1
func (fm *FromMemory) LoadFile(file string) error
从文件中加载缓存数据项
func (*FromMemory) SaveToFile ¶ added in v0.1.1
func (fm *FromMemory) SaveToFile(file string) error
保存数据项到文件中
func (*FromMemory) SessionDestroy ¶
func (frommemory *FromMemory) SessionDestroy(sid string) error
func (*FromMemory) SessionGC ¶
func (frommemory *FromMemory) SessionGC(maxLifeTime int64)
func (*FromMemory) SessionInit ¶
func (frommemory *FromMemory) SessionInit(sid string) (SessionStore, error)
func (*FromMemory) SessionRead ¶
func (frommemory *FromMemory) SessionRead(sid string) (SessionStore, error)
func (*FromMemory) SessionUpdate ¶
func (frommemory *FromMemory) SessionUpdate(sid string) error
type SessionStore ¶
type SessionStore struct { LastAccessedTime time.Time //最后访问时间 // contains filtered or unexported fields }
session实现
Click to show internal directories.
Click to hide internal directories.