Open singulared opened 3 years ago
For integration with actix-web we need to implement trait Cacheable for HttpRequest and add some service\route declaration helper functions. Something like this:
HttpServer::new(|| { App::new() .service(web::resource("/something") .route(web:get().to(get_something)) .cache(ttl=60)) })
For integration with actix-web we need to implement trait Cacheable for HttpRequest and add some service\route declaration helper functions. Something like this: