... using Hyperloglog and lexicographical ordering.
π http://redislabs.com/blog/how-to-use-redis-at-least-x1000-more-efficiently#.U4GubZR_s9y