add package gkvdb; add kvdb storage feature for ghttp.Server

This commit is contained in:
John
2019-08-22 21:04:30 +08:00
parent 51a156420d
commit 7dffd9d1ff
20 changed files with 795 additions and 113 deletions

View File

@ -8,7 +8,7 @@ import (
func main() {
s := g.Server()
s.SetSessionMaxAge(72000000)
s.SetSessionMaxAge(60)
s.SetSessionIdName("gpadminssid")
s.BindHandler("/set", func(r *ghttp.Request) {
r.Session.Set("time", gtime.Second())