Validate the cache mode when a cache configuration is added to the cache manager