Fix a bug in the dart lowlevel memcache implementation.

We assumed the order of the returned memcache items were the same as
the order given in the get request. This is not always the case. Specifically
the dev app server is not guaranteeing order.

This change makes the code do a quadratic lookup, which degenerates to linear
in the case the response is ordered.

BUG=
R=kustermann@google.com, sgjesse@google.com

Review URL: https://chromereviews.googleplex.com/115907016
2 files changed
tree: 3c5e63ceb1d27f2d44506655bb82b7306b9a9662
  1. pkgs/