Silvermoon logo

sm.transport.get

sm.transport.get is an API function that allows you to get a key in transport state.

Transport state can be used to save data between requests and pages. Usefull for caching and compute heavy values that you need to calculate once.

NOTE: Transport state is visible to all request, don‘t use it to store sensetive information. Transport gets cleared on Silvermoon FastCGI server restart, don’t use it like a database.

Usage

sm.transport.get(key)

Example:

print(sm.transport.get("my-key"))

On this page