What would be the cleanest way to introduce cache ...
# ktor
f
What would be the cleanest way to introduce cache for routes in ktor? Anyone using anything nice?
s
Http level caching ?
d
Do you mean caching the content of the page? (DSL or template engine) Or just database requests etc?
f
Database requests essentially. I have used it a lot in rails. You cache a get endpoint according to some parameters that you know will return the same result.
It does not nessecerly need to be on an endpoint level, how would you do it in a nice way in general? For db requests
The youkube sample does some caching