mirror of
https://github.com/kataras/iris.git
synced 2026-01-07 20:17:05 +00:00
Version 3.0.0-beta cleaned
This commit is contained in:
20
sessions/store/store.go
Normal file
20
sessions/store/store.go
Normal file
@@ -0,0 +1,20 @@
|
||||
// Package store the package is in diffent folder to reduce the import cycles from the ./context/context.go *
|
||||
package store
|
||||
|
||||
import "time"
|
||||
|
||||
// IStore is the interface which all session stores should implement
|
||||
type IStore interface {
|
||||
Get(interface{}) interface{}
|
||||
GetString(key interface{}) string
|
||||
GetInt(key interface{}) int
|
||||
Set(interface{}, interface{}) error
|
||||
Delete(interface{}) error
|
||||
Clear() error
|
||||
VisitAll(func(interface{}, interface{}))
|
||||
GetAll() map[interface{}]interface{}
|
||||
ID() string
|
||||
LastAccessedTime() time.Time
|
||||
SetLastAccessedTime(time.Time)
|
||||
Destroy()
|
||||
}
|
||||
Reference in New Issue
Block a user