Add maxSize to cache