Keep LRU cache size in sync

Addresses https://github.com/twitter/typeahead.js/issues/938