1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-08 20:41:57 +00:00

publish v12.2.0-alpha6

This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-02-18 22:19:33 +02:00
parent 4899fe95f4
commit 41026c9209
21 changed files with 984 additions and 284 deletions

View File

@@ -6,6 +6,7 @@ import (
"sync"
"time"
"github.com/kataras/iris/v12/context"
"github.com/kataras/iris/v12/core/memstore"
"github.com/kataras/golog"
@@ -61,6 +62,14 @@ type Database interface {
Close() error
}
// DatabaseRequestHandler is an optional interface that a sessions database
// can implement. It contains a single EndRequest method which is fired
// on the very end of the request life cycle. It should be used to Flush
// any local session's values to the client.
type DatabaseRequestHandler interface {
EndRequest(ctx *context.Context, session *Session)
}
type mem struct {
values map[string]*memstore.Store
mu sync.RWMutex