Redefine APIs of lru_cache.c for flexibility