Added support for letting user configure cache component