argument checks in LRUCache