new classes.

- new cache factory.
- new config factory.