Creates a new LRU (least recently used) cache of the given capacity, using a simpler (less memory-consuming, but functionally equivalent) implementation than the one returned by lru.
if capacity is not strictly positive