Updated the cachePut method to replace existing cache entries by default.