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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user