A simple LRU cache (from Camlistore)