docs: @Deprecated
      public NearCacheConfig setMaxSize(int maxSize) {
          checkNotNegative(maxSize, "maxSize cannot be a negative number!");
          this.maxSize = calculateMaxSize(maxSize);
          this.evictionConfig.setSize(this.maxSize);
          this.evictionConfig.setMaximumSizePolicy(ENTRY_COUNT);
          return this;
      }