the api is nice and good as is but i'm missing some features:
- async requests to make multiple calls simultaneously instead of chaining them
this will reduce page loading times a lot
(e.g. request MatchDto's for a bunch of matches)
(guzzle supports async requests via Promises)
- create the cash key inside the Cache class
this will allow for easy hook-up of databases
(could be done by passing an associative array)
there's no way you can pull info from a database with just the md5 key
- separate remember times (TTL) for successful api calls and http errors
error caching makes sense to me, but why remember those for the same duration as you do with Dto's?
e.g. when riot gives a 503 error on a reliable request it makes no sense to cache it for much longer than a minute
the api is nice and good as is but i'm missing some features:
this will reduce page loading times a lot
(e.g. request MatchDto's for a bunch of matches)
(guzzle supports async requests via Promises)
this will allow for easy hook-up of databases
(could be done by passing an associative array)
there's no way you can pull info from a database with just the md5 key
error caching makes sense to me, but why remember those for the same duration as you do with Dto's?
e.g. when riot gives a 503 error on a reliable request it makes no sense to cache it for much longer than a minute