aberth
aberth copied to clipboard
Caching responses in aberth
Instead of leaving the caching handling to handlers, aberth can check if the response includes a caching directive and cache it internally.
It should be enough to add response check and store it. Then on subsequent calls return the cached response (if its still valid). Goal is to fully support caching as per BERT-RPC specification.
Start by implementing aberth_cache, with calls to store / retrieve cached responses. Caching should be {M,F,A} based, as the spec states.