added definitions for lru-cache