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