int maxCacheLength
read / write