Implement ReadConfig for cache limit, and fixes GetLimit().