This repository has been archived on 2019-07-12. You can view files and clone it, but cannot push or open issues or pull requests.
httpsession/store.go
2014-06-15 16:00:50 +08:00

17 lines
281 B
Go

package httpsession
import "time"
type Id string
type Store interface {
Get(id Id, key string) interface{}
Set(id Id, key string, value interface{})
Del(id Id, key string) bool
Clear(id Id) bool
Add(id Id)
Exist(id Id) bool
SetMaxAge(maxAge time.Duration)
Run() error
}