1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

sessions database: boltdb: add support for ShiftExpiration -> OnUpdateExpiration like redis

badger sessiondb still in progress.


Former-commit-id: 1f89a0efb753c0e02b774e0d9e48d879e987c939
This commit is contained in:
Gerasimos (Makis) Maropoulos
2018-08-18 15:01:26 +03:00
parent 197fb5d113
commit b4a30f5af5
2 changed files with 29 additions and 10 deletions

View File

@@ -32,8 +32,7 @@ type Database interface {
//
// Check of error is required, if error returned then the rest session's keys are not proceed.
//
// Currently only "redis" database is designed to use that event.
// If A database is not support this feature then a `ErrNotImplemented` will be returned instead.
// If a database does not support this feature then an `ErrNotImplemented` will be returned instead.
OnUpdateExpiration(sid string, newExpires time.Duration) error
// Set sets a key value of a specific session.
// The "immutable" input argument depends on the store, it may not implement it at all.