Stream: beginners

Topic: Stored Ability


view this post on Zulip Luke Boswell (Dec 04 2023 at 21:19):

Just re-reading through Task as Builtin Proposal and thinking about Stored ability.

Will it be possible to use Stored to create an in-memory cache or store for a webserver? Instead of serialising my model out to a file or db can I just store it, and then retrieve it on every request?

How will this work with async? I assume concurrent writes would block?

I think this would be super for quickly iterating with ideas.

view this post on Zulip Agus Zubiaga (Dec 04 2023 at 22:29):

Yeah, you should be able to use it for caching, but only in-memory. I don’t think you can make it persist to disk because it would work with any type, even non-serializable ones.


Last updated: Jul 06 2025 at 12:14 UTC