yesod-session-persist-0.0.0.2: SQL session backend for Yesod
Safe HaskellSafe-Inferred
LanguageGHC2021

Yesod.Session.Storage.Save

Synopsis

Documentation

save Source #

Arguments

:: Monad tx 
=> Options tx m 
-> (forall a. StorageOperation a -> tx a) 
-> SessionKeyManager tx 
-> UTCTime

The current time

-> SessionMap

The new session data to be saved

-> Maybe Session

What's in the database

-> tx (Maybe Session) 

Save a session to the database

Return value of Nothing indicates that no changes were made. Just is returned when a session was saved, either by an insert or a replace operation.