Acquire receives a session's lifetime from the database, if the return value is LifeTime{} then the session manager sets the life time based on the expiration duration lives in configuration.
(sid string, expires time.Duration)
| 31 | // Acquire receives a session's lifetime from the database, |
| 32 | // if the return value is LifeTime{} then the session manager sets the life time based on the expiration duration lives in configuration. |
| 33 | Acquire(sid string, expires time.Duration) memstore.LifeTime |
| 34 | // OnUpdateExpiration should re-set the expiration (ttl) of the session entry inside the database, |
| 35 | // it is fired on `ShiftExpiration` and `UpdateExpiration`. |
| 36 | // If the database does not support change of ttl then the session entry will be cloned to another one |
no outgoing calls
no test coverage detected