Skip to content

Instantly share code, notes, and snippets.

@rbotzer
Created November 2, 2019 00:24
Show Gist options
  • Save rbotzer/924b3d6ca55766d111ddc14474bdbe52 to your computer and use it in GitHub Desktop.
Save rbotzer/924b3d6ca55766d111ddc14474bdbe52 to your computer and use it in GitHub Desktop.
pp = pprint.PrettyPrinter(indent=2)
print("\nGet all Pac-Man top scores, sorted by score (rank)")
ops = [mh.map_get_by_rank_range("scores", 0, -1, aerospike.MAP_RETURN_KEY_VALUE)]
k, m, b = client.operate(key, ops)
by_rank = b["scores"]
pp.pprint(by_rank)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment