MCPcopy Create free account
hub / github.com/kataras/iris / Acquire

Method Acquire

sessions/database.go:33–33  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 8

ServeHTTPMethod · 0.65
newSessionMethod · 0.65
newAppFunction · 0.65
DoFunction · 0.65
makeInjectorFunction · 0.65
handlerOfMethod · 0.65
buildMainHandlerMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected