Skip to content

improvement ideas / missing features #114

Description

@Inve1951

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions