mizchi/sol/isr does not have a README file
pub(open) trait ISRCache {
fn get(Self, String) -> CacheEntry?
fn put(Self, String, CacheEntry) -> Unit
fn delete(Self, String) -> Unit
fn schedule_revalidation(Self, async () -> Unit) -> Unit
}pub(all) enum CDNCacheStrategy {
CdnSwr(Int)
Hybrid(Int, Int)
AppIsr
}pub struct CacheEntry {
html : String
generated_at : Int64
revalidate : Int
}pub enum CacheStatus {
Fresh
Stale
Miss
}pub struct ISRConfig {
enabled : Bool
default_revalidate : Int
}async fn[Cache : ISRCache] ISRHandler::handle(self : ISRHandler[Cache], path : String) -> (String?, Bool)fn[Cache] ISRHandler::new(cache : Cache, manifest : ISRManifest, dist_dir : String) -> ISRHandler[Cache]fn[Cache : ISRCache] ISRHandler::update_cache(self : ISRHandler[Cache], path : String, html : String) -> Unitpub struct ISRMiddlewareConfig {
dist_dir : String
enabled : Bool
}impl ISRCache for MemoryCacheasync fn handle_isr_request(path : String) -> (String?, Bool)fn schedule_revalidation(path : String) -> UnitInstall
Download zipThin Mars wrapper for file-based routing, SSR, and asset loading