How to work with temporary objects in a session
Instances of SessionTemps
are not commited in transactions. The primary use of this class
is via the class method #current
, which returns an instance of SessionTemps
that is stored in Transient Session State.
Setting a session temp
SessionTemps current at: #MY_SESSION_TEMP put: [ Object new ]
Accessing a session temp
SessionTemps current at: #MY_SESSION_TEMP ifAbsent: [ nil ]
Removing a session temp
SessionTemps current removeKey: #MY_SESSION_TEMP