Reference:
https://anvil.works/doc/#server_module_session_state
https://anvil.works/doc/#data_tables_views
Rationale:
Client-writable views seem like a great thing to use, even server-side. If we create the views at log-in time, then the rest of the session’s code can work with just the views. By never accessing the underlying tables directly, such code guarantees that it is working only with the right user’s data.
Ideally, the view objects will persist, in the session, between server calls. Otherwise, they have to be re-created on demand, which seems rather wasteful. Hence the wish to cache them.
In general, what kinds of objects – if any – can be cached in an anvil.server.session
?