Updated cache size to type int.