ReverseProxy.Cache
A basic caching layer for ReverseProxy
.
Upstream content servers may be slow. SSL/TLS
negotiation may be slow. Caching a response from the
upstream increases the potential performance of
ReverseProxy
.
Summary
Types
Callback to retreive an upstream response
Functions
Entrypoint to serve content from the cache when available (cache hit) and from the upstream when not available (cache miss)
Types
callback :: (Plug.Conn.t -> Plug.Conn.t)
Callback to retreive an upstream response
Functions
Specs
serve(Plug.Conn.t, callback) :: Plug.Conn.t
Entrypoint to serve content from the cache when available (cache hit) and from the upstream when not available (cache miss).