Trait routing::Cache [] [src]

pub trait Cache: Send {
    fn get(&self, request: &Request) -> Option<Response>;
fn put(&self, response: Response); }

A cache that stores Responses keyed by Requests. Should be implemented by layers above routing.

Required Methods

Retrieve cached response for the given request.

Cache the given response.

Implementors