const mixinafIoc::ThreadStashManager
afIoc::ThreadStashManager
(Service) - Use to create ThreadStashes whose contents may be automatically deleted.
This is important in the context of a web application where resources need to be cleaned up at the end of a web request / thread.
@since 1.3.0
- addCleanUpHandler
abstract Void addCleanUpHandler(|->Void handler)
Add a handler to be called on thread clean up. Handlers need to be added for each thread.
- cleanUpThread
abstract Void cleanUpThread()
Removes all values in the current thread associated / used with this manager.
- createStash
abstract ThreadStash createStash(Str owner)
Creates a ThreadStash with the given prefix.
- keys
abstract Str[] keys()
Returns all (fully qualified) keys in the current thread associated / used with this manager.