Added config file and fallback if there is no available cache instance.