LPS-48477 Make sure parameters valid when using ehcache directly.