Changed implementation of cache to behave as adapters. Improve the configuration validation methods and tests.