add memoryCachePercent method