support different cache size configure.