What is Nostr?
Arch :arch: /
npub1a5p…hf04
2023-07-09 10:12:57

Arch :arch: on Nostr: I don’t think I can do what I want to do with this code… basically when a request ...

I don’t think I can do what I want to do with this code… basically when a request is invoked, I want my cache middleware to check if that page has been rendered and cached already, and return that if so. But at the same time I want to spawn a thread that runs through the rest of the request to check if the cache should be invalidated (e.g rendered content has changed). But I can’t move the request/next types provided by Axum into a thread. Maybe I’m thinking about this wrong? #Rust
Author Public Key
npub1a5p0chlpdrxh0e4y4n6mep4e420p727yen6uex0j3xuzmz458dqs3phf04