Generic caching middleware.
Copyright (c) 2016, elli-lib team
Behaviours: elli_handler
.
Authors: Eric Bailey (eric@ericb.me
) (web site: https://github.com/yurrriq
).
handle/2 | |
handle_event/3 | |
postprocess/3 | |
preprocess/2 |
handle(Event, Args) -> any()
handle_event(Event, Args, Config) -> any()
postprocess(Req, Res1, Config) -> Res2
Req = elli:req()
Res1 = elli_handler:result()
Config = elli_handler:callback_args()
Res2 = elli_handler:result()
preprocess(Req1, Config) -> Req2
Req1 = elli:req()
Config = elli_handler:callback_args()
Req2 = elli:req()